Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on leftclick holding wood hoe:
- player's tool is enchanted with unbreaking 1
- if level of player is more than 0:
- set {_cooldown} to difference between {Fire.%player%.lastused} and now
- if {_cooldown} is less than 1 seconds:
- play "entity_ghast_shoot" to players at volume 10
- create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
- message "<pink>%difference between 1 seconds and {_cooldown}% <white>後に使用可能"
- wait 20 tick
- stop effect "Failed"
- stop
- set {effect.phrea.%player%} to "SmallExplosion"
- play "entity_ghast_shoot" to players at volume 5
- reduce level progress of player by 1
- shoot a small fire ball at speed 3
- ignite the shot projectiles
- set {Fire.%player%.lastused} to now
- else:
- play "entity_ghast_shoot" to player at volume 10
- create a circle effect at player with id "Failed" with particles SMOKE NORMAL with radius 1
- message "<pink>このスキルには1Lv以上のXPが必要です!"
- wait 20 tick
- stop effect "Failed"
- on damage:
- projectile is small fire ball
- attacker's tool is wood hoe
- if {effect.phrea.%attacker%} is "Target":
- damage victim by 1 hearts
- create safe explosion of force 1 at victim
- set {T.%attacker%} to victim
- message "<light aqua>%victim% をターゲットした!" to attacker
- message "<red>[WARNING!!]<yellow>%attacker%から上級魔法の対象にされた!" to victim
- wait a tick
- delete {effect.phrea.%attacker%}
- if {effect.phrea.%attacker%} is "HugeExplosion":
- damage victim by 20 hearts
- create safe explosion of force 7 at victim
- if {effect.phrea.%attacker%} is "SmallExplosion":
- damage victim by 2 hearts
- create safe explosion of force 1 at victim
- delete {effect.phrea.%attacker%}
- else:
- message "<pink>[ERROR!!] {effect.phrea.%attacker%} = %{effect.phrea.%attacker%}%"
- on projectile hit:
- projectile is small fire ball
- if {effect.phrea.%shooter%} is "HugeExplosion":
- wait 20 tick
- loop all blocks in radius 3 around event-location:
- loop-block is air
- chance of 8%:
- create a safe explosion of force 5 at loop-block
- wait 10 tick
- chance of 3%:
- create a safe explosion of force 10 at loop-block
- wait 10 tick
- delete {effect.phrea.%shooter%}
- if {effect.phrea.%shooter%} is "Target":
- create safe explosion of force 1 at event-location
- delete {effect.phrea.%shooter%}
- if {effect.phrea.%shooter%} is "SmallExplosion":
- create safe explosion of force 2 at event-location
- delete {effect.phrea.%shooter%}
- else:
- message "<pink>[ERROR!!] {effect.phrea.%shooter%} = %{effect.phrea.%shooter%}%"
Advertisement
Add Comment
Please, Sign In to add comment