Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- wait 3 second
- 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"
- command /spawn:
- trigger:
- send "&cAby przeteleportowac na spawn musisz miec rozdzke teleportacyjna"
- send "&cAby ja stworzyc potrzebujesz 1 blok zlota i 2 patyki"
- send "&cAlbo isc na kordy: y:%{y}% z:%{z}%"
- stop
- command /setspawn:
- trigger:
- set {y} to x-location of player
- set {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}
Advertisement
Add Comment
Please, Sign In to add comment