1
So I am trying to create armor that will grant immunity to the wither effect, but I can't figure out a way to do this. If anyone could help me with this, that would be great. Thanks.
Create an account or sign in to comment.
3
2
You could execute as everyone wearing a diamond armor and clear the wither effect
/execute as @a[nbt={Inventory:[{Slot:100b,id:"minecraft:diamond_boots"},{Slot:101b,id:"minecraft:diamond_leggings"},{Slot:102b,id:"minecraft:diamond_chestplate"},{Slot:103b,id:"minecraft:diamond_helmet"}]}] run effect clear @s minecraft:wither
Run this command in a repeating commandblock1
Thank you so much, this is very helpful.
2
/execute if entity @a[nbt={ActiveEffects:[{Id:20b}]}] as @s run effect clear @s minecraft:wither
This is without armor. If you want to put in armor as part of the detection, put it in the nbt selector
This is without armor. If you want to put in armor as part of the detection, put it in the nbt selector