on right click on stone button: if block behind target block is a sponge: set {_x} to random integer between 1000 and -1000 set {_y} to 0 set {_z} to random integer between 1000 and -1000 while block at location at {_x}, {_y}, {_z} is not air: add 1 to {_y} if {_y} is 256: send "&cNie można było znaleźć bezpiecznej lokalizacji." stop else if block at location at {_x}, {_y}, {_z} is air: if block above block at location at {_x}, {_y}, {_z} is air: if block below block at location at {_x}, {_y}, {_z} is not water: if block below block at location at {_x}, {_y}, {_z} is not lava: set {_loc} to block at location at {_x}, {_y}, {_z} #jak będzie za nisko to daj: set {_loc} to block at location at {_x}, {_y} + 1, {_z} teleport player to {_loc} send "&6Zostales przeteleportowany na koordynaty: &2%{_x}%&6/&2%{_z}%&6!" to player stop