home Forumsplay_arrow Help play_arrow Java Edition

1

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

1 emeralds3 replies53 views
created 06/25/2019 10:21 pm by GabeTheLivelyArtist
last reply 06/26/2019 9:27 pm
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 avatar
GabeTheLivelyArtist
Level 16 : Journeyman Princess
7

comment Login or register to post a reply.

3 replies

2
06/26/2019 10:07 am
Level 16 : Journeyman Button Pusher
unnamedDE
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 16 : Journeyman Princess
GabeTheLivelyArtist
Thank you so much, this is very helpful.
2
06/26/2019 7:14 amhistory
Level 7 : Apprentice Modder
HoboMaggot
/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

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome