Armour enchantment problem

Started by Lilyofluck on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Armour enchantment problem
Thu, 11/18/2021 - 02:10 (edited)

I have a piece of armour that adds the enchantment Thorns III to itself once worn. I want it to remove thorns III off of itself once it is no longer in the armour slot (To stop infinite XP using the grinder). Just testing if there is nothing in the armour slots won't work because it only does the procedure WHILE your wearing the armour peice.

Edited by Lilyofluck on Thu, 11/18/2021 - 02:10
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
First: Its Armor Second: You…
Wed, 11/17/2021 - 04:13

First: Its Armor

Second: You have to check every tick in which slot the item is and if its in an armor slot and doesnt have thorns III enchanted, then enchant it with thorns III. If its not in an armor slot and is enchanted with thorns III, then disenchant thorns III.

~Lanee

Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That doesn't work because it…
Thu, 11/18/2021 - 02:05

That doesn't work because it only ticks if you're wearing the armour. Also, realize there are multiple ways to spell things. Armour is British and I just got used to spelling it that way smh