Enchantment "Can be applied to" not working

Started by Plantt on Thu, 08/18/2022 - 03:17

Topic category: Help with modding (Java Edition)

Last seen on 21:42, 23. Aug 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Enchantment "Can be applied to" not working
Thu, 08/18/2022 - 03:17

I was attempting to make an enchantment that could only be applied to three specific items (we'll call them trumpets, because that's what they are). However, when checking what items the enchanted book would combine with, it could be combined with other items, including items that are not usually enchantable, like blocks. I tested the enchanting tutorial found here, porting it into 1.18.2. Where I found the same issue. Is this a bug or am I just doing something dumb on my end?

Last seen on 21:42, 23. Aug 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Alright, so I was messing…
Fri, 08/19/2022 - 13:34

Alright, so I was messing around with enchantments in minecraft when modded with MCreator, and I was able to enchant axes with Luck of the Sea, the only way that I have found to restrict enchantments is with mutually exclusive enchantments, such as Infinity and Mending. This is certainly a bug, and I am about to test whether it is a bug with MCreator specifically or Forge in general.

Last seen on 21:42, 23. Aug 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Turns out that, in Vanilla…
Fri, 08/19/2022 - 14:16

Turns out that, in Vanilla Minecraft, you can apply any enchantment to any item while in creative mode, this has turned out to be not a bug.