#Help with NOT in execute command

1 messages · Page 1 of 1 (latest)

versed orbit
#

Current command: execute as @a if items entity @s armor.head minecraft:netherite_helmet[minecraft:custom_model_data=1006] run scoreboard players set @s King 1
I want to make an opposite with a not that sets it to 0, but how would I do it?

patent pythonBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1735109274:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

versed orbit
#

Just found a fix,
/execute as @a if items entity @s armor.head #minecraft:head_armor[!minecraft:custom_model_data=1006] run scoreboard players set @s King 0

patent pythonBOT
#
Question Closed

Your question, #1321361259094081577 (Help with NOT in execute command), was resolved!

Original Message

#1321361259094081577 message

Duration open

9m

patent pythonBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.