I've created a loot table[1] and I'm having issues using it with the loot
command:
loot insert ~ ~ ~ loot minecraft:op
Executing the command above drops zero items. The JSON
for the loot table is:
{
"pools": [
{
"rolls": {
"min": 1,
"max": 2
},
"bonus_rolls": {
"min": 0,
"max": 2.5
},
"entries": [
{
"type": "item",
"name": "minecraft:",
"weight": 1,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 2
}
}
]
},
{
"type": "item",
"name": "minecraft:diamond",
"weight": 3,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 7
}
}
]
},
{
"type": "item",
"name": "minecraft:totem_of_undying",
"weight": 1,
"functions": [
{
"function": "set_count",
"count": 1
}
]
},
{
"type": "item",
"name": "minecraft:enchanted_book",
"weight": 2,
"functions": [
{
"function": "enchant_randomly",
"enchantments": [
"protection"
]
}
]
},
{
"type": "item",
"name": "minecraft:iron_block",
"weight": 3,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 5
}
}
]
},
{
"type": "item",
"name": "minecraft:stick",
"weight": 1,
"functions": [
{
"function": "enchant_randomly",
"enchantments": [
"knockback"
]
}
]
},
{
"type": "item",
"name": "minecraft:gold_block",
"weight": 1,
"functions": [
{
"function": "set_count",
"count": {
"min": 1,
"max": 5
}
}
]
},
{
"type": "item",
"name": "minecraft:potion",
"weight": 1,
"functions": [
{
"function": "set_nbt",
"tag": "{Potion:\"minecraft:strength\"}"
}
]
}
]
}
]
}
Why is my loot table not showing up for the loot
command?
[1]: The JSON
file is located at datapackName/data/minecraft/loot_tables
.