VulCode

Firework creator

Build bursts with shape, colours and effects, get a /give or /summon.

Category
Minecraft
Price
free

The tool starts in your browser.

Everything is calculated in your browser. Nothing you type is sent to our server.

How to use it in three steps

The tool as a schematic with this page's example. Each step's number stands where you take it: in the fields, at the result or outside the tool.

Firework creator
What you enter
A large ball, red and yellow, with twinkle, flight 2
  1. Add a burst: shape, colours and fade colours.

  2. Turn on twinkle or trail and set the flight duration.

What you get
/give @p minecraft:firework_rocket[fireworks={flight_duration:2,explosions:[{shape:"large_ball",colors:[I;11743532,14602026],has_twinkle:true}]}] 1
  1. Copy the /give or /summon command.

A rocket with a twinkling red and yellow ball

The example dyes turned into the numbers the game builds the burst from, and the whole /give command. The result is computed by the same function the tool at the top of the page uses, every time the page is shown.

You set

Shape
Large ball
Colours
Red, Yellow
Effect and flight
twinkle, flight 2

Dyes as numbers

Red
11743532 (#b3312c)
Yellow
14602026 (#decf2a)
What the tool does

A firework stores a dye colour as an RGB number, different from the same dye's colour on a banner.

The burst

explosion
{shape:"large_ball",colors:[I;11743532,14602026],has_twinkle:true}
What the tool does

The shape, colours and effects make one burst. The colour list has the I prefix because they are integers.

The rocket

fireworks
{flight_duration:2,explosions:[{shape:"large_ball",colors:[I;11743532,14602026],has_twinkle:true}]}
What the tool does

The flight duration and the list of bursts go into the fireworks component.

Command

  • To craft it: a fire charge, glowstone dust
/give @p minecraft:firework_rocket[fireworks={flight_duration:2,explosions:[{shape:"large_ball",colors:[I;11743532,14602026],has_twinkle:true}]}] 1

Questions