command /gboss []: if player has 64 redstone: if player has 64 emerald block: if player has 8 ender pearl: if player has 64 bookshelf: if player has 16 slimeball: create a citizen named "&5BOSS" at player set {boss} to last created citizen set rf max hp of citizen {boss} to 1000 make citizen {boss} hold diamond sword equip citizen {boss} with all diamond armour every tick: set {_yb} to y coordinate of citizen {boss} loop players in radius 1 around citizen {boss}: push loop-player upwards at speed 0.5 push loop-player backwards at speed 0.5 create a fake explosion 1 above citizen {boss} damage loop-player by 1 hearts chance of 50%: chance of 50%: ignite the loop-player for 3 second else: ignite the loop-player for 5 second chance of 10%: strike lightning effect at the loop-player chance of 10%: apply nausea to the loop-player for 10 second chance of 5%: apply blindness to the loop-player for 5 second loop players in radius 1 around citizen {boss}: set {_yp} to y coordinate of loop-player if {_yp}-{_yb} is more than 5: stop else: if block under loop-player is air: if block 2 under loop-player is air: stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop wait 1 tick loop players in radius 2 around citizen {boss}: set {_yp} to y coordinate of loop-player if {_yp}-{_yb} is more than 5: stop else: if block under loop-player is air: if block 2 under loop-player is air: stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop wait 1 tick loop players in radius 3 around citizen {boss}: set {_yp} to y coordinate of loop-player if {_yp}-{_yb} is more than 5: stop else: if block under loop-player is air: if block 2 under loop-player is air: stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop wait 1 tick loop players in radius 4 around citizen {boss}: set {_yp} to y coordinate of loop-player if {_yp}-{_yb} is more than 5: stop else: if block under loop-player is air: if block 2 under loop-player is air: stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop wait 1 tick loop players in radius 5 around citizen {boss}: set {_yp} to y coordinate of loop-player if {_yp}-{_yb} is more than 5: stop else: if block under loop-player is air: if block 2 under loop-player is air: stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop wait 1 tick loop players in radius 25 around citizen {boss}: set {_yp} to y coordinate of loop-player if {_yp}-{_yb} is more than 5: stop else: if block under loop-player is air: if block 2 under loop-player is air: stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop else: make citizen {boss} attack loop-player move citizen {boss} to location of loop-player at speed 2 stop on damage of player: victim is "&4BOSS": attacker is player: damage was caused by projectile: projectile is arrow: cancel event on death a {boss}: drop 351:1 named "&cSerce bossa"