Armour enchantment problem

Started by Lilyofluck on

Topic category: Help with modding (Java Edition)

Last seen on 02:47, 23. Aug 2022
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
Last seen on 13:34, 4. Oct 2022
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

Last seen on 02:47, 23. Aug 2022
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