Facebook
From daz1975, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 439
  1. command /spawn:
  2.         trigger:
  3.                 {spawn} is set:
  4.                         set {_posx} to x-location of player
  5.                         set {_posz} to z-location of player
  6.                         set {_posy} to y-location of player
  7.                         set {_time} to {@time}
  8.                         apply nausea to player for 3 minutes
  9.                         send "&fmy&4game &2-> &6Zostaniesz przeniesiony na spawn za &4%{_time}%s"
  10.                         wait 1 second
  11.                         loop {@time} times:
  12.                                 difference between x-location of player and {_posx} is bigger than 0.5:
  13.                                         send "&fmy&4game &2-> &6Teleportacja przerwana."
  14.                                         remove nausea from the player
  15.                                         stop
  16.                                 difference between z-location of player and {_posz} is bigger than 0.5:
  17.                                         send "&fmy&4game &2-> &6Teleportacja przerwana."
  18.                                         remove nausea from the player
  19.                                         stop
  20.                                 difference between y-location of player and {_posy} is bigger than 0.5:
  21.                                         send "&fmy&4game &2-> &6Teleportacja przerwana."
  22.                                         remove nausea from the player
  23.                                         stop
  24.                                 add -1 to {_time}
  25.                                 {_time} is 0:
  26.                                         teleport player to {spawn}
  27.                                         remove nausea from the player
  28.                                         send "&fmy&4game &2-> &6Wkoncu jestes juz na spawnie !"
  29.                                         stop
  30.                                 send "&fmy&4game &2-> &6Teleportacja nastapi za &4%{_time}%s"
  31.                                 wait 1 second
  32.                         stop
  33.                 send "&fmy&4game &2-> &6Musisz najpierw ustawic spawna !"
  34.  
  35. on first login:
  36.         wait 1 tick
  37.         teleport player to {spawn}
  38. on respawn:
  39.         wait 1 tick
  40.         teleport player to {spawn}