Execute unless always fails. If the entity is found, it will do nothing as intended. If the entity is not found, nothing will happen and it will output "no entity is found"
execute unless entity @p run say hi
Works as intended, hi is not saidexecute unless entity @e[name=noentity] run say hi
Does not work, hi is not said and No entity was found
is outputted to chat
Comments 0
No comments.