Enchantments for unenchantable items

Started by Bananas on

Topic category: Help with modding (Java Edition)

Last seen on 10:42, 27. Mar 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Enchantments for unenchantable items

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.

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think actually trying it…
Thu, 01/07/2021 - 17:09

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.

Last seen on 10:42, 27. Mar 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, you're true, I tested…
Thu, 01/07/2021 - 17:58

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.

Last seen on 14:43, 2. Aug 2022
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Set food level to get food…
Thu, 01/07/2021 - 19:06

Set food level to get food level + amount.