8tPL7H54
Język: Skript
|
Autor: Anonimowy
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": execute console command "pex user %player% add sk.rozdzka" apply nausea 2 to the player for 30 seconds set {_pozycjatp::%player%} to position of player set {_itemtp::%player%} to player's tool wait 3 second if player has got {_itemtp::%player%} parsed as item: {_pozycjatp::%player%} is position of player: execute player command "/teleport" execute console command "pex user %player% remove sk.rozdzka" remove nausea from player remove 1 stick named "&4Rozdzka teleportujaca" from player send "&6Teleportuje na spawn" else: send "&cPoruszyles sie! Teleportacja przerwana." else: send "&cWyrzuciles rozdzke! Teleportacja przerwana." command /spawn: trigger: send "&8Aby przeteleportowac na spawn musisz miec rozdzke teleportacyjna" send "&8Aby ja stworzyc potrzebujesz 1 blok zlota i 2 patyki" send "&8Albo isc na kordy: &3x:&f%{spawn.x}% z:&f%{spawn.z}%" command /setspawn: trigger: set {spawn.x} to x-location of player set {spawn.z} to z-location of player set {spawn.spawn} to location of player send "&aPomyslnie ustawiles spawn" command /teleport: trigger: if player has permission "sk.rozdzka": teleport the player to {spawn.spawn}