loot table issues
hello y'all,it's my first time making loot tables for blocks, I've made the loot table with mcstacker but for some reason it doesn't work. Basically the code inside the loot table is just to make grasses have a chance to be able to drop string if the grasses are broken with a wooden_sword.
{ "conditions": [ { "condition": "minecraft:match_tool", "items": "wooden_sword", "durability": { "range_min": 1 } } ], "type": "block", "pools": [ { "rolls": 1, "entries": [ { "type": "item", "weight": 5, "name": "minecraft:string", "functions": [ { "function": "set_count", "count": 1 } ] }, { "type": "item", "weight": 5, "name": "minecraft:wheat_seeds", "functions": [ { "function": "set_count", "count": 1 } ] } ] } ] }