Food component not working on Mythic Items - 1.21.4 - 5.8 build 5326
Closed
Food component not working on Mythic Items - 1.21.4 - 5.8 build 5326
Summary
Use wiki example for getting food that's not normally food. Netherite Pops. Cannot be eaten.
Purpur 2381
Minecraft 1.21.4
MM 5.8 build 5326
Log: https://pastebin.com/X5EEk2LW
Picture of /paper dumpitem for Netherite Pops (not sure if it's helpful): https://i.imgur.com/E3vPuPI.png
Netherite Pops:
NetheritePops:
Material: NETHERITE_SCRAP
Display: 'Delicious Scraps'
Food:
Nutrition: 2
Saturation: 2
EatSeconds: 2
CanAlwaysEat: true
Proposed fixes
There was an update on Dec 18, 2024. Build 5290, where it's mentioned to "use paper food component when on paper". Could be relevant perhaps?
added Bug label
Looks like you have to combine with the consume component to get it to work on items that you cannot already consume. The below Configuration worked. I'll check with Lxlp and see if I can make an edit to the wiki.
Thanks for your comment, AhihiQK
NetheritePops: Material: NETHERITE_SCRAP Display: 'Delicious Scraps' Consumable: ConsumeSeconds: 1 HasParticles: true Animation: EAT Food: Nutrition: 100 Saturation: 100 CanAlwaysEat: true
Edited by SkyKiller63