PARTICIPANT IN A UNRANKED JAM
This Blog is an entry in the completed Planet Minecraft 10 Year Anniversary Event.

Minecraft Blogs / Article

#PMC10Y || Behind The Scenes: The Fireworks Show

  • 630 views, 1 today
  • 25
  • 11
  • 9
Bertiecrafter's Avatar Bertiecrafter
Retired Moderator
Level 70 : Legendary Engineer
772
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
Tags

Create an account or sign in to comment.

2
11/21/2020 4:47 am
Level 30 : Artisan Chef
Avixey
Avixey's Avatar
Happy birthday PMC
3
11/12/2020 12:41 pmhistory
Level 87 : Elite Deity
Captain_JEK
Captain_JEK's Avatar
The fireworks were really good!
They gave me a great idea and inspired me to make something with fireworks myself ^^
2
11/10/2020 3:27 pm
Level 1 : New Collective
Megavbyte
Megavbyte's Avatar
Are you going to do this again?
1
11/11/2020 2:17 am
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
Well, if I do it will be a while until the next celebratory event anyways, but never say never =)
2
11/10/2020 3:28 pm
Level 1 : New Collective
Megavbyte
Megavbyte's Avatar
I saw it and it was incredible!
3
11/10/2020 1:18 amhistory
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's 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!
4
11/09/2020 3:45 pm
Level 69 : High Grandmaster Architect
cnorgren
cnorgren's Avatar
WOW!! This is so cool!
7
11/09/2020 3:07 pm
Level 70 : Legendary Cyborg
Cyprezz
Cyprezz's 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.

A++
2
11/10/2020 2:49 pm
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
Thank you!
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome