Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.31 KB | None | 0 0
  1. options:
  2. specchat: &8[&5Spectator&8]&7
  3. P: &8[&5Spectator&8]&7
  4. Version: 2.1
  5.  
  6. command /t [<player>]:
  7. usage: /t [<player>]
  8. trigger:
  9. if {spec::%command sender%} is true:
  10. if arg-1 is not set:
  11. loop all players:
  12. {spec::%loop-player%} is not set
  13. add loop-player to {_tp::*}
  14. set {_player} to (a random element out of {_tp::*})
  15. if {_player} is not set:
  16. send "{@P} Nobody to teleport to."
  17. send "{@P} Teleported to %{_player}%"
  18. teleport command sender to {_player}
  19. else:
  20. send "{@P} Teleported to %arg-1%"
  21. teleport command sender to arg-1
  22. else:
  23. send "{@P} You are not spectating!"
  24.  
  25. command /unspec [<player>]:
  26. usage: /unspec [<player>]
  27. trigger:
  28. if {spec::%command sender%} is set:
  29. command "/unspec %command sender%"
  30. arg-1 is not set
  31. send "{@P} &aYa no estas specteando!"
  32. stop trigger
  33. if command sender does not have permission "uhc.spectate":
  34. send "{@P} &cNo estas specteando o no tienes permisos!"
  35. stop trigger
  36. if arg-1 is set:
  37. set {_player} to arg-1
  38. else:
  39. set {_player} to command sender
  40. if {spec::%{_player}%} is true:
  41. delete {spec::%{_player}%}
  42. command "/rea %{_player}%"
  43. set {_player}'s gamemode to survival
  44. clear the inventory of {_player}
  45. command "/spawn %{_player}%"
  46. command "/effect %{_player}% clear"
  47. command "/speed walk 1 %{_player}%"
  48. command "/speed fly 1 %{_player}%"
  49. else:
  50. send "{@P} %{_player}% is not spectating!"
  51.  
  52. command /spec [<player>]:
  53. usage: /spec [<player>]
  54. permission: uhc.spectate
  55. trigger:
  56. if arg-1 is set:
  57. set {_player} to arg-1
  58. else:
  59. set {_player} to command sender
  60. if {spec::%{_player}%} is not set:
  61. send "&b=========================================" to {_player}
  62. send "{@P} &3Ahora estas especteando!" to {_player}
  63. send "{@P} Para hablarle a otros espectadores usa /spc." to {_player}
  64. send "{@P} Para ver todos los espectadores usa /seespecs." to {_player}
  65. send "&b=========================================" to {_player}
  66. set {_player}'s gamemode to creative
  67. clear {_player}'s inventory
  68. set {spec::%{_player}%} to true
  69. command "/van %{_player}%"
  70. command "/vanflag %{_player}% +chat"
  71. command "/vanflag %{_player}% -see"
  72. clear inventory of {_player}
  73. give 1 glowstone named "&6Vision nocturna" to {_player}
  74. give 1 glass bottle named "&6Limpiar efectos de pociones" to {_player}
  75. give 1 nether star named "&6Jugadores cercanos" to {_player}
  76. give 1 golden apple named "&6Ir a 0,0" to {_player}
  77. give 1 player head named "&6Ir hacia jugador aleatorio" to {_player}
  78. give 1 redstone named "&6Abre inventarios" to {_player}
  79. else:
  80. send "{@P} &c%arg-1% &cYa esta especteando."
  81.  
  82. on right click on entity:
  83. {spec::%event-player%} is true
  84. name of event-player's tool is "&6Abre inventarios"
  85. entity is a player
  86. distance between event-player and entity is less than 5
  87. event-player command "/inv %entity%"
  88.  
  89. on right click on furnace:
  90. {spec::%event-player%} is true
  91. name of event-player's tool is "&6Abre inventarios"
  92. distance between event-player and event-block is less than 5
  93. open event-block to event-player
  94.  
  95. on right click on chest:
  96. {spec::%event-player%} is true
  97. name of event-player's tool is "&6Abre inventarios"
  98. distance between event-player and event-block is less than 5
  99. set (player's ender chest) to (inventory of event-block)
  100. open (player's ender chest) to (event-player)
  101.  
  102. on command "/tp":
  103. {spec::%command sender%} is set
  104. command sender does not have permission "uhc.spectate"
  105. cancel the event
  106. command sender command "/t %arguments%"
  107.  
  108. on command "/invsee":
  109. {spec::%command sender%} is set
  110. command sender does not have permission "uhc.spectate"
  111. cancel the event
  112. command sender command "/inv %arguments%"
  113.  
  114. command /inv <player>:
  115. trigger:
  116. if {spec::%command sender%} is true:
  117. open arg 1's inventory to command sender
  118. message "{@P} Opened %arg-1%'s inventory."
  119. else:
  120. message "{@P} Your not spectating!"
  121.  
  122. command /seespecs:
  123. trigger:
  124. if {spec::%command sender%} is not set:
  125. send "{@P} &cNo estas specteando!"
  126. stop trigger
  127. if {spec::*} is set:
  128. send "{@P} &bEspectadores:"
  129. loop {spec::*}:
  130. send " &f- &c%loop-index%"
  131. else:
  132. send "{@P} &cNo hay espectadores!"
  133.  
  134. on gamemode change:
  135. {spec::%event-player%} is set
  136. cancel the event
  137.  
  138. command /spc <text>:
  139. aliases: /specchat, /specc
  140. trigger:
  141. if {spec::%command sender%} is not set:
  142. send "{@P} &cNo estas especteando!"
  143. stop trigger
  144. loop all players:
  145. {spec::%loop-player%} is true
  146. send "{@specchat} %command sender%: %arg-1%" to loop-player
  147.  
  148. on quit:
  149. {spec::%player%} is true
  150. command "/unspec %player%"
  151.  
  152. #----------------------#
  153. # TOOLS #
  154. #----------------------#
  155.  
  156.  
  157. on rightclick holding glowstone:
  158. name of player's tool is "&6Vision nocturna"
  159. {spec::%player%} is true
  160. apply night vision to player for 999 days
  161. send "{@P} &a¡Listo!."
  162.  
  163. on rightclick holding glass bottle:
  164. name of player's tool is "&6Limpiar efectos de pociones"
  165. {spec::%player%} is true
  166. command "/effect %player% clear"
  167. send "{@P} &a¡Listo!"
  168.  
  169. on rightclick holding 397:3:
  170. name of player's tool is "&6Ir hacia jugador aleatorio"
  171. {spec::%player%} is true
  172. loop all players:
  173. {spec::%loop-player%} is not set
  174. add loop-player to {_tp::*}
  175. set {_player} to (a random element out of {_tp::*})
  176. teleport player to {_player}
  177. if {_player} is not set:
  178. send "{@P} &cNo hay nadie hacia quien ir."
  179. stop
  180. send "{@P} Especteando a: &c%{_player}%"
  181.  
  182. on rightclick holding a golden apple:
  183. name of player's tool is "&6Ir a 0,0"
  184. {spec::%player%} is true
  185. set {_pos} to (location at 0, 250, 0)
  186. while block at location 2 below {_pos} is air:
  187. set {_pos} to (location 2 below {_pos})
  188. teleport the command sender to (location 15 above {_pos})
  189. send "{@P} &aAhora estas en 0,0"
  190.  
  191. on rightclick holding a nether star:
  192. name of player's tool is "&6Jugadores cercanos"
  193. {spec::%player%} is true
  194. loop players in radius 200 around player:
  195. {spec::%loop-player%} is not set
  196. loop-player is not player
  197. add "&7%loop-player%&f(&c%round(distance between player and loop-player)%m&f)" to {_nearby::*}
  198. if {_nearby::*} is not set:
  199. send "{@P} &cNo hay jugadores cercanos."
  200. stop
  201. send "{@P} &bJugadores cercanos: &c%{_nearby::*}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement