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 accidental drop one and not lose it.
Element | Description | |
---|---|---|
<toolrepair> </toolrepair>
|
A node containing all the tools that will be repaired when picked up. | |
Sub-elements | Value/Children | |
<tool> </tool>
|
A single tool that will be repaired, can be anything with durability. | Material Name |
Example
<toolrepair>
<tool>iron sword</tool>
<tool>bow</tool>
</toolrepair>
Defines items that will be deleted when dropped on the map. Also works when items are destroyed, such as seeds from tall grass, etc.
Element | Description | |
---|---|---|
<itemremove> </itemremove>
|
A node containing all the items that will be removed when dropped. | |
Sub-elements | Value/Children | |
<item> </item>
|
The item that will be removed when dropped. | Material Name |
Example
<itemremove>
<item>arrow</item>
<item>cooked fish</item>
<item>diamond helmet</item>
<item>iron chestplate</item>
</itemremove>
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.
Element | Description | |
---|---|---|
<itemkeep> </itemkeep>
|
A node containing all the items kept when respawning. | |
Sub-elements | Value/Children | |
<item> </item>
|
The item that will remain in a player's inventory when they die and respawn. | Material Name |
Example
<itemkeep>
<item>diamond sword</item>
<item>tnt</item>
</itemkeep>
Similar to <itemkeep>
except that the specified items are only kept if they are equipped in an armor slot.
Element | Description | |
---|---|---|
<armorkeep> </armorkeep>
|
A node containing all the equipped armor kept when respawning. | |
Sub-elements | Value/Children | |
<item> </item>
|
A equipped armor item that will remain in a player's inventory when they die and respawn. | Material Name |
Example
<armorkeep>
<item>iron helmet</item>
<item>iron chestplate</item>
<item>iron leggings</item>
<item>iron boots</item>
</armorkeep>