Enchantments for unenchantable items

Started by Bananas on Thu, 01/07/2021 - 17:02

Topic category: Help with modding (Java Edition)

Last seen on 20:02, 20. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Enchantments for unenchantable items
Thu, 01/07/2021 - 17:02

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 19:49, 3. Nov 2021
Joined Nov 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 20:02, 20. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 19:49, 3. Nov 2021
Joined Nov 2018
Points:

User statistics:

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

Set food level to get food level + amount.