Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.91 KB | None | 0 0
  1. on damage:
  2. victim is a player
  3. set damage delay of victim to 20 tick
  4. set {%victim%.soukencooldown} to 0
  5. if {%victim%.soukenmuteki} is 1:
  6. cancel event
  7. on damage:
  8. if {%victim%.soukencooldown} is 1:
  9. set damage delay of victim to 0 tick
  10.  
  11. command /hanma:
  12. permission: sk.stick
  13. trigger:
  14. set {%player%.cooldown} to 0
  15. give 1 iron sword named "&6ハンマー" with lore "&f広い範囲に攻撃できる" to player
  16.  
  17. on drop:
  18. cancel event
  19. if name of the item is "&6ハンマー":
  20. if {%player%.hsac} is not set:
  21. set {%player%.hsac} to 0
  22. if {%player%.hsac} is 0:
  23. send "&eハンマースキルを発動しました" to player
  24. set {%player%.hanmalocation} to player's location
  25. loop 10 time:
  26. show 10 crit particles at player offset by 0, 0, 0 at speed 1
  27. play "BLOCK_STONE_BUTTON_CLICK_ON" to player at volume 5
  28. wait 0.2 second
  29. show 10 crit particles at player offset by 0, 0, 0 at speed 1
  30. play "BLOCK_ANVIL_PLACE" to player at volume 2
  31. loop entities in radius 10 around player:
  32. clear {%loop-entity%.hanmaiti1}
  33. clear {%loop-entity%.hanmaiti2}
  34. clear {%loop-entity%.hanmaiti3}
  35.  
  36. loop entities in radius 6 around player:
  37. loop-entity is not a player
  38. set {%loop-entity%.hanmaiti} to 1
  39.  
  40. loop entities in radius 4 around player:
  41. loop-entity is not a player
  42. set {%loop-entity%.hanmaiti} to 2
  43.  
  44. loop entities in radius 2 around player:
  45. loop-entity is not a player
  46. set {%loop-entity%.hanmaiti} to 3
  47. show 10 crit particles at player offset by 0, 0, 0 at speed 1
  48.  
  49. loop entities in radius 10 around player:
  50. if {%loop-entity%.hanmaiti} is 1:
  51. damage loop-entity by 10 heart
  52. if {%loop-entity%.hanmaiti} is 2:
  53. damage loop-entity by 20 heart
  54. if {%loop-entity%.hanmaiti} is 3:
  55. damage loop-entity by 25 heart
  56. set {%player%.hsac} to 50
  57. loop 50 times:
  58. wait 1 second
  59. set {%player%.hsac} to {%player%.hsac} -1
  60. send "ハンマースキルのクールダウンが終わりました!" to player
  61. if {%player%.hsac} >= 1:
  62. send "&cクールダウン中です!(残り%{%player%.hsac}%秒)" to player
  63. on drop:
  64. if name of the item is "&6ハンマー":
  65. if {%player%.hsac} is 0:
  66. wait 38 tick
  67. loop blocks in radius 5 around player:
  68. loop-block is not air
  69. display 10 redstone particle at location of loop-block with color 224, 99, 0 offset by 0, 1.4, 0
  70. loop blocks in radius 3 around player:
  71. loop-block is not air
  72. display 10 redstone particle at location of loop-block with color 157, 69, 0 offset by 0, 1.4, 0
  73. loop blocks in radius 1 around player:
  74. loop-block is not air
  75. display 10 redstone particle at location of loop-block with color 88, 38, 0 offset by 0, 1.4, 0
  76. on damage:
  77. if attacker's tool is stone sword:
  78. set damage delay of victim to 0 tick
  79. on damage:
  80. attacker is a player
  81. if attacker's tool is stone sword:
  82. show 5 crit particles at victim offset by 0, 0, 0 at speed 1
  83. set {%victim%.skilldamage} to damage
  84. damage victim by 1.5 heart
  85. cancel event
  86. else:
  87. cancel event
  88.  
  89. on leftclick:
  90. if name of the item is "&6ハンマー":
  91. if {%player%.hnac} is not set:
  92. set {%player%.hnac} to 0
  93. if {%player%.hnac} is 0:
  94. play "BLOCK_ANVIL_PLACE" to player at volume 1
  95. set {%player%.hanskiloc} to location of the block 2 meter in front of player's head
  96. loop blocks in radius 5 around {%player%.hanskiloc}:
  97. loop-block is not air
  98. display 10 redstone particle at location of loop-block with color 224, 99, 0 offset by 0, 1.4, 0
  99. loop blocks in radius 2 around {%player%.hanskiloc}:
  100. loop-block is not air
  101. display 10 redstone particle at location of loop-block with color 88, 38, 0 offset by 0, 1.4, 0
  102. loop entities in radius 4 around {%player%.hanskiloc}:
  103. loop-entity is not player
  104. set {%loop-entity%.hanmatuuiti} to 1
  105. loop entities in radius 1 around {%player%.hanskiloc}:
  106. loop-entity is not player
  107. set {%loop-entity%.hanmatuuiti} to 2
  108. loop entities in radius 5 around player:
  109. loop-entity is not player
  110. if {%loop-entity%.hanmatuuiti} is 1:
  111. damage loop-entity by 5 heart
  112. if {%loop-entity%.hanmatuuiti} is 2:
  113. damage loop-entity by 7.5 heart
  114. set {%player%.hnac} to 2
  115. loop 2 times:
  116. wait 0.75 second
  117. set {%player%.hnac} to {%player%.hnac} -1
  118.  
  119. command /skillreset:
  120. trigger:
  121. set {%player%.hnac} to 0
  122. set {%player%.ssac} to 0
  123. set {%player%.hsac} to 0
  124. set {%player%.ksac} to 0
  125. set {%player%.knac} to 0
  126.  
  127. on rightclick:
  128. player is not sneaking
  129. if {%player%.sc} is not set:
  130. set {%player%.sc} to 0
  131. if player's tool is a record chirp:
  132. if {%player%.sc} is set:
  133. if name of the item is "&7双剣":
  134. set {_slot} to player's current hotbar slot
  135. loop all items in player's inventory:
  136. set slot {_slot} of player's inventory to stone sword named "&7双剣" with lore "&f多段攻撃が可能","&fQキーでスキル発動","&fスニーク+右クリックで切り替えることで","&f双剣を収納する"
  137. set slot 40 of player's inventory to stone sword named "&7双剣"
  138. stop loop
  139.  
  140. on rightclick:
  141. player is sneaking
  142. if player's tool is a stone sword:
  143. if {%player%.sc} is set:
  144. if name of the item is "&7双剣":
  145. set {_slot} to player's current hotbar slot
  146. loop all items in player's inventory:
  147. remove stone sword from player's inventory
  148. set slot {_slot} of player's inventory to record chirp named "&7双剣" with lore "&f右クリックで切り替えることで","&f双剣を両手に装備する。"
  149. set slot 40 of player's inventory to air
  150. stop loop
  151. set {%player%.sc} to 0
  152.  
  153. on player's held item change:
  154. if {%player%.skillholditem} is 1:
  155. if {%player%.sc} is set:
  156. set {_slot} to player's current hotbar slot
  157. loop all items in player's inventory:
  158. remove stone sword from player's inventory
  159. set slot {_slot} of player's inventory to record chirp named "&7双剣" with lore "&f右クリックで切り替えることで","&f双剣を両手に装備する。"
  160. set slot 40 of player's inventory to air
  161. stop loop
  162.  
  163. every 1 ticks:
  164. loop all players:
  165. if loop-player's tool is a stone sword:
  166. set {%loop-player%.skillholditem} to 1
  167. else:
  168. set {%loop-player%.skillholditem} to 0
  169.  
  170.  
  171.  
  172. on inventory click:
  173. item is a stone sword
  174. if name of the item is "&7双剣":
  175. set {_slot} to player's selected hotbar slot
  176. cancel event
  177. wait 1 tick
  178. loop all items in player's inventory:
  179. set slot {_slot} of player's inventory to record chirp named "&7双剣" with lore "&f右クリックで切り替えることで","&f双剣を両手に装備する。"
  180. set slot 40 of player's inventory to air
  181. stop loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement