Advertisement
kaiyade

Untitled

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