
a simple loot pile mod for random loot
a simple loot pile mod for random loot
that has a editable config
you can get them by doing /give @s loots:loot_pile
when you right click them it opens a screen
you can change if they respawn or what tier they are
check the tier by pressing f3 and looking at the block
the tier corresponds to the config tier so only tier 2 blocks will drop tier 2 items
{
"0": [
{
"item": "minecraft:dirt",
"chance": 100,
"nbt": {},
"amount": 10
},
{
"item": "minecraft:cobblestone",
"chance": 10,
"nbt": {},
"amount": 5
}
],
"1": [
{
"item": "minecraft:iron_ingot",
"chance": 90,
"nbt": {},
"amount": 5
}
],
"2": [
{
"item": "minecraft:enchanted_golden_apple",
"chance": 15,
"nbt": {},
"amount": 10
}
]
}
and it supports items with nbt
{
"0": [
{
"item": "minecraft:dirt",
"chance": 100.0,
"nbt": {
"Enchantments": [
{
"id": "blast_protection",
"lvl": 2
}
]
},
"amount": 10
}
],
"1": [],
"2": []
}