Advertisement
kaiyade

Untitled

Nov 20th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.44 KB | None | 0 0
  1. command /ken:
  2. permission: sk.stick
  3. trigger:
  4. set {%player%.cooldown} to 0
  5. give 1 diamond sword named "&f剣" with lore "&f前方を範囲攻撃できる" to player
  6.  
  7.  
  8. on left click:
  9. if name of the item is "&f剣":
  10. if {%player%.kenskill} is not set:
  11. set {%player%.kenskill} to 0
  12. if {%player%.kenskill} is 0:
  13. if {%player%.knac} is not set:
  14. set {%player%.knac} to 0
  15. if {%player%.knac} is 0:
  16. set {%player%.knac} to 1
  17. set {%player%.kennorloc} to location of the block 3 meter in front of player's head
  18. set {%player%.kennorloc2} to location of the block 7 meter in front of player's head
  19. loop entities in radius 3 around {%player%.kennorloc}:
  20. loop-entity is not player
  21. damage loop-entity by 3.5 heart
  22. show 1 sweep attack particles at loop-entity offset by 0, 0, 0 at speed 1
  23. set {pvp.attacker} to player
  24. if {tdm.team.blue::*} contains player:
  25. set {%loop-entity%.blue} to 1
  26. if {tdm.team.red::*} contains player:
  27. set {%loop-entity%.red} to 1
  28. loop entities in radius 2 around {%player%.kennorloc2}:
  29. loop-entity is not player
  30. damage loop-entity by 3.5 heart
  31. show 1 sweep attack particles at loop-entity offset by 0, 0, 0 at speed 1
  32. set {pvp.attacker} to player
  33. if {tdm.team.blue::*} contains player:
  34. set {%loop-entity%.blue} to 1
  35. if {tdm.team.red::*} contains player:
  36. set {%loop-entity%.red} to 1
  37. wait 1 second
  38. set {%player%.knac} to {%player%.knac} -1
  39.  
  40. if {%player%.kenskill} is 1:
  41. if {%player%.knac} is not set:
  42. set {%player%.knac} to 0
  43. if {%player%.knac} is 0:
  44. set {%player%.knac} to 1
  45. set {%player%.kennorloc} to location of the block 4 meter in front of player's head
  46. set {%player%.kennorloc2} to location of the block 8 meter in front of player's head
  47. loop entities in radius 4 around {%player%.kennorloc}:
  48. loop-entity is not player
  49. damage loop-entity by 6 heart
  50. show 1 sweep attack particles at loop-entity offset by 0, 0, 0 at speed 1
  51. add {%loop-entity%.attacker::*} to player
  52. if {tdm.team.blue::*} contains player:
  53. set {%loop-entity%.blue} to 1
  54. if {tdm.team.red::*} contains player:
  55. set {%loop-entity%.red} to 1
  56. loop entities in radius 4 around {%player%.kennorloc2}:
  57. loop-entity is not player
  58. damage loop-entity by 6 heart
  59. show 1 sweep attack particles at loop-entity offset by 0, 0, 0 at speed 1
  60. add {%loop-entity%.attacker::*} to player
  61. if {tdm.team.blue::*} contains player:
  62. set {%loop-entity%.blue} to 1
  63. if {tdm.team.red::*} contains player:
  64. set {%loop-entity%.red} to 1
  65. wait 1 second
  66. set {%player%.knac} to {%player%.knac} -1
  67.  
  68. on leftclick:
  69. if name of the item is "&f剣":
  70. if {%player%.kenskill} is 0:
  71. if {%player%.knac2} is not set:
  72. set {%player%.knac2} to 0
  73. if {%player%.knac2} is 0:
  74. set {%player%.knac2} to 1
  75. play "ENTITY_PLAYER_ATTACK_SWEEP" to player at volume 1
  76. set {_%player%.num} to 2
  77. set {_Particle} to location of the block {_%player%.num} meter in front of player's head
  78. loop 6 times:
  79. show 1 sweep attack particles at {_Particle} offset by 0, 0, 0
  80. set {_%player%.num} to {_%player%.num} + 1
  81. set {_Particle} to location of the block {_%player%.num} meter infront of player's head
  82. if the block {_%player%.num} meter infront of player's head is not air:
  83. stop loop
  84. wait 1 second
  85. set {%player%.knac2} to 0
  86. if {%player%.kenskill} is 1:
  87. if {%player%.knac2} is not set:
  88. set {%player%.knac2} to 0
  89. if {%player%.knac2} is 0:
  90. set {%player%.knac2} to 1
  91. play "ENTITY_PLAYER_ATTACK_SWEEP" to player at volume 1
  92. set {_%player%.num} to 2
  93. set {_Particle} to location of the block {_%player%.num} meter in front of player's head
  94. loop 20 times:
  95. show 1 sweep attack particles at {_Particle} offset by 0, 0, 0
  96. display 10 redstone particle at location of {_Particle} with color 214, 35, 67 offset by 0.0, 0.0, 0.0
  97. set {_%player%.num} to {_%player%.num} + 0.5
  98. set {_Particle} to location of the block {_%player%.num} meter infront of player's head
  99. if the block {_%player%.num} meter infront of player's head is not air:
  100. stop loop
  101. wait 1 second
  102. set {%player%.knac2} to 0
  103. every 1 ticks:
  104. loop all players:
  105. clear {%loop-player%.hondwepon}
  106. if {%loop-player%.kenskill} is 1:
  107. display 10 redstone particle at location of loop-player with color 214, 35, 67 offset by 0.0, 0.0, 0.0
  108. if loop-player's held item is stone sword:
  109. set {%loop-player%.hondwepon} to 1
  110. set the loop-player's walk speed to 0.35
  111. set the maximum health of the loop-player to 15
  112. if loop-player's held item is iron sword:
  113. set {%loop-player%.hondwepon} to 2
  114. set the maximum health of the loop-player to 20
  115. set the loop-player's walk speed to 0.15
  116. if {%loop-player%.hondwepon} is not set:
  117. set the loop-player's walk speed to 0.25
  118. set the maximum health of the loop-player to 20
  119.  
  120.  
  121. on drop:
  122. if name of the item is "&f剣":
  123. if {%player%.ksac} is not set:
  124. set {%player%.ksac} to 0
  125. if {%player%.ksac} is 0:
  126. send "&e剣スキルを発動しました" to player
  127. set {%player%.kenskill} to 1
  128. wait 10 second
  129. set {%player%.kenskill} to 0
  130. set {%player%.ksac} to 50
  131. loop 50 times:
  132. wait 1 second
  133. set {%player%.ksac} to {%player%.ksac} -1
  134. send "スキルのクールダウンが終わりました!" to player
  135. if {%player%.ksac} >= 1:
  136. send "&cクールダウン中です!(残り%{%player%.ksac}%秒)" to player
  137.  
  138. on damage:
  139. set {%victim%.kenskilldamage} to damage
  140. if {%victim%.kenskill} is 1:
  141. set {%victim%.kenskilldamage} to {%victim%.kenskilldamage} / 2
  142. set {%victim%.kenskilldamage} to {%victim%.kenskilldamage} * -1
  143. increase the damage by {%victim%.kenskilldamage}
  144. wait 20 tick
  145. clear {%victim%.red}
  146. clear {%victim%.blue}
  147. clear {pvp.attacker}
  148. command /heal:
  149. permission: sk.heal
  150. trigger:
  151. heal player by 99999 heart
  152. set the player's food level to 20
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement