command /test: trigger: set {test2::%player%} to location at player add "%location of block 2 behind player%" to {test::%player%} add "%location of block 2 left player%" to {test::%player%} add "%location of block 2 right player%" to {test::%player%} loop {test.%player%::*}: spawn zombie at {test.%player%} set walk speed of last spawned entity to 0 wait 2 seconds kill last spawned entity