Onenrico

Pad V1.0

Mar 19th, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. SKript PAD V1.0
  2. #Memerlukan Add-ON
  3. # Extras SK
  4. # SkRayFall
  5. # SkQuery
  6.  
  7. options:
  8. blok: sea lantern
  9. pf: &7&l[&6Teleporter&7&l]&f
  10.  
  11. aliases:
  12. sea lantern = 169
  13.  
  14. on any movement:
  15. if {pp.%player%} is not set:
  16. if block beneath player is {@blok}:
  17. player is online
  18. if {pp.dest.%location of block beneath player%} is set:
  19. set {pp.%player%} to 1
  20. set action bar of player to "&7&l[&6Teleporter&7&l]&f Kamu Di Teleport Ke &6&l%{pp.dest.%location of block beneath player%}%"
  21. send "&7&l[&6Teleporter&7&l]&f Kamu Di Teleport Ke &6&l%{pp.dest.%location of block beneath player%}%"
  22. play "PORTAL_TRAVEL" specifically to player with pitch 2 and volume 10
  23. set {_x} to x-coord of {pp.tele.%{pp.dest.%location of block beneath player%}%}
  24. set {_y} to y-coord of {pp.tele.%{pp.dest.%location of block beneath player%}%}
  25. set {_z} to z-coord of {pp.tele.%{pp.dest.%location of block beneath player%}%}
  26. set {_y1} to {_y} + 1
  27. set {_arah} to facing of the player
  28. set {_a} to "%{_arah}%"
  29. if {_a} is "north":
  30. set {_z} to {_z} - 2
  31. if {_a} is "west":
  32. set {_x} to {_x} - 2
  33. if {_a} is "east":
  34. set {_x} to {_x} + 2
  35. if {_a} is "south":
  36. set {_z} to {_z} + 2
  37. set {_y2} to {_y} - 1
  38. set {_hasil} to location of block at the location ({_x}, {_y1}, {_z})
  39. set {_shasil} to location of block at the location ({_x}, {_y2}, {_z})
  40. wait 5 tick
  41. teleport player to {_hasil}
  42. delete {pp.%player%}
  43. wait 1 tick
  44. spawn 100 of particle witch magic:0 offset by 2, 1, 2 at player for player with data 0
  45. stop
  46. command /pad:
  47. trigger:
  48. player command "/setpad"
  49. command /setpad [<text>] [<text>] [<text>]:
  50. trigger:
  51. if arg 1 is not set:
  52. send "&e&m----------------------------------------------------"
  53. send " "
  54. send "/setpad Rec <code> &7- &eMengeset Pad Sebagai Penerima"
  55. send "/setpad Sen <code> &7- &eMengeset Pad Sebagai Pengirim"
  56. send " "
  57. send "Untuk Menghapus Pad Tinggal Mengancurkan Pad"
  58. send " "
  59. send "&e&m----------------------------------------------------"
  60. if arg 1 is "Rec":
  61. if block beneath player is not {@blok}:
  62. send "{@pf} Block Di Bawahmu Harus &b{@blok}"
  63. stop
  64. if block beneath player is {@blok}:
  65. set {pp.tele.%arg 2%} to location of player
  66. set {pp.tele.%location of block beneath player%} to arg 2
  67. send "{@pf} Blok %location of block beneath player% telah di setting sebagai penerima"
  68. send "{@pf} Dengan Code ""%arg 2%"""
  69. send "{@pf} Gunakan /setpad sen %arg 2% pada teleport pad lain untuk teleport ke sini"
  70. if arg 1 is "sen":
  71. if block beneath player is not {@blok}:
  72. send "{@pf} Block Di Bawahmu Harus &b{@blok}"
  73. stop
  74. if block beneath player is {@blok}:
  75. set {pp.dest.%location of block beneath player%} to arg 2
  76. send "{@pf} Blok %location of block beneath player% telah di setting sebagai pengirim"
  77. send "{@pf} Dengan Code ""%arg 2%"""
  78. send "{@pf} Gunakan /setpad rec %arg 2% pada teleport pad lain untuk teleport ke sana"
  79. on break of {@blok}:
  80. if player is op:
  81. if {pp.dest.%location of block%} is set:
  82. send "{@pf} Pad Pengirim ""%{pp.dest.%location of block%}%"" Telah Di hancurkan"
  83. delete {pp.dest.%location of block%}
  84. if {pp.tele.%location of block%} is set:
  85. send "{@pf} Pad Penerima ""%{pp.tele.%{pp.tele.%location of block%}%}%"" Telah Di hancurkan"
  86. delete {pp.tele.%{pp.tele.%location of block%}%}
  87. delete {pp.tele.%location of block%}
Advertisement
Add Comment
Please, Sign In to add comment