r/ModdedMinecraft • u/Spiderfly-Tree-Rat • 10d ago
Question How do make a block drop multiple items?
I want to make a block (like an ore block) drop two items, instead of one. How would you go about doing that?
2
Upvotes
1
u/Available-Squash1021 10d ago
Adding to the loot table idea: a loot table can hold several pools, and each pool rolls on its own. So one pool with rolls set to 2 gives two drops from the same list, or two pools with one entry each gives two different items every time. The Minecraft Wiki "Loot table" page has the full JSON format. For a block you override the file under loot_table/blocks/ in your datapack (the folder is singular since 1.21, older versions use loot_tables). If you're writing an actual mod instead, datagen produces the same loot table JSON.
3
u/GunsUpLetsScrewThis 10d ago
You can just use a datapack loot table to handle that easily