Przyjmuję to jako zlecenie, a więc proszę, oto skrypt.
W przedostatniej linijce ustawiasz (minimalny koordynat X, maksymalny X, minimalny Z, maksymalny Z, nazwę świata).
function getRandomLoc(xmin: integer=-1000, xmax: integer=1000, zmin: integer=-1000, zmax: integer=1000, world: text="world") :: location:
while {_return} is not set:
set {_x} to random integer between {_xmin} and {_xmax}
set {_z} to random integer between {_zmin} and {_zmax}
set {_loc} to highest block at location at {_x}, 0, {_z} in world ({_world} parsed as world)
if block at {_loc} != lava or water:
add 1 to y-loc of {_loc}
if (block at {_loc}) and (block above block at {_loc}) != lava:
set {_return} to {_loc}
return {_return}
every 1 second:
set {_allColours::*} to red, dark red, yellow, orange, aqua, light aqua and lime
loop 3 times:
add (random element out of {_allColours::*}) to {_colours::*}
set {_loc} to getRandomLoc(-1000, 1000, -1000, 1000, "nazwa_twojego_swiata")
launch firework large ball coloured {_colours::*} at {_loc} with duration (random integer between 1 and 3)