mojira.dev
MC-120890

Black Firework when /give used

When I do "/give @p minecraft:fireworks 1 0 {Fireworks:{Flight:1,Explosions:[{Type:0,Flicker:0,Trail:1,Colors:[14602026],FadeColors:[14602026]}]}}" it gives me a black firework that is in the style I want, but not the color. It is supposed to be yellow.

Linked issues

Attachments

Comments 2

That's because the colors are an int array, not a list tag. You need to use [I;number], like this:

/give @p minecraft:fireworks 1 0 {Fireworks:{Flight:1,Explosions:[{Type:0,Flicker:0,Trail:1,Colors:[I;14602026],FadeColors:[I;14602026]}]}}

Preston Sanders

(Unassigned)

Unconfirmed

Minecraft 1.12.1

Retrieved