Community Event Participant!
This Blog is in the Planet Minecraft 10 Year Anniversary Event which is now Complete!
See the All Entries!

Minecraft Blogs / Article

#PMC10Y || Behind The Scenes: The Fireworks Show

  • 460 views, 0 today
  • 25
  • 11
  • 9
Bertiecrafter avatar Bertiecrafter
Site Moderator
Level 64 : High Grandmaster Stack
After a day of amazing events, we finished with a big bang. Here's how the fireworks show was made.

I wrote down all the coordinates for where the fireworks should launch and where to place stained glass to activate/color the beacon beams. Then I recreated the most important bits from the front of the museum locally, functioning as markers to test the show.

Here's a video of what that looked like in the early stages:

The show was made using a datapack that has 1 function file for each frame. Each frame calls the next after a certain amount of time using the /schedule command. This is an example of one of the files:

setblock 221 92 -136 minecraft:lime_stained_glass
summon firework_rocket 227 107 -117 {LifeTime:0,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Flight:0b,Explosions:[{Type:4b,Flicker:1b,Trail:0b,Colors:[I;16777215]}]}}}}
summon firework_rocket 237 83 -100 {LifeTime:0,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Flight:0b,Explosions:[{Type:4b,Flicker:0b,Trail:0b,Colors:[I;16777215,16711680,16744448,16776960,8453888,65280,65408,65535,33023,255,8388863,16711935,16711808]}]}}}}
execute unless entity @a[tag=bcpmcfw_cancel] run schedule function bertiecrafter:pmcfw/frame28 1s

As you can see, it's not very exciting. Just a combination of placing glass blocks, firing fireworks and scheduling the next frame.
The entire show consists of 50 frames and was on display for 1,5 minutes. Each firework rocket fires from the floor, so I had to time beacon updates with the explosion of the already flying rockets.

Wolfy Mystic supplied a few of the fireworks after the rainbow beacons.

Are you a datapack creator? A note on /schedule
The /schedule command allows you to delay the execution of a function. It's great, but only for functions that you know only run once at a time in a global context. As soon as the function in question runs more than once at a time or requires a specific location or targets specific entities, I highly advice using a scoreboard objective as timer. You can do this by registering a function in the minecraft:tick tag that then removes 1 from a fictional player on the scoreboard objective every tick. When the timer hits 0, have it run another function. To start the timer, simply set that same player's score to the delay in ticks. (1 second = 20 ticks)

For anyone that missed it, here's a video recorded by Boscawinks

#PMC10Y || Behind The Scenes: The Fireworks Show
#PMC10Y || Behind The Scenes: The Fireworks Show

Create an account or sign in to comment.

11/21/2020 4:47 am
Level 36 : Artisan Chef
Avixey avatar
Happy birthday PMC
11/12/2020 12:41 pmhistory
Level 80 : Elite Hero
Captain_JEK avatar
The fireworks were really good!
They gave me a great idea and inspired me to make something with fireworks myself ^^
11/10/2020 3:27 pm
Level 1 : New Collective
MegaPig31 avatar
Are you going to do this again?
11/11/2020 2:17 am
Level 64 : High Grandmaster Stack
Bertiecrafter avatar
Well, if I do it will be a while until the next celebratory event anyways, but never say never =)
11/10/2020 3:28 pm
Level 1 : New Collective
MegaPig31 avatar
I saw it and it was incredible!
11/10/2020 1:18 amhistory
Level 64 : High Grandmaster Stack
Bertiecrafter avatar
Thank you Cyprezz, Boscawinks, FishStacks, DinoDesmond, DinowCookie, BravePeas, cnorgren, PMC, Brutalight, CaraRose, -Rae-, MegaPig31, dreamCritting, noahsoboz, Yuki, Captain_JEK, ZappyGru, loveanimals4good, CyrusAerol12, Cib, Vellaris, Yellowglacier and Sir_Wodr for the diamonds!
11/09/2020 3:45 pm
Level 67 : High Grandmaster Architect
cnorgren avatar
WOW!! This is so cool!
11/09/2020 3:07 pm
Level 70 : Legendary Cyborg
Cyprezz avatar
Thanks for putting this together for the event! Professionally setup using the columns of the bottom balcony as beacons, fountain as accent and the fireworks themselves framed the museum & logo perfectly.

11/10/2020 2:49 pm
Level 64 : High Grandmaster Stack
Bertiecrafter avatar
Thank you!
Planet Minecraft


© 2010 - 2021