CREAMPAN0408

Untitled

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