CREAMPAN0408

Untitled

Feb 2nd, 2019
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.40 KB | None | 0 0
  1. on rightclick holding wood hoe:
  2. player's tool is enchanted with Unbreaking 100
  3. the block below the player is not air
  4. set {effect.phrea.%player%} to "HugeExplosion"
  5. if {T.%player%} is not alive:
  6. broadcast "<pink>ターゲットがいません"
  7. stop
  8. if level of player is more than 100:
  9. set {_cooldown} to difference between {Phrea.%player%.lastused} and now
  10. if {_cooldown} is less than 100 seconds:
  11. play "entity_ghast_shoot" to players at volume 10
  12. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  13. message "<pink>%difference between 30 seconds and {_cooldown}% <white>後に使用可能"
  14. wait 20 tick
  15. stop effect "Failed"
  16. stop
  17. play "item_elytra_flying" to players at volume 5
  18. set {casting.%player%} to true
  19. apply speed 5 to the player for 3 seconds
  20. apply night vision 1 to the player for 5 seconds
  21. execute console command "/effect %player% 25 3 0 0"
  22. create a circle effect at player with id "Fire1" with particles flame with radius 1
  23. wait 20 ticks
  24. create a circle effect at player with id "Fire2" with particles flame with radius 2
  25. wait 20 ticks
  26. create a circle effect at player with id "Fire3" with particles flame with radius 3
  27. wait 20 ticks
  28. if {casting.%player%} is false:
  29. stop effect "Fire"
  30. stop
  31. set {casting.%player%} to false
  32. reduce level progress of player by 100
  33. wait a tick
  34. set {Phrea.%player%.lastused} to now
  35. create fake explosion at the player
  36. shoot a small fire ball at speed 1 upwards
  37. ignite the shot projectile
  38. stop effect "Fire1"
  39. stop effect "Fire2"
  40. stop effect "Fire3"
  41. wait 20 ticks
  42. loop 300 times:
  43. if {T.%player%} is not alive:
  44. stop
  45. set {_t.%player%} to location of {T.%player%} to vector
  46. set {_p.%player%} to location of shot projectile to vector
  47. set {_v.%player%} to vector {_t.%player%} - {_p.%player%}
  48. set {_v.%player%} to vector {_v.%player%} normalized * 0.5
  49. set velocity of shot projectile to {_v.%player%}
  50. wait a tick
  51. else:
  52. play "entity_ghast_shoot" to player at volume 10
  53. create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
  54. message "<pink>このスキルには100Lv以上のXPが必要です!"
  55. wait 20 tick
  56. stop effect "Failed"
  57.  
  58. #被弾時のダメージ処理&ターゲッティング
  59. on damage:
  60. projectile is small fire ball
  61. attacker's tool is wood hoe
  62. if {effect.phrea.%attacker%} is "Target":
  63. damage victim by 1 hearts
  64. create safe explosion of force 1 at victim
  65. set {T.%attacker%} to victim
  66. wait a tick
  67. delete {effect.phrea.%attacker%}
  68. if {effect.phrea.%attacker%} is "HugeExplosion":
  69. damage victim by 20 hearts
  70. create safe explosion of force 7 at victim
  71. if {effect.phrea.%attacker%} is "SmallExplosion":
  72. damage victim by 2 hearts
  73. create safe explosion of force 1 at victim
  74. delete {effect.phrea.%attacker%}
  75. else:
  76. message "<pink>[ERROR!!] {effect.phrea.%attacker%} = %{effect.phrea.%attacker%}%"
  77.  
  78. on projectile hit:
  79. projectile is small fire ball
  80. if {effect.phrea.%shooter%} is "HugeExplosion":
  81. wait 20 tick
  82. loop all blocks in radius 3 around event-location:
  83. loop-block is air
  84. chance of 8%:
  85. create a safe explosion of force 5 at loop-block
  86. wait 10 tick
  87. chance of 3%:
  88. create a safe explosion of force 10 at loop-block
  89. wait 10 tick
  90. delete {effect.phrea.%shooter%}
  91. if {effect.phrea.%shooter%} is "Target":
  92. create safe explosion of force 1 at event-location
  93. delete {effect.phrea.%shooter%}
  94. if {effect.phrea.%shooter%} is "SmallExplosion":
  95. create safe explosion of force 2 at event-location
  96. delete {effect.phrea.%shooter%}
  97. else:
  98. message "<pink>[ERROR!!] {effect.phrea.%shooter%} = %{effect.phrea.%shooter%}%"
  99.  
  100. on damage:
  101. victim is player
  102. if {casting.%victim%} is true:
  103. set {casting.%victim%} to false
Add Comment
Please, Sign In to add comment