command /dzialka [] []: trigger: if arg 1 is "stworz": if player doesn't have 1 of emerald block: send "&cNie masz bloku emeraldu" stop {dzialka::%player%} is not set set block under player to emerald block remove 1 of emerald block from player add player to {dz::%player%::*} set {_} to location of player set {_x} to x-pos of player +32 set {_y} to y-pos of player +255 set {_z} to y-pos of player +32 teleport player to location({_x}, {_y}, {_z}) wait 5 ticks execute player command "//pos1" wait 5 ticks set {_x} to (x-pos of {_}) -32 set {_y} to (y-pos of {_}) -120 set {_z} to (y-pos of {_}) -32 teleport player to location({_x}, {_y}, {_z}) wait 5 ticks execute player command "//pos2" wait 5 ticks teleport player to {_} execute player command "/rg create dzialka%player's uuid%" execute player command "/rg flag dzialka%player's uuid% greeting &aWchodzisz na dzialke gracza %player%." execute player command "/rg flag dzialka%player's uuid% farewell &aOpuszczasz dzialke %player%." loop 100 times: send "" to player set {dzialka::%player%} to player's name if arg 1 is "usun": {dzialka::%player%} = true execute player command "rg delete dzialka%player's uuid%" delete {dzialka::%player%} if arg 1 is "zapros": if arg 2 is set: add uuid of arg 2 to {dz::%player%::*} if arg 1 is "usunznajomego": if arg 2 is set: remove uuid of arg 2 from {dz::%player%::*} on break: "%region at player%" contains "dzialka" set {_} to "%region at player%" replace "dzialka" and "in world world" with "" in {_} send {_} if {_} contains player's uuid: stop loop {dz::%{_}%::*}: if loop-value = player's uuid: stop cancel event on place: "%region at player%" contains "dzialka" set {_} to "%region at player%" replace "dzialka" and "in world world" with "" in {_} send {_} if {_} contains player's uuid: stop loop {dz::%{_}%::*}: if loop-value = player's uuid: stop cancel event on right click: "%region at player%" contains "dzialka" set {_} to "%region at player%" replace "dzialka" and "in world world" with "" in {_} send {_} if {_} contains player's uuid: stop loop {dz::%{_}%::*}: if loop-value = player's uuid: stop cancel event