Fireworks show: fireworks on command

Datapacks

Salute with volleys of one commandLearn more

One command — and there's a shot in the air around you — missiles — with a ring, line, or bursting, New Year's flowers, or a tricolor. Datepack for a feast on the server or in its own world, Minecraft 1.21.9 - 26.3.

My game select version

We'll remember in this browser and set up where your version is available. Open link settings are more important than this choice; the Vicki versions do not change.

Show

Date · 1.21.9 - 26.3
Missiles
100
Lasts
20.0 with

Launch where you are (operator rights)

/function show:start
Download datapack
What's inside the archive - 6 files

data/minecraft/tags/function/load.json

Load tag: the game calls these functions when loading the world and after /reload.

{
  "values": [
    "show:load"
  ]
}

data/show/function/load.mcfunction

When loading the world: counting volleys.

scoreboard objectives add show dummy

data/show/function/start.mcfunction

/function show:start - fireworks around the one who started it.

execute store result storage show:at x int 1 run data get entity @s Pos[0]
execute store result storage show:at y int 1 run data get entity @s Pos[1]
execute store result storage show:at z int 1 run data get entity @s Pos[2]
scoreboard players set #volley show 0
function show:next

data/show/function/next.mcfunction

We're gonna have 20 tikis in here.

execute if score #volley show matches 20.. run return 0
execute store result storage show:at n int 1 run scoreboard players get #volley show
function show:volley with storage show:at
scoreboard players add #volley show 1
schedule function show:next 20t

data/show/function/volley.mcfunction

Macro: whichever salvo is the one to launch.

$function show:volley/$(n) with storage show:at

data/show/function/stop.mcfunction

/function show:stop - stop the show.

schedule clear show:next

How to start

  1. Download the datapack

    No need to unpack: the game reads it directly from the zip.

  2. Put it into the world

    In single player - saves/<world>/datapacks, on the server - world/datapacks, then /reload.

  3. Stand up and run

    On the square or roof - /function show:start. Rockets take off around, within a radius of eight blocks. Stop - show:stop.

What you need to know

  • Rockets - like from a workbench. Same shapes, colors, trail and shimmer as Firework Generator: The show is made up of the stars of the game.
  • There is one show per setting. The color and shape of each rocket are chosen in advance: the same settings - the same fireworks, you can rehearse.
  • Those standing below will not be affected. Rockets explode two to three dozen blocks above the ground, and firework explosions only injure those close to them.

Countdown to midnight - Timer on screen: put it in his commands when finished function show:start.

Frequently asked questions

How to make fireworks in Minecraft as a command?

Download the fireworks show datapack, place it in the world and stand where the fireworks are needed: /function show:start will launch volleys around you.

Is it possible to choose the colors of the fireworks?

Yes: New Year's, rainbow, tricolor, gold or ice, and flash shapes - ball, star, creeper, explosion.

How to set off fireworks at exactly midnight?

With a timer on the screen: enter “function show:start” into its commands at the end - the fireworks will begin when the countdown reaches zero.