Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- czas: 5
- czasvip: 3
- nazwa: &2&lRozczka&6&lTP
- nazwavip: &e&lVIP&2&lRozczka&6&lTP
- #-- GRACZ --#
- on load:
- set {_nazwa} to "RozczkaTP"
- Recipe.new{ {_nazwa} }
- {_nazwa}.Recipe.registerIngredient{2, 1 gold block}
- {_nazwa}.Recipe.registerIngredient{5, 1 gold block}
- {_nazwa}.Recipe.registerIngredient{8, 1 stick}
- {_nazwa}.Recipe.registerResult{1 blaze rod of efficiency 5 named "{@nazwa}"}
- {_nazwa}.Recipe.register
- command /ustaw:
- trigger:
- player has permission "admin":
- set {rozczkatp} to location of player
- send "&7Ustawiles spawn rozczki !"
- on rightclick:
- player is holding blaze rod of efficiency 5 named "{@nazwa}":
- {rozczkatp} is set:
- set {_posx} to x-location of player
- set {_posz} to z-location of player
- set {_posy} to y-location of player
- set {_czas} to {@czas}
- send "&7Zostaniesz przeniesiony na spawn za &c%{_czas}% &7sek. Nie ruszaj sie!"
- remove 1 blaze rod of efficiency 5 named "{@nazwa}" from player
- wait 1 second
- loop {@czas} times:
- difference between x-location of player and {_posx} is bigger than 0.5:
- send "&cTeleportacja przerwana."
- stop
- difference between z-location of player and {_posz} is bigger than 0.5:
- send "&cTeleportacja przerwana."
- stop
- difference between y-location of player and {_posy} is bigger than 0.5:
- send "&cTeleportacja przerwana."
- stop
- add -1 to {_czas}
- {_czas} is 0:
- teleport player to {rozczkatp}
- send "&7Zostales przeniesiony na &cspawn&7."
- stop
- send "&7Teleportacja nastapi za &c%{_czas}%&7 sek."
- wait 1 second
- stop
- player has permission "admin":
- send "&7Ustaw najpierw spawn. &c/ustaw"
- else:
- send "&7Wystapil problem z rozczka, zglos to do administratora!"
- #-- VIP --#
- on load:
- set {_nazwavip} to "VIPRozczkaTP"
- Recipe.new{ {_nazwavip} }
- {_nazwavip}.Recipe.registerIngredient{2, 1 emerald}
- {_nazwavip}.Recipe.registerIngredient{5, 1 emerald}
- {_nazwavip}.Recipe.registerIngredient{8, 1 stick}
- {_nazwavip}.Recipe.registerResult{1 blaze rod of efficiency 5 named "{@nazwavip}"}
- {_nazwavip}.Recipe.register
- on rightclick:
- player has permission "rozczka.vip":
- player is holding blaze rod of efficiency 5 named "{@nazwavip}":
- {rozczkatp} is set:
- set {_posx} to x-location of player
- set {_posz} to z-location of player
- set {_posy} to y-location of player
- set {_czasvip} to {@czasvip}
- send "&7Zostaniesz przeniesiony na spawn za &c%{_czasvip}% &7sek. Nie ruszaj sie!"
- remove 1 blaze rod of efficiency 5 named "{@nazwavip}" from player
- wait 1 second
- loop {@czasvip} times:
- difference between x-location of player and {_posx} is bigger than 0.5:
- send "&cTeleportacja przerwana."
- stop
- difference between z-location of player and {_posz} is bigger than 0.5:
- send "&cTeleportacja przerwana."
- stop
- difference between y-location of player and {_posy} is bigger than 0.5:
- send "&cTeleportacja przerwana."
- stop
- add -1 to {_czasvip}
- {_czasvip} is 0:
- teleport player to {rozczkatp}
- send "&7Zostales przeniesiony na &cspawn&7."
- stop
- send "&7Teleportacja nastapi za &c%{_czasvip}%&7 sek."
- wait 1 second
- stop
- player has permission "admin":
- send "&7Ustaw najpierw spawn. &c/ustaw"
- else:
- send "&7Wystapil problem z rozczka, zglos to do administratora!"
- else:
- send "&7Ta &crozczke&7 moze uzywac tylko &c&lvip&7!"
Advertisement
Add Comment
Please, Sign In to add comment