Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicCrucible MythicCrucible
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 57
    • Issues 57
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicCrucibleMythicCrucible
  • Wiki
    • Skills
    • Mechanics
  • DealCustomDurability

Last edited by Lxlp Jan 29, 2025
Page history
This is an old version of this page. You can view the most recent version or browse the history.

DealCustomDurability

Mechanic: DealCustomDurability

Modifies the held item durability.

Attributes

Attribute Aliases Description Default
a Adds/Subtracts durability

Examples

A positive number will deal damage, a negative number will heal it. Note: Only works for custom durability.

MyItem:
  Id: golden_sword
  Display: 'Excalibur'
  CustomDurability:
    Durability: 20
  Lore:
    - 'This is line 1'
    - 'This is line 2'
  Skills:
    - dealcustomdurability{a=2} @Self ~onUse    # damages an item by 2 durability.
    - dealcustomdurability{a=-2} @Self ~onSwing # repairs 2 durability on an item.
Clone repository
  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Item Options
  • Item Skills
  • Item Durability
  • Custom Blocks
  • Furniture
    • Furniture Options
    • Furniture States
  • Crafting Recipes
  • Custom Bags
  • Ammo System / Guns
New Mechanics
  • Item Mechanics
  • Item Targeters
  • Item Triggers
  • Item Conditions