Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /givequestitem:
- trigger:
- player has permission "questitem.get":
- give 1 bone named "&8&oSummon &f&lSkelety" with lore "", and "&7&oUse to summon &f&l&oSkelety" to player
- on rightclick with bone:
- name of player's tool contains "&8&oSummon &f&lSkelety":
- if "%region at player%" contains "graveyard":
- remove 1 of event-item from player's inventory
- set {_loc} to location of player
- set {_loc2} to {_loc}
- add 20 to y-coordinate of {_loc2}
- loop 60 times:
- show 10 flame with offset of 2, 2, 2 and speed 0.1 at {_loc}
- show 20 cloud with offset of 0, 4, 0 and speed 0 at block above {_loc}
- remove 0.33 from y-coordinate of {_loc2}
- show 20 explosion with speed 0.5 at {_loc2}
- wait 1 tick
- loop 3 times:
- show 100 explosion with offset of 4, 4, 4 and speed 0.5 at {_loc2}
- loop all players in radius 15 around {_loc}:
- push loop-player upwards with force 0.5
- push loop-player (direction from {_loc} to player) with force 3
- spawn skeleton at {_loc}
- set {_x} to last spawned skeleton
- set display name of {_x} to "&f&lSkelety"
- set maximum health of {_x} to 50
- heal {_x}
- set helmet of {_x} to gold helmet
- enchant helmet of {_x} with unbreaking 3 and protection 3
- enchant tool of {_x} with power 2 and punch 2
- while {_x} is alive:
- wait 1 second
- set {_rdm} to a random integer between 0 and 100
- if {_rdm} is between 0 and 10:
- loop all players in radius 10 around {_x}:
- add location of loop-player to {_spiderwebs::*}
- loop {_spiderwebs::*}:
- set block at location of loop-value to cobweb
- wait 3 second
- loop {_spiderwebs::*}:
- set block at location of loop-value to air
- delete {_spiderwebs::*}
- if {_rdm} is between 11 and 30:
- loop all players in radius 7.5 around {_x}:
- push loop-player upwards with force 0.2
- push loop-player (direction from {_x} to player) with force 1
- else:
- send "&eBoss &8| &7You need to be on a graveyard for this!"
- on damage:
- victim is a skeleton:
- name of victim is "&f&lSkelety":
- attacker is a player:
- wait 1 tick
- set {bossentity::%victim%} to victim
- add damage to {bossentity::%victim%::%attacker's uuid%}
- send action bar "&f&lSkelety &8| &f%health of victim%&7/&f%max health of victim%" to attacker
- on death:
- victim is a skeleton:
- name of victim is "&f&lSkelety":
- cancel drops
- drop blaze rod named "&e&l&oGolden Bone" at event-location
- if {bossentity::%victim%} is set:
- send "%nl%&f&lSkelety &7&ohas been defeated!%nl%" to all players
- set {_bestdmg::*} to sorted {bossentity::%victim%::*}
- loop {_bestdmg::*}:
- set {_current} to loop-index parsed as integer - 1
- set {_listentry} to size of {_bestdmg::*} - {_current}
- add "%{_bestdmg::%{_listentry}%}%" to {_bestdmginv::*}
- loop {_bestdmginv::*}:
- loop {bossentity::%victim%::*}:
- if "%loop-value-2%" contains "%loop-value-1%":
- send "&f%loop-index-1%. &7%loop-index-2 parsed as offlineplayer% &8| &c%loop-value-1%" to all players
- delete {bossentity::%victim%::*}
- delete {bossentity::%victim%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement