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:
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.
For anyone that missed it, here's a video recorded by Boscawinks
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
Tags |
tools/tracking
4830862
6
pmc10y-behind-the-scenes-the-fireworks-show
Create an account or sign in to comment.
They gave me a great idea and inspired me to make something with fireworks myself ^^
A++