Started by
cuckoo
on
Topic category: Help with Minecraft modding (Java Edition)
So ive set up a simple loot table called Books and ive set the registry name to books and it type to chest,then I hop in the mc and place a command block with /data merge block ~ ~-2 ~ {LootTable:"books"} and a chest two block below.I added a button then press it,Nothing happened,no error,and Im sure my loot table is filled with pool entry
show me your code
this happens to me too! I have no idea why it worked and after hours of searching I just had to remove it
didn't worked*
{
"type": "minecraft:chest",
"pools": [
{
"rolls": {
"min": 1,
"max": 2
},
"bonus_rolls": {
"min": 0,
"max": 3
},
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:enchanted_book",
"weight": 50,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 5
}
},
{
"function": "enchant_with_levels",
"treasure": true,
"levels": {
"min": 1,
"max": 5
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:iron_ingot",
"weight": 25,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 15
}
}
]
},
{
"type": "minecraft:item",
"name": "minecraft:cooked_beef",
"weight": 25,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 25
}
}
]
}
]
}
]
}
Ive followed NorthWest gaming tutorial and the command i use is /data merge block ~ ~-2 ~ {LootTable:"books"}
FIXED you need to put your mod mod id,for ex, my mod id is penguin_boss and my loot is in chest/books then the command should be "/data merge block {LootTable: "penguin_boss:chest/books}"
I mean /data merge block ~ ~-2 ~ {LootTable: "penguin_boss:chests/books"}