Skip to content
Thutmose edited this page May 13, 2020 · 1 revision

How to create and manage Kits

This will explain the XML format used for the kits, as well as how to maintain and manage them

Default kits.xml

This is the default XML generated by the mod, and contains a single kit, which just gives the player 5 sticks.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Kits>
    <Kit>
        <Item id="minecraft:stick" n="5"/>
    </Kit>
</Kits>

Adding more kits, and cooldowns

Here we have 2 kits, one called "Basic", and one called "Build Supplies", they each have a cooldown of 96000 ticks, or about 1 hour

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Kits>
    <Kit name="Basic" cooldown="96000" >
        <Item id="minecraft:cooked_beef" n="16"/>
        <Item id="minecraft:stone_axe" n="1"/>
        <Item id="minecraft:stone_shovel" n="1"/>
        <Item id="minecraft:stone_pickaxe" n="1"/>
        <Item id="minecraft:stone_hoe" n="1"/>
    </Kit>
    <Kit name="Build_Supplies" cooldown="96000" >
        <Item id="minecraft:cobblestone" n="64"/>
        <Item id="minecraft:log" n="64"/>
        <Item id="minecraft:glass" n="64"/>
    </Kit>
</Kits>

Clone this wiki locally