Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- You can add custom loot entries by using xml-like tags. The relevant data needs to be surrounded by <...> and </...>
- Looking at the default table will give you some examples
- Adding a new entry requires at least the <strainer> and <item> tag (surrounded by <add>). Use <chance> to set item rarity (higher chance = more likely to drop)
- To copy the current loot table to another strainer use the <parent> and <child> tag (surrounded by <copy>)
- Please use a new line for every new entry or command, since loot entries can not spread over multiple lines!
- Main Tags:
- <add> Used to add a new loottable entry. Requires the <strainer> and <item> subtag.
- <copy> Used to clone the current loottable from strainer X to strainer Y. Requires the <child> and <parent> subtag.
- Sub Tags for <add>:
- [Required][String] <strainer> Specifies the strainer. Needs the strainer registry name (without modid).
- Example: <strainer>strainer_survivalist</strainer>
- [Required][String] <item> Specifies the item/loot which drops. Needs a full registry name.
- Does also accept the $BLANK$ keyword to add empty loot to the table
- Example 1: <item>minecraft:sand</item>
- Example 2: <item>$BLANK$</item>
- [Optional][String] <group> Puts the loot into a group. Can be used to group multiple drops together.
- If the group is not set, a random unique one will be generated.
- Example: Take a look at the Fish and junk group for Fisherman's Strainer
- [Optional][Integer] <chance> Specifies the weight / rarity of a group. Higher value means higher chance. Value will be 100 if not set.
- Example: <chance>50</chance>
- [Optional][Integer] <subchance> Specifies the weight / rarity of an item. Higher value means higher chance. Value will be 100 if not set.
- Can be used to give grouped items different chances. For example 25% chance for a gold nugget and 75% for an iron nugget.
- Example: <subchance>25</subchance>
- [Optional][String] <nbt> Specifies additional nbt data for an item. This allows you to enchant items or set other custom data.
- Example: Enchants the item with Efficiency I and Unbreaking I:
- <nbt>Enchantments:[{lvl:1s,id:"minecraft:efficiency"},{lvl:1s,id:"minecraft:unbreaking"}]</nbt>
- Sub Tags for <copy>:
- [Required][String] <parent> Specifies source strainer. Needs the strainer registry name (without modid).
- Example: <parent>strainer_survivalist</parent>
- [Required][String] <child> Specifies the destination strainer. Needs the strainer registry name (without modid).
- The child strainer will clear its loottable and copies the current one from the source.
- The loot table of parent and child strainer can still be modified after the process.
- Example: <child>strainer_survivalist_solid</child>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement