Generators
Loot Table Generator
Configure weighted loot entries with min/max counts and copy a valid loot table JSON into your datapack.
loot_table.json
{
"type": "minecraft:chest",
"pools": [
{
"rolls": 3,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:diamond",
"weight": 1,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot",
"weight": 5,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1,
"max": 4
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:bread",
"weight": 10,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1,
"max": 8
}
}
]
}
]
}
]
}
