Created
October 19, 2015 16:59
-
-
Save Dinnerbone/16a5543bb6bea24af227 to your computer and use it in GitHub Desktop.
This is an example of the current spawn bonus chest loot table in Minecraft, in the (possibly) new loot table data format.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"item": "minecraft:stick", | |
"weight": 10, | |
"functions": [ | |
{ | |
"function": "minecraft:set_count", | |
"min": 1, | |
"max": 3 | |
} | |
] | |
}, | |
{ | |
"item": "minecraft:planks", | |
"weight": 10, | |
"functions": [ | |
{ | |
"function": "minecraft:set_count", | |
"min": 1, | |
"max": 3 | |
} | |
] | |
}, | |
{ | |
"item": "minecraft:log", | |
"weight": 10, | |
"functions": [ | |
{ | |
"function": "minecraft:set_count", | |
"min": 1, | |
"max": 3 | |
} | |
] | |
}, | |
{ | |
"item": "minecraft:stone_axe", | |
"weight": 3 | |
}, | |
{ | |
"item": "minecraft:wooden_axe", | |
"weight": 5 | |
}, | |
{ | |
"item": "minecraft:stone_pickaxe", | |
"weight": 3 | |
}, | |
{ | |
"item": "minecraft:wooden_pickaxe", | |
"weight": 5 | |
}, | |
{ | |
"item": "minecraft:apple", | |
"weight": 5, | |
"functions": [ | |
{ | |
"function": "minecraft:set_count", | |
"min": 2, | |
"max": 3 | |
} | |
] | |
}, | |
{ | |
"item": "minecraft:bread", | |
"weight": 3, | |
"functions": [ | |
{ | |
"function": "minecraft:set_count", | |
"min": 2, | |
"max": 3 | |
} | |
] | |
}, | |
{ | |
"item": "minecraft:log2", | |
"weight": 10, | |
"functions": [ | |
{ | |
"function": "minecraft:set_count", | |
"min": 1, | |
"max": 3 | |
} | |
] | |
} | |
] |
@Dinnerbone When we were writing our own plugins, we created a loot table format much more versatile than this. I understand you wanna do JSON, but maybe look at what could be possible:
https://github.com/CoreNetwork/Mantle/wiki/Loot-table-format
gistcomment-1599786 totally with you
hi
Looking awesome!
Do we have a list of functions
somewhere? Can they also be edited?
I hacked around a little and have found this code, for anybody who wants to see.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please be kind to us modders and add a method to register additional tables to be merged with with the in-memory table from the beginning.