options:
world: gtp # Ustaw tu owiat
x-max: 500 # Maxymalne kordy x
x-min: -500 # Minimalne kordy x
z-max: 500 # Maxymlane kordy z
z-min: -500 # Minimalne kordy z
function equip(p: player):
if {_p} has permission "zestaw.2":
equip {_p} with diamond chestplate
equip {_p} with (...) #dalej według wzoru dla zbroi zestaw2
give 1 diamond sword to {_p}
give (...) #dalej według wzoru dla przedmiotów z ekwipunku zestaw2
else:
equip (...) #zbroja dla domyślnego zestawu
give (...) #przedmioty dla domyślnego zestawu
on rightclick on polished blackstone button:
set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"
while block under {_loc} is air or lava:
remove 1 from y-coords of {_loc}
block under {_loc} is lava:
set {_loc} to location at random integer between {@x-min} and {@x-max}, 256, random integer between {@z-min} and {@z-max} in "{@world}"
loop players in radius 4 around block behind block:
teleport loop-player to {_loc}
equip(loop-player)
teleport player to {_loc}
equip(player)