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

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

  • customdura
Clone repository
Home
Changelogs
Commands / Permissions
API
FAQ / Common Issues
Guides

Usage
  • Installation
  • Items
    • Item Options
    • Item Skills
    • Item Durability
  • Augments
  • Item Sets
  • Crafting Recipes
    • Workbenches
  • Item Updater
  • Ammo System / Guns
  • Dynamic Lore Generation
  • World Generation
  • Loot Generation

ResourcePack Generator

Item Types
  • Blocks
  • Furniture
    • Paint Brush
  • Bags
  • Hats
  • Augments

Mechanics
  • Mechanics
  • Targeters
  • Triggers
  • Conditions

Placeholders
  • Placeholders