Started by
Lilyofluck
on
Topic category: Help with Minecraft modding (Java Edition)
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
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
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