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 53
    • Issues 53
    • 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

Description

Modifies the custom durability of the held item.

Attributes

Attribute Aliases Description Default
amount a Adds/Subtracts durability 1

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.

Aliases

  • dealdura
  • customdura
Clone repository
  • Home
  • Changelogs
  • Commands / Permissions
  • FAQ / Common Issues
Usage
  • Installation
  • Item Options
  • Item Skills
  • Item Durability
  • Custom Blocks
  • Furniture
  • Crafting Recipes
  • Custom Bags
  • Ammo System / Guns
New Mechanics
  • Item Mechanics
  • Item Targeters
  • Item Triggers
  • Item Conditions