Prevent Replacing Armor?

Started by JustHaven on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Prevent Replacing Armor?

I'm making a potion that, when consumed, gives you a potion effect which locks armor to your armor slots. I've made it so that when the player tries to remove the armor while under effect of the potion, the armor will just reappear in the slot again. However, this leads to duplicating the armor, which I don't want. I just want to make it so the player cannot remove the armor. Is this possible?

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try instead enchanting theā€¦
Fri, 09/20/2024 - 05:52

Try instead enchanting the armor with curse of binding and then when potion wears off removing enchantment