Oxalist

Untitled

Jan 3rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.69 KB | None | 0 0
  1. #Creado Por SrPandaStick#
  2. #vercion: [v1.2]#
  3.  
  4. options:
  5. name: &C&lTNT&8&lBattle &9&l»&a
  6. mundo: TB
  7. on join:
  8. set {join.%player%} to false
  9. command tntbattle [<text>] [<text>]:
  10. aliases: tb
  11. permission: tntbattle.admin
  12. permission message: {@name} &cno puedes ejecutar este comando
  13. trigger:
  14. if arg 2 is not set:
  15. if arg 1 is not set:
  16. send "&a&l&m----------------------------------"
  17. send " &C&lTNT&8&lBattle"
  18. send ""
  19. send "&9&l» &6/TNTBattle setspawn &a->&e Coloca el spawn"
  20. send "&9&l» &6/TNTBattle join &a->&e Comando para entrar"
  21. send "&9&l» &6/TNTBattle leave &a->&e Comando para salir"
  22. send "&6&l» &eBy: SrPandaStick"
  23. send "&a&l&m----------------------------------"
  24. stop
  25. else if arg 1 is "setspawn":
  26. set {arena.tb} to location of player
  27. send "{@name} el spawn fue colocado!"
  28. stop
  29. else if arg 1 is "leave":
  30. if {join.%player%} is true:
  31. if world of player is "{@mundo}":
  32. broadcast "{@name} %player% &ESalio de la partida!"
  33. clear player's inventory
  34. teleport player to {potition.%player%}
  35. set {join.%player%} to false
  36. stop
  37. else:
  38. send "{@name} no estas en el mundo de la partida"
  39. stop
  40. else:
  41. send "{@name} no estas dentro de la partida"
  42. stop
  43. else if arg 1 is "join":
  44. if {join.%player%} is true:
  45. send "{@name} ya estas en el juego!, encaso de ser un error sal del servidor y vuelve a entrar!"
  46. stop
  47. else:
  48. set {potition.%player%} to location of player
  49. teleport player to {arena.tb}
  50. set {join.%player%} to true
  51. if world of player is "{@mundo}":
  52. set player's chestplate to diamond chestplate of protection 1 and unbreaking 1 named "&C&lTNT&8&lBattle"
  53. set player's boots to diamond boots of protection 1 and unbreaking 1 named "&C&lTNT&8&lBattle"
  54. set player's helmet to diamond helmet of protection 1 and unbreaking 1 named "&C&lTNT&8&lBattle"
  55. set player's leggings to diamond leggings of protection 1 and unbreaking 1 named "&C&lTNT&8&lBattle"
  56. give player 1 blaze rod of sharpness 1 named "&C&lTNT&8&lBattle"
  57. give player 10 golden apple named "&C&lTNT&8&lBattle"
  58. give player 16 cooked beef named "&C&lTNT&8&lBattle"
  59. give player 64 stone named "&C&lTNT&8&lBattle"
  60. give player 64 stone named "&C&lTNT&8&lBattle"
  61. give player 64 stone named "&C&lTNT&8&lBattle"
  62. loop all players:
  63. broadcast "{@name} %player% &eEntro a la partida!"
  64. stop
  65. else:
  66. if arg 1 is "noticias":
  67. set {_noticias} to arg-2
  68. send "{@name} las noticias fueron actualizadas"
  69. send "&6&l[%{_noticias}%]"
  70. stop
  71.  
  72. on break:
  73. if world of player is "{@mundo}":
  74. send "{@name} &CNo puedes romper!"
  75. cancel event
  76. stop
  77.  
  78. on quit:
  79. if world of player is "{@mundo}":
  80. broadcast "{@name} %player% &ESalio de la partida!"
  81. clear player's inventory
  82. teleport player to {potition.%player%}
  83. set {join.%player%} to false
  84. stop
  85.  
  86. on command "/sk reload" or "/sk reload all":
  87. if {join.%player%} is true:
  88. if world of player is "{@mundo}":
  89. broadcast "{@name} %player% &ESalio de la partida!"
  90. clear player's inventory
  91. teleport player to {potition.%player%}
  92. set {join.%player%} to false
  93. stop
  94.  
  95. on drop:
  96. if world of player is "{@mundo}":
  97. cancel event
  98.  
  99.  
  100. on respawn:
  101. if {join.%player%} is true:
  102. if world of player is "{@mundo}":
  103. teleport player to {arena.tb}
  104. set player's chestplate to diamond chestplate of protection 1 and unbreaking 1 named "&C&lTNT&8&lBattle"
  105. set player's boots to diamond boots of protection 1 and unbreaking 1 named "&C&lTNT&8&lBattle"
  106. set player's helmet to diamond helmet of protection 1 and unbreaking 1 named "&C&lTNT&8&lBattle"
  107. set player's leggings to diamond leggings of protection 1 and unbreaking 1 named "&C&lTNT&8&lBattle"
  108. give player 1 blaze rod of sharpness 1 named "&C&lTNT&8&lBattle"
  109. give player 10 golden apple named "&C&lTNT&8&lBattle"
  110. give player 16 cooked beef named "&C&lTNT&8&lBattle"
  111. give player 64 stone named "&C&lTNT&8&lBattle"
  112. give player 64 stone named "&C&lTNT&8&lBattle"
  113. give player 64 stone named "&C&lTNT&8&lBattle"
  114.  
  115. #ATAQUE#
  116. On rightclick:
  117. if world of player is "{@mundo}":
  118. if player's tool is blaze rod named "&C&lTNT&8&lBattle":
  119. if {time.%player%} is true:
  120. set {time.%player%} to false
  121. shoot a tnt from the player
  122. stop
  123. else:
  124. send "{@name} espera &e1&a segundo para disparar!"
  125. wait 1 second
  126. set {time.%player%} to true
  127. stop
  128.  
  129. on explode:
  130. entity is tnt:
  131. cancel event
  132. stop
  133.  
  134. on place of a stone:
  135. wait 15 second
  136. set block to air
  137.  
  138. on death:
  139. if world of player is "{@mundo}":
  140. clear drops
Advertisement
Add Comment
Please, Sign In to add comment