I am working on this data pack, I have tried a lot of ways and even to add my own advancement but it always fails. I am wondering if some one could add an advancement to the pack, so if you eat any of the custom food with the tag (Custom texture pack not included), and the advancement triggers a function that gives the player an effect, like instant health, then revokes its self so it can happen again next time, with no toast or announcement in chat.
I am working on this data pack, I have tried a lot of ways and even to add my own advancement but it always fails. I am wondering if some one could add an advancement to the pack, so if you eat any of the custom food with the tag (Custom texture pack not included), and the advancement triggers a function that gives the player an effect, like instant health, then revokes its self so it can happen again next time, with no toast or announcement in chat.
https://www.dropbox.com/s/w6u9lkgnspzkcgf/PlusFoodDemo.zip?dl=0
I tried using a generator to make it, but it never shows up in game.
{{ "display": { "icon": { "item": "iron_pickaxe" }, "title": "Ate Food", "description": "Yummy", "background": "minecraft:textures/block/stone.png", "show_toast": true, "announce_to_chat": true }, "criteria": { "bread": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:bread", "tag": "plusfood:3b" } } }, "beet": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:beetroot", "tag": "plusfood:3b" } } }, "pie": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:pumpkin_pie", "tag": "plusfood:3b" } } }, "potato": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:baked_potato", "tag": "plusfood:3b" } } }, "pork": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:cooked_porkchop", "tag": "plusfood:3b" } } }, "cod": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:cooked_cod", "tag": "plusfood:3b" } } }, "salmon": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:cooked_salmon", "tag": "plusfood:3b" } } }, "beef": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:cooked_beef", "tag": "plusfood:3b" } } }, "chicken": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:cooked_chicken", "tag": "plusfood:3b" } } }, "rabbit": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:cooked_rabbit", "tag": "plusfood:3b" } } }, "mutton": { "trigger": "minecraft:consume_item", "conditions": { "item": { "item": "minecraft:cooked_mutton", "tag": "plusfood:3b" } } } }, "requirements": [ [ "bread", "beet", "pie", "potato", "pork", "cod", "salmon", "beef", "chicken", "rabbit", "mutton" ] ], "rewards": { "function": "plusfood:bonus" }}