This command adds a gravity gun to the game, which can be used to control blocks even from a distance. Now it is not difficult to clear your territory of zombies, because you can collect them all and send them to Nether World.
How to use Gravity Gun
- 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