Guest User

Untitled

a guest
Oct 9th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.61 KB | None | 0 0
  1. # By UrsoBatata
  2. # Nome: U1v1 2.0
  3. # Versão: 2.0.0
  4.  
  5. options:
  6. tag: &6[1v1]
  7.  
  8.  
  9. command /1v1 setspawn:
  10. permission: "1v1.admin.setspawn"
  11. trigger:
  12. set {1v1} to location of player
  13. send "{@tag} &3Você setou com sucesso o spawn do 1v1"
  14.  
  15. command /1v1:
  16. trigger:
  17. set {1v1spawn} to 1
  18. teleport player to {1v1}
  19. heal player
  20. clear player's inventory
  21. give player 1 blaze rod named "&b1v1"
  22. set {kits.%player%.lastused} to 0
  23.  
  24. on damage:
  25. {1v1spawn} is 1:
  26. cancel event
  27.  
  28. command /1v1 setloc1:
  29. permission: "1v1.admin.setloc1"
  30. trigger:
  31. set {loc1} to location of player
  32. send "&6Você setou com sucesso o lado 1!"
  33.  
  34. command /1v1 setloc2:
  35. permission: "1v1.admin.setloc2"
  36. trigger:
  37. set {loc2} to location of player
  38. send "&6Você setou com sucesso o lado 2!"
  39.  
  40. on right click on entity:
  41. player is holding blaze rod
  42. clicked entity is a player
  43. name of tool of player is "&b1v1"
  44. send "{@tag} &bVocê convidou %clicked entity% para um 1v1"
  45. set {1v1.%player%} to clicked entity
  46.  
  47. on right click on entity:
  48. name of tool of player is "&b1v1"
  49. {1v1.%clicked entity%} is set
  50. {1v1.%clicked entity%} is player
  51. clear {1v1.%player%}
  52. set {lv1.ingame} to 1
  53. set {1v1spawn} to 0
  54. send "{@tag} &7-------------------------------------" to clicked entity
  55. send "{@tag} &6Você agora está lutando com %player% " to clicked entity
  56. send "{@tag} &7-------------------------------------" to clicked entity
  57. send "{@tag} &7-------------------------------------" to player
  58. send "{@tag} &6Você agora está lutando com %clicked entity%" to player
  59. send "{@tag} &7-------------------------------------" to player
  60. clear player's inventory
  61. clear clicked entity's inventory
  62. teleport player to {loc1}
  63. teleport clicked entity to {loc2}
  64. set {kits.%player%.lastused} to 0
  65. set {kits.%clicked entity%.lastused} to 0
  66. wait 3 ticks
  67. equip entity with all iron armour
  68. equip player with all iron armour
  69. give player 1 diamond sword named "PvP"
  70. give entity 1 diamond sword named "PvP"
  71. give player 8 soup
  72. give entity 8 soup
  73. apply slowness 10 to clicked entity for 21 seconds
  74. apply jump boost -10 to clicked entity for 21 seconds
  75. apply slowness 10 to player for 21 seconds
  76. apply jump boost -10 to player for 21 seconds
  77. wait 1 seconds
  78. set {1v1.waittime} to 1
  79. send "{@tag} &aPartida inicia em 20 segundos" to player
  80. send "{@tag} &aPartida inicia em 20 segundos" to clicked entity
  81. wait 10 seconds
  82. send "{@tag} &aPartida inicia em 10 segundos" to player
  83. send "{@tag} &aPartida inicia em 10 segundos" to clicked entity
  84. wait 6 seconds
  85. send "{@tag} &aPartida inicia em 3 segundos" to player
  86. send "{@tag} &aPartida inicia em 3 segundos" to clicked entity
  87. wait 1 seconds
  88. send "{@tag} &aPartida inicia em 2 segundos" to player
  89. send "{@tag} &aPartida inicia em 2 segundos" to clicked entity
  90. wait 1 seconds
  91. send "{@tag} &aPartida inicia em 1 segundo" to player
  92. send "{@tag} &aPartida inicia em 1 segundo" to clicked entity
  93. wait 1 seconds
  94. send "{@tag} &aPartida Iniciou!" to player
  95. send "{@tag} &aPartida Iniciou!" to clicked entity
  96. set {1v1.waittime} to 0
  97.  
  98. on damage:
  99. {1v1.waittime} is 1:
  100. cancel event
  101.  
  102. on right click:
  103. {1v1.waittime} is 1:
  104. cancel event
  105.  
  106. on quit:
  107. delete {1v1.%player%}
  108. clear {1v1.ingame}
  109. set {1v1spawn} to 0
  110.  
  111. on death:
  112. attacker is a player
  113. {lv1.ingame} is 1:
  114. send "{@tag} &7Você matou &d%victim%" to attacker
  115. wait 3 seconds
  116. make attacker execute command "/1v1"
  117. clear {1v1.ingame}
  118. set {1v1spawn} to 0
  119.  
  120. on death of player:
  121. {lv1.ingame} is 1:
  122. send "{@tag} &7Você foi morto por &d%attacker%" to victim
  123. clear {lv1.ingame}
  124. set {1v1spawn} to 0
Advertisement
Add Comment
Please, Sign In to add comment