I want to summon lightning from my server console so that it doesn't hit my player, but spawns where my player is facing. How can I do this?


If your server is 1.13+ minecraft, you can use caret notation and the execute command. Using the command

/execute as <player> at @s run summon lightning_bolt ^ ^ ^5

would summon a lightning bolt five blocks in front of a player of your choosing. Keep in mind if the player is facing high up or down the lightning bolt will be in the ground or in the air.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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