Skip to main content

Repair, Remove, & Keep

Tool Repair

Defines tools that will be automatically repaired when dropped and picked up again. This will also merge items that are picked up, i.e., picking up an iron sword would result in it merging with your sword and repairing it. Repaired items will keep their enchantment, unlike vanilla Minecraft where they will not.

This also works with non-tool items such as arrows. When people pick up item in the <toolrepair> module and they already have one of the same kind it gets merged into the existing item, if they don't have it they get it like normal. Repairing arrows instead of removing them has the advantage of the player being able to accidentally drop one and not lose it.

Tool Repair Element

ElementDescription
<toolrepair> </toolrepair>A node containing all the tools that will be repaired when picked up.
Sub-elementsValue
<tool> </tool>A single tool that will be repaired, can be anything with durability.Material Name

Examples

<toolrepair>
<tool>iron sword</tool>
<tool>bow</tool>
</toolrepair>

Item Remove

Defines items that will be deleted when dropped on the map. Also works when items are destroyed, such as seeds from tall grass, etc.

ElementDescription
<itemremove> </itemremove>A node containing all the items that will be removed when dropped.
Sub-elementsValue
<item> </item>The item that will be removed when dropped.Material Name

Examples

<itemremove>
<item>arrow</item>
<item>cooked fish</item>
<item>diamond helmet</item>
<item>iron chestplate</item>
</itemremove>

Item Keep

Defines items that will be kept on death. If there is a spawn kit, kept items will be given back after the kit is applied, except for equipped armor, which will replace any armor in the kit.

ElementDescription
<itemkeep> </itemkeep>A node containing all the items kept when respawning.
Sub-elementsValue
<item> </item>The item that will remain in a player's inventory when they die and respawn.Material Name

Examples

<itemkeep>
<item>diamond sword</item>
<item>tnt</item>
</itemkeep>

Armor Keep

Similar to <itemkeep>, except that the specified items are only kept if they are equipped in an armor slot.

ElementDescription
<armorkeep> </armorkeep>A node containing all the equipped armor kept when respawning.
Sub-elementsValue/Children
<item> </item>A equipped armor item that will remain in a player's inventory when they die and respawn.Material Name

Examples

<armorkeep>
<item>iron helmet</item>
<item>iron chestplate</item>
<item>iron leggings</item>
<item>iron boots</item>
</armorkeep>