#na zlecenie variables: {portal.%player%} = true on first join: set {portal.%player%} to true options: portal: purple wool named "&5Portal" on place: if player's tool is {@portal}: set {portal::%event-location%} to event-location send " " send " &8> &dPostawiles Portal" send " " on step on purple wool: if event-block is purple wool: if {portal::%event-location%} is set: if {portal.%player%} is false: send " " to player send " &8> &dTeleportacja..." to player send " " to player wait 30 ticks teleport player to {tut1} play raw sound "entity.endermen.teleport" at player with pitch 1 volume 5 if {portal.%player%} is true: send " " to player send " &8> &cJuz ukonczyles te misje!" to player send " &8> &cUzyj &4/mapy &cby kontynuowac przygode!" to player send " " to player wait 1 second teleport player to {mag1}