NexoAddon
PolymartSpigotDiscordGithubNexo
  • NexoAddon
  • Components
    • equippable
    • fertilizer
    • jukebox_playable
    • skull_value
  • Mechanics
    • Aura
    • BedrockBreak
    • BigMining
    • BlockAura
    • BottledExp
    • Custom Block Experience
    • Decay
    • Infested
    • KillMessage
    • MiningTools
    • Remember
    • Repair
    • ShiftBlock
    • Signal
    • SpawnerBreak
    • Stackable
    • Unstackable
    • VeinMiner
  • Populators
    • Block Populators
  • Recipes
    • Smithing Recipe
  • Commands
    • Totem Command
  • Settings
    • Double Hit Destroy
    • Bossbar
    • Count shears as silktouch
    • Prevent furniture breaks
    • Delay of Aura Mechanic
    • Default config.yml
Powered by GitBook
On this page
  • One-time Repair item stackable
  • One-time Repair item unstackable
  • Reusable Repair item unstackable
  • Whitelist and Blacklist
Edit on GitHub
  1. Mechanics

Repair

Repair mechanic.

PreviousRememberNextShiftBlock

Last updated 4 months ago

The Repair Mechanic allows players to repair damaged items in their inventory using a specific repair item. The repair process consumes the repair item while restoring a portion of the durability of the damaged item. The amount of durability restored is determined by the repair ratio defined in the mechanic configuration.

There is duplication bug using Creative mode. There is no bug using other gamemodes

ratio OR fixed_amount option is required!

One-time Repair item stackable

# Example

repair_tool:
  material: PAPER
  itemname: <blue>Repair tool
  Mechanics:
    repair:
      ratio: 0.5         # Percentage of durability restored, relative to the item's current damage.

One-time Repair item unstackable

# Example

repair_tool:
  material: PAPER
  itemname: <blue>Repair tool
  Components:
    max_stack_size: 1
  Mechanics:
    repair:
      fixed_amount: 50         # Amount of durability restored.

Reusable Repair item unstackable

# Example

repair_tool:
  material: PAPER
  itemname: <blue>Repair tool
  Components:
    max_stack_size: 1
    durability: 50       # 50 uses
  Mechanics:
    repair:
      ratio: 0.5         # Percentage of durability restored, relative to the item's current damage.

Whitelist and Blacklist

# Example

repair_tool:
  material: PAPER
  itemname: <blue>Repair tool
  Components:
    max_stack_size: 1
    durability: 50       # 50 uses
  Mechanics:
    repair:
      ratio: 0.5         # Percentage of durability restored, relative to the item's current damage.
      whitelist:
      - DIAMOND_AXE
      - forest_sword
      blacklist:
      - forest_axe
      - DIAMOND_SWORD