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
set {_loc} to getRandomLoc(-1000, 1000, -1000, 1000, "nazwa_twojego_swiata")
set {_n} to random integer between 1 and 3
Zostaje mi cos takiego. Ale z tego co widze nie bedzie muszczać żadnych fajerwerek