Loot Tables is JSON File use to handle loot from the entity, block, chest and certain gameplay like Piglin Barter and Fishing.
To create your custom loot table, create JSON file on <BehaviorPack>/loot_tables/
. For entity loot, put on loot_tables/entities/
, and block put on loot_tables/blocks/
First thing you need is adding "pools"
component. Inside that, add rolls
to rolls how much item on entries
drop. See example below (Or check my template)
{
"pools": [
{
"rolls": 1,
"entries": []
}
]
}
On your custom block/entity, use minecraft:loot
to linking your custom loot table.
{
"minecraft:loot": "loot_tables/path/to/your/file"
}
This is my personal documentation, not Official Documentation. Any wrong information is my fault. Most important one is "Not Affiliated by Mojang Studio or Microsoft"