Topic category: Help with Minecraft modding (Java Edition)
So I added a custom set of weapons and an enchantment for armor. If the weapon is used on an entity who isn't wearing any armor with this enchantment all it's potion effects should get cleared but if any of the armor pieces do have the enchantment it shoudn't do antything. It works just fine on mobs but for whatever reason it just won't work on players, If I only have the clear all potion effects block without any of the if statements it does work on players so something in the if statements does work on mobs but not on players. It's something with the "get item from armor" or the "has enchatnment" block because that's all the if statements contain, but how can I fix or get around this issue?
The code block on top does the same as the one at the bottom just without the logs and using or instead of multiple if statements.
Post a picture and I may be able to help.
looks like the image didn't work, I'll try to reupload it here.