This command enters the game the gravity gun, with which you can control the units even from a distance. Now to clear your land from the zombies won’t be a problem, because You will be able to collect them all and send to hell.
How to use Gravity Gun Command Block
- Copy the command text from a file (Ctrl+A -> Ctrl+C)
- Launch the game and get a command block, to do this type in console /give @p command_block
- Put the command block on the ground
- Click on it right click and paste the command in the “Command console” (Ctrl+V)
- Activate the command block using the button or the lever