Hey, so I tried to create a loot table for my custom ore block, but it doesn't seem to work, can someone help me out, please?
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"conditions": [
{
"condition": "match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"type": "minecraft:item",
"name": "spiritcraft:echo_gem_ore"
},
{
"conditions": [
{
"condition": "random_chance",
"chance": 0.5
}
],
"type": "minecraft:item",
"name": "spiritcraft:echo_gem",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
}
]
},
{
"type": "minecraft:item",
"name": "spiritcraft:whispering_echo_gem"
}
]
}
]
}
]
}
I tried to make the ore drop either an echo_gem or a whispering_echo_gem and if you mine the ore with silk_touch, you should get the ore item.