Skip to content

Instantly share code, notes, and snippets.

@Dinnerbone
Created October 19, 2015 16:59
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Dinnerbone/16a5543bb6bea24af227 to your computer and use it in GitHub Desktop.
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.
[
{
"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
}
]
}
]
@towerofnix
Copy link

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