CREAMPAN0408

Untitled

Jan 15th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. on leftclick holding wood hoe:
  2. player's tool is enchanted with unbreaking 1
  3. if level of player is more than 0:
  4. set {_cooldown} to difference between {Fire.%player%.lastused} and now
  5. if {_cooldown} is less than 1 seconds:
  6. play "entity_ghast_shoot" to players at volume 10
  7. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  8. message "<pink>%difference between 1 seconds and {_cooldown}% <white>後に使用可能"
  9. wait 20 tick
  10. stop effect "Failed"
  11. stop
  12. set {effect.phrea.%player%} to "SmallExplosion"
  13. play "entity_ghast_shoot" to players at volume 5
  14. reduce level progress of player by 1
  15. shoot a small fire ball at speed 3
  16. ignite the shot projectiles
  17. set {Fire.%player%.lastused} to now
  18. else:
  19. play "entity_ghast_shoot" to player at volume 10
  20. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  21. message "<pink>このスキルには1Lv以上のXPが必要です!"
  22. wait 20 tick
  23. stop effect "Failed"
  24.  
  25. on damage:
  26. projectile is small fire ball
  27. attacker's tool is wood hoe
  28. if {effect.phrea.%attacker%} is "Target":
  29. damage victim by 1 hearts
  30. create safe explosion of force 1 at victim
  31. set {T.%attacker%} to victim
  32. message "<light aqua>%victim% をターゲットした!" to attacker
  33. message "<red>[WARNING!!]<yellow>%attacker%から上級魔法の対象にされた!" to victim
  34. wait a tick
  35. delete {effect.phrea.%attacker%}
  36. if {effect.phrea.%attacker%} is "HugeExplosion":
  37. damage victim by 20 hearts
  38. create safe explosion of force 7 at victim
  39. if {effect.phrea.%attacker%} is "SmallExplosion":
  40. damage victim by 2 hearts
  41. create safe explosion of force 1 at victim
  42. delete {effect.phrea.%attacker%}
  43. else:
  44. message "<pink>[ERROR!!] {effect.phrea.%attacker%} = %{effect.phrea.%attacker%}%"
  45.  
  46. on projectile hit:
  47. projectile is small fire ball
  48. if {effect.phrea.%shooter%} is "HugeExplosion":
  49. wait 20 tick
  50. loop all blocks in radius 3 around event-location:
  51. loop-block is air
  52. chance of 8%:
  53. create a safe explosion of force 5 at loop-block
  54. wait 10 tick
  55. chance of 3%:
  56. create a safe explosion of force 10 at loop-block
  57. wait 10 tick
  58. delete {effect.phrea.%shooter%}
  59. if {effect.phrea.%shooter%} is "Target":
  60. create safe explosion of force 1 at event-location
  61. delete {effect.phrea.%shooter%}
  62. if {effect.phrea.%shooter%} is "SmallExplosion":
  63. create safe explosion of force 2 at event-location
  64. delete {effect.phrea.%shooter%}
  65. else:
  66. message "<pink>[ERROR!!] {effect.phrea.%shooter%} = %{effect.phrea.%shooter%}%"
Advertisement
Add Comment
Please, Sign In to add comment