command /test: trigger: set {test::%player%} to location at player loop 3 times: if loop-number = 1: set {_x} to "behind" if loop-number = 2: set {_x} to "left" if loop-number = 3: set {_x} to "right" add "%location of block 2 %{_x}% of player%" to {test::%player%} remove "%location of player%" from {test::%player%} spawn 1 zombie at {test::%player%} set walk speed of last spawned entity to 0 wait 2 seconds kill last spawned entity clear {test::%player%}