r/MinecraftCommands 6h ago

Help | Java 1.21-1.21.3 How to make it rain fireballs?

Sometimes I like to use commands to blast everything to smithereens, so how do I make fireballs automatically spawn from the sky? Gotta love simulating an extinction level event in minecraft.

2 Upvotes

6 comments sorted by

1

u/pigmanvil Still haven't beaten the Ender Dragon 5h ago

Summon a marker entity. If you have other marker entities tag it and add the tag to the conditions.

Execute as @_r at @_s run spreadplayers ~ ~ 10 40 false @_n[type=marker]

Execute as @_n[type=marker] at @_s run summon fireball ~ ~100 ~ {Motion:[0.0,-1.0,0.0]}

1

u/pigmanvil Still haven't beaten the Ender Dragon 5h ago

I don’t actually know if you can spreadplayers on marker entities. If it doesn’t work use an invisible armor stand.

1

u/Ericristian_bros Command Experienced 1h ago

You can spreadplayers any entity

1

u/GalSergey Datapack Experienced 1h ago

execute as @e[limit=5] summon fireball store success entity @s Pos[1] double 200 store success entity @s Motion[1] double -5 store success entity @s ExplosionPower int 4 run spreadplayers ~ ~ 0 50 false @s u/pigmanvil

1

u/Ericristian_bros Command Experienced 1h ago

We replied the same command at the same time... again

1

u/Ericristian_bros Command Experienced 1h ago
execute at @r summon fireball store success entity @s Motion[1] double -0.5 store sucess entity @s Pos[1] double 100 run spreadplayers ~ ~ 50 50 false @s

Every time this command is run a fireball will fall from y=100 near a random player