CREAMPAN0408

Untitled

Jan 3rd, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.40 KB | None | 0 0
  1. #火竜の杖
  2. #左クリックで炎弾発射
  3. on leftclick holding wood sword:
  4. player's tool is enchanted with knockback 1
  5. if level of player is more than 0:
  6. set {_cooldown} to difference between {Fire.%player%.lastused} and now
  7. if {_cooldown} is less than 1 seconds:
  8. play "entity_ghast_shoot" to players at volume 10
  9. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  10. message "<pink>%difference between 1 seconds and {_cooldown}% <white>後に使用可能"
  11. wait 20 tick
  12. stop effect "Failed"
  13. stop
  14. set {effect.phrea.%player%} to "SmallExplosion"
  15. play "entity_ghast_shoot" to players at volume 5
  16. reduce level progress of player by 1
  17. shoot a small fire ball at speed 3
  18. ignite the shot projectiles
  19. set {Fire.%player%.lastused} to now
  20. else:
  21. play "entity_ghast_shoot" to player at volume 10
  22. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  23. message "<pink>ファイアスキルには1Lv以上のXPが必要です!"
  24. wait 20 tick
  25. stop effect "Failed"
  26.  
  27. #スニーク左クリックでターゲッティング弾発射
  28. on leftclick holding wood sword:
  29. player's tool is enchanted with knockback 1
  30. player is sneaking
  31. if level of player is more than 4:
  32. set {_cooldown} to difference between {Target.%player%.lastused} and now
  33. if {_cooldown} is less than 3 seconds:
  34. play "entity_ghast_shoot" to players at volume 10
  35. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  36. message "<pink>%difference between 3 seconds and {_cooldown}% <white>後に使用可能"
  37. wait 20 tick
  38. stop effect "Failed"
  39. stop
  40. set {effect.phrea.%player%} to "Target"
  41. delete {_v.%player%}
  42. wait a tick
  43. play "entity_ghast_shoot" to players at volume 10
  44. reduce level progress of player by 5
  45. shoot a small fire ball at speed 2
  46. ignite the shot projectiles
  47. set {Target.%player%.lastused} to now
  48. else:
  49. play "entity_ghast_shoot" to player at volume 10
  50. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  51. message "<pink>ターゲッティングスキルには5Lv以上のXPが必要です!"
  52. wait 20 tick
  53. stop effect "Failed"
  54.  
  55.  
  56. #地上でスニーク中に右クリックでターゲットに誘導弾発射
  57. on rightclick holding wood sword:
  58. player's tool is enchanted with knockback 1
  59. player is sneaking
  60. the block below the player is not air
  61. set {effect.phrea.%player%} to "HugeExplosion"
  62. if {T.%player%} is not alive:
  63. broadcast "<pink>ターゲットがいません"
  64. stop
  65. if level of player is more than 19:
  66. set {_cooldown} to difference between {Phrea.%player%.lastused} and now
  67. if {_cooldown} is less than 30 seconds:
  68. play "entity_ghast_shoot" to players at volume 10
  69. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  70. message "<pink>%difference between 30 seconds and {_cooldown}% <white>後に使用可能"
  71. wait 20 tick
  72. stop effect "Failed"
  73. stop
  74. message "<light aqua>・・・%player%は爆轟の上級呪文を唱えている!" to {T.%player%}
  75. play "item_elytra_flying" to players at volume 5
  76. set {casting.%player%} to true
  77. apply speed 5 to the player for 3 seconds
  78. apply night vision 1 to the player for 5 seconds
  79. execute console command "/effect %player% 25 3 0 0"
  80. create a circle effect at player with id "Fire1" with particles flame with radius 1
  81. wait 20 ticks
  82. create a circle effect at player with id "Fire2" with particles flame with radius 2
  83. wait 20 ticks
  84. create a circle effect at player with id "Fire3" with particles flame with radius 3
  85. wait 20 ticks
  86. if {casting.%player%} is false:
  87. stop effect "Fire"
  88. stop
  89. set {casting.%player%} to false
  90. broadcast "<light aqua>・・・%player%は%{T.%player%}%に爆轟の上級呪文を放った!"
  91. reduce level progress of player by 20
  92. wait a tick
  93. set {Phrea.%player%.lastused} to now
  94. create fake explosion at the player
  95. shoot a small fire ball at speed 1 upwards
  96. ignite the shot projectile
  97. stop effect "Fire1"
  98. stop effect "Fire2"
  99. stop effect "Fire3"
  100. wait 20 ticks
  101. loop 300 times: #ここのループで誘導を実現しています。超苦労しました
  102. if {T.%player%} is not alive:
  103. stop
  104. set {_t.%player%} to location of {T.%player%} to vector
  105. set {_p.%player%} to location of shot projectile to vector
  106. set {_v.%player%} to vector {_t.%player%} - {_p.%player%}
  107. set {_v.%player%} to vector {_v.%player%} normalized * 0.5
  108. set velocity of shot projectile to {_v.%player%}
  109. wait a tick
  110. else:
  111. play "entity_ghast_shoot" to player at volume 10
  112. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  113. message "<pink>フレアスキルには19Lv以上のXPが必要です!"
  114. wait 20 tick
  115. stop effect "Failed"
  116.  
  117. #地上で右クリックで周辺を炎上
  118. on rightclick holding wood sword:
  119. player's tool is enchanted with knockback 1
  120. player is not sneaking
  121. the block below the player is not air
  122. if level of player is more than 5:
  123. set {_cooldown} to difference between {AOEFire.%player%.lastused} and now
  124. if {_cooldown} is less than 10 seconds:
  125. play "entity_ghast_shoot" to players at volume 10
  126. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  127. message "<pink>%difference between 10 seconds and {_cooldown}% <white>後に使用可能"
  128. wait 20 tick
  129. stop effect "Failed"
  130. stop
  131. set {casting.%player%} to true
  132. apply speed 5 to the player for 2.5 seconds
  133. apply night vision 1 to the player for 5 seconds
  134. execute console command "/effect %player% 25 3 0 0"
  135. play "entity_player_breath" to players at volume 10
  136. wait a tick
  137. set {AOEFire.%player%.lastused} to now
  138. create a circle effect at player with id "Fire1" with particles drip lava with radius 1
  139. wait 5 ticks
  140. create a circle effect at player with id "Fire2" with particles drip lava with radius 4
  141. wait 5 ticks
  142. create a circle effect at player with id "Fire3" with particles drip lava with radius 7
  143. wait 5 ticks
  144. create a circle effect at player with id "Fire4" with particles drip lava with radius 2
  145. wait 5 ticks
  146. create a circle effect at player with id "Fire5" with particles drip lava with radius 5
  147. wait 5 ticks
  148. create a circle effect at player with id "Fire6" with particles drip lava with radius 8
  149. wait 40 ticks
  150. if {casting.%player%} is false:
  151. apply speed -1 to the player for 2.5 seconds
  152. stop effect "Fire1"
  153. stop effect "Fire2"
  154. stop effect "Fire3"
  155. stop effect "Fire4"
  156. stop effect "Fire5"
  157. stop effect "Fire6"
  158. stop
  159. set {casting.%player%} to false
  160. message "<light aqua>・・%player%は焦熱の呪文を放った!" to player
  161. apply speed -1 to the player for 2.5 seconds
  162. reduce level progress of player by 5
  163. apply fire resistance 5 to the player for 15 seconds
  164. loop all entities in radius 20 around player:
  165. make a fake explosion at loop-entity
  166. damage loop-entity by 4 hearts
  167. ignite loop-entity for 10 seconds
  168. extinguish the player
  169. stop effect "Fire1"
  170. stop effect "Fire2"
  171. stop effect "Fire3"
  172. stop effect "Fire4"
  173. stop effect "Fire5"
  174. stop effect "Fire6"
  175. else:
  176. play "entity_ghast_shoot" to player at volume 10
  177. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  178. message "<pink>焦熱スキルには5Lv以上のXPが必要です!"
  179. wait 20 tick
  180. stop effect "Failed"
  181.  
  182.  
  183. #被弾時のダメージ処理&ターゲッティング
  184. on damage:
  185. projectile is small fire ball
  186. attacker's tool is wood sword
  187. if {effect.phrea.%attacker%} is "Target":
  188. damage victim by 1 hearts
  189. create safe explosion of force 1 at victim
  190. set {T.%attacker%} to victim
  191. message "<light aqua>%victim% をターゲットした!" to attacker
  192. message "<red>[WARNING!!]<yellow>%attacker%から上級魔法の対象にされた!" to victim
  193. wait a tick
  194. delete {effect.phrea.%attacker%}
  195. if {effect.phrea.%attacker%} is "HugeExplosion":
  196. damage victim by 20 hearts
  197. create safe explosion of force 7 at victim
  198. if {effect.phrea.%attacker%} is "SmallExplosion":
  199. damage victim by 2 hearts
  200. create safe explosion of force 1 at victim
  201. delete {effect.phrea.%attacker%}
  202. else:
  203. message "<pink>[ERROR!!] {effect.phrea.%attacker%} = %{effect.phrea.%attacker%}%"
  204.  
  205. #ファイアーボール着弾時の爆破エフェクト
  206. on projectile hit:
  207. projectile is small fire ball
  208. if {effect.phrea.%shooter%} is "HugeExplosion":
  209. wait 20 tick
  210. loop all blocks in radius 3 around event-location:
  211. loop-block is air
  212. chance of 8%:
  213. create a safe explosion of force 5 at loop-block
  214. wait 10 tick
  215. chance of 3%:
  216. create a safe explosion of force 10 at loop-block
  217. wait 10 tick
  218. delete {effect.phrea.%shooter%}
  219. if {effect.phrea.%shooter%} is "Target":
  220. create safe explosion of force 1 at event-location
  221. delete {effect.phrea.%shooter%}
  222. if {effect.phrea.%shooter%} is "SmallExplosion":
  223. create safe explosion of force 2 at event-location
  224. delete {effect.phrea.%shooter%}
  225. else:
  226. message "<pink>[ERROR!!] {effect.phrea.%shooter%} = %{effect.phrea.%shooter%}%"
  227.  
  228. #詠唱中のキャンセル処理
  229. on damage:
  230. victim is player
  231. if {casting.%victim%} is true:
  232. set {casting.%victim%} to false
  233. broadcast "<yellow>%attacker%は%victim%の詠唱を妨害した!"
Add Comment
Please, Sign In to add comment