Advertisement
CREAMPAN0408

Untitled

Mar 23rd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.07 KB | None | 0 0
  1. #火竜の杖
  2. #左クリックで炎弾発射
  3. on leftclick holding wood hoe:
  4. player's tool is enchanted with BLAST PROTECTION 10
  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 hoe:
  29. player's tool is enchanted with BLAST PROTECTION 10
  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. on rightclick holding wood hoe:
  57. player's tool is enchanted with BLAST PROTECTION 10
  58. player is not sneaking
  59. the block below the player is not air
  60. if level of player is more than 5:
  61. set {_cooldown} to difference between {AOEFire.%player%.lastused} and now
  62. if {_cooldown} is less than 10 seconds:
  63. play "entity_ghast_shoot" to players at volume 10
  64. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  65. message "<pink>%difference between 10 seconds and {_cooldown}% <white>後に使用可能"
  66. wait 20 tick
  67. stop effect "Failed"
  68. stop
  69. set {casting.%player%} to true
  70. apply speed 5 to the player for 2.5 seconds
  71. apply night vision 1 to the player for 5 seconds
  72. execute console command "/effect %player% 25 3 0 0"
  73. play "entity_player_breath" to players at volume 10
  74. wait a tick
  75. set {AOEFire.%player%.lastused} to now
  76. create a circle effect at player with id "Fire1" with particles drip lava with radius 1
  77. wait 5 ticks
  78. create a circle effect at player with id "Fire2" with particles drip lava with radius 4
  79. wait 5 ticks
  80. create a circle effect at player with id "Fire3" with particles drip lava with radius 7
  81. wait 5 ticks
  82. create a circle effect at player with id "Fire4" with particles drip lava with radius 2
  83. wait 5 ticks
  84. create a circle effect at player with id "Fire5" with particles drip lava with radius 5
  85. wait 5 ticks
  86. create a circle effect at player with id "Fire6" with particles drip lava with radius 8
  87. wait 40 ticks
  88. if {casting.%player%} is false:
  89. apply speed -1 to the player for 2.5 seconds
  90. stop effect "Fire1"
  91. stop effect "Fire2"
  92. stop effect "Fire3"
  93. stop effect "Fire4"
  94. stop effect "Fire5"
  95. stop effect "Fire6"
  96. stop
  97. set {casting.%player%} to false
  98. message "<light aqua>・・%player%は焦熱の呪文を放った!" to player
  99. apply speed -1 to the player for 2.5 seconds
  100. reduce level progress of player by 5
  101. apply fire resistance 5 to the player for 15 seconds
  102. loop all entities in radius 20 around player:
  103. make a fake explosion at loop-entity
  104. damage loop-entity by 4 hearts
  105. ignite loop-entity for 10 seconds
  106. extinguish the player
  107. stop effect "Fire1"
  108. stop effect "Fire2"
  109. stop effect "Fire3"
  110. stop effect "Fire4"
  111. stop effect "Fire5"
  112. stop effect "Fire6"
  113. else:
  114. play "entity_ghast_shoot" to player at volume 10
  115. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  116. message "<pink>焦熱スキルには5Lv以上のXPが必要です!"
  117. wait 20 tick
  118. stop effect "Failed"
  119.  
  120.  
  121. #被弾時のダメージ処理&ターゲッティング
  122. on damage:
  123. projectile is small fire ball
  124. attacker's tool is wood hoe
  125. if {effect.phrea.%attacker%} is "HugeExplosion":
  126. damage victim by 20 hearts
  127. create safe explosion of force 7 at victim
  128. if {effect.phrea.%attacker%} is "SmallExplosion":
  129. damage victim by 2 hearts
  130. create safe explosion of force 1 at victim
  131. delete {effect.phrea.%attacker%}
  132. else:
  133. message "<pink>[ERROR!!] {effect.phrea.%attacker%} = %{effect.phrea.%attacker%}%"
  134.  
  135. #ファイアーボール着弾時の爆破エフェクト
  136. on projectile hit:
  137. projectile is small fire ball
  138. if {effect.phrea.%shooter%} is "HugeExplosion":
  139. wait 20 tick
  140. loop all blocks in radius 3 around event-location:
  141. loop-block is air
  142. chance of 8%:
  143. create a safe explosion of force 5 at loop-block
  144. wait 10 tick
  145. chance of 3%:
  146. create a safe explosion of force 10 at loop-block
  147. wait 10 tick
  148. delete {effect.phrea.%shooter%}
  149. if {effect.phrea.%shooter%} is "Target":
  150. create safe explosion of force 1 at event-location
  151. delete {effect.phrea.%shooter%}
  152. if {effect.phrea.%shooter%} is "SmallExplosion":
  153. create safe explosion of force 2 at event-location
  154. delete {effect.phrea.%shooter%}
  155. else:
  156. message "<pink>[ERROR!!] {effect.phrea.%shooter%} = %{effect.phrea.%shooter%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement