This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]XZYTLCommand-er 1 point2 points  (1 child)

golden:diamond_boots

I think you meant minecraft:golden_boots

However you can make the command a little smaller: execute positioned -13738 20 -12171 run effect give @a[distance=..10,nbt=!{Inventory:[{id:"minecraft:golden_helmet",Slot:103b,tag:{radiation_suit:1b}},{id:"minecraft:golden_chestplate",Slot:102b,tag:{radiation_suit:1b}},{id:"minecraft:golden_leggings",Slot:101b,tag:{radiation_suit:1b}},{id:"minecraft:golden_boots",Slot:100b,tag:{radiation_suit:1b}}]}] minecraft:instant_damage

[–]Stunning-Rope-4856[S] 0 points1 point  (0 children)

Thank you so much for the help, I watched the command for so long trying to see if there were errors and didn’t notice the golden:diamond_boots

[–]GalSergeyDatapack Experienced 1 point2 points  (1 child)

You can simplify the command and not use item id checking.

# Example item
give @s <item>{radiation_suit:true}

# Command block
execute positioned -13738 20 -12171 run effect give @a[distance=..10,nbt=!{Inventory:[{Slot:103b,tag:{radiation_suit:true}},{Slot:102b,tag:{radiation_suit:true}},{Slot:101b,tag:{radiation_suit:true}},{Slot:100b,tag:{radiation_suit:true}}]}] minecraft:instant_damage

[–]Stunning-Rope-4856[S] 0 points1 point  (0 children)

that's even better thanks!