Skip to content

Repair Spell

MomoPewpew edited this page Jul 28, 2023 · 8 revisions

Source Code

spell-class: ".instant.RepairSpell"

Description:

Instant Spell that repairs durability on items and armor.

Configuration:

Option Description Default Value
repair-amount How much to repair. 300
to-repair A list of inventory slots to repair. See the example for the list of options.
ignore-items A list of item types to ignore.
allowed-items A list of item types to repair.
str-nothing-to-repair The message that appears when there is nothing to repair. Nothing to repair.

Example:

repair:
    spell-class: ".instant.RepairSpell"
    name: repair
    description: Repairs your gear.
    cast-item: book
    cooldown: 120
    repair-amount: 300
    to-repair:
        - held
        - hotbar
        - inventory
        - helmet
        - chestplate
        - leggings
        - boots
    ignore-items:
        - flint_and_steel
        - fishing_rod
    cost:
        - mana 50
        - iron_ingot 2
    str-cost: 50 mana and 2 iron bars
    str-cast-self: You've repaired your gear!
    str-nothing-to-repair: You have nothing to repair.
Clone this wiki locally