Iron golem loot table
I want to make that if the player kills an iron golem it drops between 3 and 5 iron ingots and if it is not killed by a player it drops between 1 and 3. I already done it, but i dont know why it doesnt work. When it is killed by something that it´s not a player it always drop only 1 iron ingot. I leave you my code so if someone can tell me what is wrong { "type": "minecraft:entity", "pools": [ { "rolls": 1, "bonus_rolls": 0, "entries": [ { "type": "minecraft:item", "name": "minecraft:poppy", "functions": [ { "function": "minecraft:set_count", "count": { "type": "minecraft:uniform", "min": 0, "max": 2 }, "add": false } ] } ] }, { "rolls": 1, "bonus_rolls": 0, "entries": [ { "type": "minecraft:item", "name": "minecraft:iron_ingot", "functions": [ { "function": "minecraft:set_count", "count": { "min": 1, "max": 3 }, "conditions": [ { "condition": "minecraft:killed_by_player", "inverse": false } ] }, { "function": "minecraft:set_count", "count": { "min": 3, "max": 5 }, "conditions": [ { "condition": "minecraft:killed_by_player", "inverse": true } ] } ] } ] } ] }