Started by
Bananas
on
Topic category: Help with Minecraft modding (Java Edition)
Hi,
I want to make an enchantment for food, but food is unenchantable by default. If I set the food as item which can be enchanted by that enchantment, will it work? Thanks for answers.
I think actually trying it would take a lot less time than asking the question. It probably would work but you don't need other users to test something you could do an already though of yourself.
If it does work, good for you! If it doesn't we'll help you.
Yes, you're true, I tested it. It works, tough only through anvil. But I can't find in procedures adding of hunger points or food eaten trigger. There's set hunger of entity to, but not something like add x hunger to entity.
Set food level to get food level + amount.