0

how do you use the /execute command? it seems dumb. I tried to use it for something, but the commands work exactly the same

0

1 Answer 1

1

The execute command is used to call a command on a specific entity.

From Gamepedia:

Syntax:

execute <entity> <x> <y> <z> <command …>

An example would be if you wanted to strike all zombies with lightning you could use:

execute @e[type=Zombie] ~ ~ ~ summon LightningBolt

So as you can see you can use it to spawn things near entities.

Good luck!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.