Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on spawn:
- if event-entity is zombie:
- event-entity's name is "aaa"
- if {boss::spawn} is not set:
- set {boss::spawn} to "on"
- if {boss::countdown} is not set:
- set {boss::countdown} to 300
- while {boss::countdown} is more than 0:
- wait 1 second
- remove 1 from {boss::countdown}
- loop all Players in radius 30 around the event-entity:
- wipe loop-entity's sidebar
- set name of sidebar of loop-entity to "&7VS BOSS"
- set score "&b残り &e%{boss::countdown}% &b秒" in sidebar of loop-entity to 0
- set {_boss.count1} to random integer between 1 and 3
- if {_boss.count1} is 1:
- set {_boss.count2} to random integer between 1 and 4
- if {_boss.count2} is 1:
- set {_boss.shot} to 0.5
- set {_Particle} to location of the block {_boss.shot} meter in front of event-entity's head
- loop 30 times:
- show 20 crit particles at {_Particle} offset by 0, 0, 0
- set {_boss.shot} to {_boss.shot} + 0.5
- set {_Particle} to location of the block {_boss.shot} meter infront of event-entity's head
- shoot an arrow from event-entity at speed 500
- wait 1 second
- else:
- loop 15 times:
- shoot an snowball from event-entity at speed 3
- delete event-entity
- loop all Players in radius 30 around the event-entity:
- wipe loop-entity's sidebar
- send "&8[&7BOSS&8] &7時間切れです。また次回挑戦してください" to loop-entity
- delete {boss::*}
- else:
- stop
- on death:
- victim's name is "aaa"
- if {boss::spawn} is not set:
- stop
- else:
- delete {boss::*}
- drop {boss.drop::*} at victim
- command /boss [<text>]:
- permission: admin.sk
- trigger:
- if arg-1 is "reset":
- delete {boss::*}
- execute console command "kill @e[type=zombie]"
- send "&8[&7BOSS&8] &7BOSSをResetさせました"
- if arg-1 is "drop":
- set {boss.drop::*} to Player's tool
- send "&8[&7BOSS&8] &7ドロップ品を設定しました"
- on Damage:
- attacker's name is "aaa"
- projectile is arrow
- if {boss::spawn} is not set:
- stop
- else:
- set Damage to Damage*100
- on Damage:
- attacker's name is "aaa"
- projectile is snowball
- if {boss::spawn} is not set:
- stop
- else:
- set Damage to 4
- on shoot:
- loop entities in radius 1 of projectile:
- loop-entity is a snowball
- add 1 to {_random}
- if {_random} is 1:
- push loop-entity to the right at speed random number from 0.05 to 0.11
- push loop-entity upwards at speed random number from 0.04 to 0.10
- if {_random} is 2:
- push loop-entity to the left at speed random number from 0.04 to 0.10
- push loop-entity upwards at speed random number from 0.05 to 0.11
- if {_random} is 3:
- push loop-entity forwards at speed random number from 0.05 to 0.10
- push loop-entity upwards at speed random number from 0.05 to 0.10
- if {_random} is 4:
- push loop-entity backwards at speed random number from 0.04 to 0.10
- push loop-entity to the left at speed random number from 0.05 to 0.11
- push loop-entity upwards at speed random number from 0.04 to 0.11
- if {_random} is 5:
- push loop-entity backwards at speed random number from 0.05 to 0.11
- push loop-entity to the right at speed random number from 0.04 to 0.10
- push loop-entity upwards at speed random number from 0.04 to 0.11
- if {_random} is 6:
- push loop-entity forwards at speed random number from 0.05 to 0.10
- push loop-entity to the left at speed random number from 0.05 to 0.10
- push loop-entity upwards at speed random number from 0.05 to 0.10
- if {_random} is 7:
- push loop-entity forwards at speed random number from 0.05 to 0.10
- push loop-entity to the right at speed random number from 0.05 to 0.10
- push loop-entity upwards at speed random number from 0.05 to 0.10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement