Create custom loot tables for blocks, entities, and chests
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:diamond",
"weight": 1,
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1,
"max": 1
}
}
]
}
]
}
]
}Place the JSON file in:
data/namespace/loot_tables/blocks/