Advertisement
kaiyade

Untitled

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