Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /spawnboss:
- trigger:
- spawn 1 phantom at {_t}
- loop all entities in radius 0.1 around {_t}:
- if loop-entity is a phantom:
- set max health of loop-entity to 1000
- set health of loop-entity to 1000
- equip loop-entity with all diamond armor of protection 20 and unbreaking 32767
- set name of loop-entity to "&6&lNight Phantom"
- every 5 ticks:
- loop all entities:
- if name of loop-entity contains "&6&lNight Phantom":
- set name of loop-entity to "&6&lNight Phantom &7[%health of loop-entity%/1,000"
- if name of loop-entity contains "&6&lNight Minion":
- set name of loop-entity to "&6&lNight Minion &7[%health of loop-entity%/210"
- on damage:
- if name of victim contains "&6&lNight Phantom":
- if victim's health is below 999:
- chance of 5%:
- loop all players in radius 5 around victim:
- push loop-player upwards at speed 6
- push loop-player backwards at speed 8
- create a fake explosion at loop-player
- on damage:
- if name of victim contains "&6&lNight Phantom":
- if victim's health is below 999:
- chance of 7%:
- remove weakness from attacker
- apply weakness of tier 1 to attacker for 10 seconds
- on damage:
- if name of victim contains "&6&lNight Phantom":
- if victim's health is below 999:
- chance of 7%:
- remove poison from attacker
- apply poison of tier 2 to attacker for 10 seconds
- on damage:
- if name of victim contains "&6&lNight Phantom":
- if victim's health is below 999:
- chance of 7%:
- remove blindness from attacker
- apply blindness of tier 1 to attacker for 10 seconds
- on damage:
- if name of victim contains "&6&lNight Phantom":
- if victim's health is below 999:
- chance of 7%:
- remove slowness from attacker
- apply slowness of tier 1 to attacker for 10 seconds
- on damage:
- if name of victim contains "&6&lNight Phantom":
- if victim's health is below 749:
- chance of 4%:
- loop 5 times:
- wait 1 second
- shoot a fireball from victim
- on damage:
- if name of victim contains "&6&lNight Phantom":
- if victim's health is below 599:
- chance of 4%:
- loop 3 times:
- spawn a wither skull at location in front of victim's eyes
- on damage:
- if name of victim contains "&6&lNight Phantom":
- if victim's health is below 199:
- chance of 2%
- spawn 3 skeletons at victim
- loop all entities in radius 1 around victim:
- if loop-entity is a skeleton:
- set name of loop-entity to "&6&lNight Minions"
- set max health of loop-entity to 210
- set health of loop-entity to 210
- set loop-entity's held item to air
- equip loop-entity with all chainmail armor of protection 5 and unbreaking 32767
- on damage:
- if name of victim contains "&6&lNight Phantom":
- if victim's health is below 99:
- chance of 4:
- loop all players in radius 5 around victim:
- strike lightning effect at the loop-player
- damage loop-player by 4
- on damage:
- if name of victim contains "&6&lNight Phantom":
- if victim's health is below 49:
- chance of 5%:
- heal victim by 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement