7olusfUx
Język: Skript
|
Autor: Anonimowy
options: tp_time: 5 on script load: register new shaped recipe for stick of knockback 2 named "&4Rozdzka teleportujaca" using air, gold block, air, air, stick, air, air, stick, air on rightclick: if name of player's tool is "&4Rozdzka teleportujaca": if {spawn.spawn} is not set: send "&cWystapil blad podczas teleportacji, powiadom o tym administratora." stop if {spawn::status::%player%} is set: send "&cJuz sie teleportujesz!" stop set {spawn::status::%player%} to true send "&7Teleportacja na spawn nastapi w ciagu &c{@tp_time} &7sekund. Nie ruszaj sie." remove stick named "&4Rozdzka teleportujaca" from player apply nausea 2 to the player for 10 second set {_pos} to location at (player's x-location, player's y-location, player's z-location) loop {@tp_time} times: wait a second if {_pos} isn't location at (player's x-location, player's y-location, player's z-location): send "&cRuszyles sie, teleportacja przerwana." if player can hold stick named "&4Rozdzka teleportujaca": add stick named "&4Rozdzka teleportujaca" to player else: drop stick named "&4Rozdzka teleportujaca" above player clear {spawn::status::%player%} remove nausea from player stop teleport player to {spawn.spawn} clear {spawn::status::%player%} remove nausea from player send "&6Teleportuje na spawn" stop command /spawn: trigger: send "&8Aby przeteleportowac sie na spawn musisz miec rozdzke teleportacyjna" send "&8Aby ja stworzyc potrzebujesz 1 blok zlota i 2 patyki" send "&8Albo isc na kordy: &3x:&c%{spawn.x}% &3z:&c%{spawn.z}%" stop command /setspawn: trigger: set {spawn.x} to rounded x-location of player set {spawn.z} to rounded z-location of player set {spawn.spawn} to location of player send "&aPomyslnie ustawiles spawn" stop