#Detect if nbt has any non-default (non zero) value

1 messages · Page 1 of 1 (latest)

brazen pagoda
#

Atm this moment I cant figure out how to not have to copy this line 10 times for each wave: execute as @e[type=type=pillager,nbt={Wave:1}]
Im just interested in values that are not zero.

verbal orchidBOT
#

<@&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:1730917287: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

zenith nest
#

nbt=!{Wave:0}

brazen pagoda
#

Alright, thats easy haha

zenith nest
#

but make sure you also include if data entity @s Wave so that it doesn’t trigger when there isn’t anything there