Conditional function command only runs the function if the selection matches exactly one entity
(See also these two Reddit comments by Brian McNamara)
If you run a function using this command:
/function foo:bar if @e[tag=test]
the function foo:bar will only be run if @e[tag=test] matches exactly one entity.
Correspondingly, this command:
/function foo:bar unless @e[tag=test]
will run the function only if @e[tag=test] matches no entities or more than two entities.
2017-05-18, 10:10 PM
2017-05-29, 11:59 AM
2017-05-29, 11:59 AM
15
5
command, condition, function, selector