1

Is it possible to make armor grant immunity to a certain potion effect?

ghdelao's Avatar ghdelao6/25/19 10:21 pm
1 emeralds 232 3
6/26/2019 9:27 pm
ghdelao's Avatar ghdelao
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.
Posted by ghdelao's Avatar
ghdelao
Level 19 : Journeyman Scribe
7

Create an account or sign in to comment.

3

2
06/26/2019 10:07 am
Level 49 : Master Technomancer
unnamedDE
unnamedDE's Avatar
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:witherRun this command in a repeating commandblock
1
06/26/2019 9:27 pm
Level 19 : Journeyman Scribe
ghdelao
ghdelao's Avatar
Thank you so much, this is very helpful.
2
06/26/2019 7:14 amhistory
Level 52 : Grandmaster Blob
HoboMaggot
HoboMaggot's Avatar
/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
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome