Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- czas: 1
- hp: 500
- atak: 5
- imie: Grazyna
- eq: tak
- helm: diamond
- klata: diamond
- gacie: diamond
- buty: diamond
- bron: diamond
- every {@czas} hours:
- broadcast "&f[&cBOSS&f]&a BOSS zostal zespawnowany!"
- set {_loc.x} to random integer between -61 and -62
- set {_loc.z} to random integer between -35 and -36
- set {_loc.y} to 69
- set {_loc} to location at {_loc.x}, {_loc.y}, {_loc.z} in the world "world"
- spawn a zombie at {_loc}
- apply speed 1 to the last spawned entity for 10 seconds
- apply resistance 99 to the last spawned entity for 5 seconds
- set the last spawned entity's max health to {@hp}
- heal last spawned entity
- set the spawned zombie's display name to "&a{@imie} &6%spawned zombie's health%/%max health of last spawned entity%"
- if "{@eq}" is "tak":
- set helmet of the spawned zombie to a {@helm} helmet of protection 1
- set chestplate of the spawned zombie to a {@klata} chestplate of protection 1
- set leggings of the spawned zombie to a {@gacie} leggings of protection 1
- set boots of the spawned zombie to a {@buty} boots of protection 1
- set tool of the spawned zombie to a {@bron} sword of sharpness 1
- on damage of creature:
- if name of victim contains "{@imie}":
- set name of victim to "&a{@imie} &6%health of victim%/%max health of victim%"
- if damage was caused by fire:
- cancel event
- if damage was caused by fall:
- cancel event
- if damage was caused by potion:
- cancel event
- on damage:
- if attacker is a zombie:
- name of attacker is "{@imie}":
- set damage to {@atak}
- on death of player:
- if attacker is zombie:
- name of attacker is "{@imie}":
- broadcast "&f[&cBOSS&f]&7 Zombie {@imie} zabił gracza &a%player%"
- on death of creature:
- if victim is zombie:
- name of victim contains "&a{@imie}":
- broadcast "&f[&cBOSS&f] &aBOSS &c{@imie}&a zostal zabity przez Gracza&c %attacker%"
- chance of 20%:
- add a diamond sword of sharpness 4 named "&6&lMiecz Grazyny" to inventory of attacker
- stop
- chance of 30%:
- add a paper named "&6&lBilet do&5&l Netheru" to inventory of attacker
- stop
- chance of 20%:
- add a diamond helmet of protection 5 named "&6&lHelm Grazyny" to inventory of attacker
- stop
- chance of 20%:
- add a diamond chestplate of protection 5 named "&6&lKlata Grazyny" to inventory of attacker
- stop
- chance of 20%:
- add a diamond leggings of protection 5 named "&6&lGacie Grazyny" to inventory of attacker
- stop
- chance of 20%:
- add a diamond boots of protection 5 named "&6&lButy Grazyny" to inventory of attacker
- stop
- chance of 20%:
- add a bow of power 5 named "&6&lLuk Grazyny" to inventory of attacker
- command /boss:
- trigger:
- broadcast "&f[&cBOSS&f]&a BOSS zostal zespawnowany!"
- set {_loc.x} to random integer between -61 and -62
- set {_loc.z} to random integer between -35 and -36
- set {_loc.y} to 69
- set {_loc} to location at {_loc.x}, {_loc.y}, {_loc.z} in the world "world"
- spawn a zombie at {_loc}
- apply speed 1 to the last spawned entity for 10 seconds
- apply resistance 99 to the last spawned entity for 5 seconds
- set the last spawned entity's max health to {@hp}
- heal last spawned entity
- set the spawned zombie's display name to "&a{@imie} &6%spawned zombie's health%/%max health of last spawned entity%"
- if "{@eq}" is "tak":
- set helmet of the spawned zombie to a {@helm} helmet of protection 1
- set chestplate of the spawned zombie to a {@klata} chestplate of protection 1
- set leggings of the spawned zombie to a {@gacie} leggings of protection 1
- set boots of the spawned zombie to a {@buty} boots of protection 1
- set tool of the spawned zombie to a {@bron} sword of sharpness 1
- on damage of creature:
- if victim is zombie:
- name of victim contains "{@imie}":
- if {@hp} is 200 or 201 or 202 or 203 or 204:
- send "O nie! Moja"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement