Loot Table Generator
Create loot table JSON for chests, mobs and structures.
Pools
Loot table JSON
{
"type": "minecraft:chest",
"pools": [
{
"rolls": {
"type": "minecraft:uniform",
"min": 1,
"max": 3
},
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:diamond",
"weight": 1,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1,
"max": 2
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot",
"weight": 5,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 2,
"max": 5
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:bread",
"weight": 10,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 1,
"max": 4
}
}
]
}
]
}
]
}Use with /loot or reference it from a chest NBT as LootTable. Folder name is loot_table on 1.21+, loot_tables before.