Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Use armor stands to create skills (i.e. comet)
- # Zombie boss: hordes of zombies, etc
- # Skeleton boss: archer, summon skeletons, shoot arrow with high damage
- # Blaze boss: comet/fireball, summon blazes,
- # Stray (shaman): holds stick, summon angry wolves,
- options:
- logo: &4&lBoss&8:&7
- permission: "boss.*"
- function getNewLocation(location: Location, offset: Number, direction: Integer) :: Location:
- if {_direction} is 0:
- set {_location} to location {_offset} meters northeast of {_location}
- else if {_direction} is 1:
- set {_location} to location {_offset} meters northwest of {_location}
- else if {_direction} is 2:
- set {_location} to location {_offset} meters southwest of {_location}
- else if {_direction} is 3:
- set {_location} to location {_offset} meters southeast of {_location}
- return {_location}
- function mustUpdateDirection(input: Number, standsWithTheSameDirection: Integer, dir: Integer) :: boolean:
- if {_standsWithTheSameDirection} < 1:
- set {_standsWithTheSameDirection} to 1
- while {_input} >= {_standsWithTheSameDirection}:
- remove {_standsWithTheSameDirection} from {_input}
- if {_input} is 0:
- return true
- return false
- function getNewDirection(dir: Integer) :: integer:
- add 1 to {_dir}
- if {_dir} is 4:
- set {_dir} to 0
- return {_dir}
- # Number MUST be a duplicate of four
- function circle(loc: location, radius: Integer, amount: Integer, entity: EntityType):
- set {_summonLocation} to location {_radius} meters north of {_loc}
- set {_standsWithTheSameDirection} to {_amount}/4
- set {_distanceBetweenStands} to {_radius}/{_standsWithTheSameDirection}
- set {_dir} to 2
- summon {_entity} at {_summonLocation}
- loop {_amount} -1 times:
- set {_summonLocation} to getNewLocation({_summonLocation}, {_distanceBetweenStands}, {_dir})
- if mustUpdateDirection(loop-value, "%{_standsWithTheSameDirection}%" parsed as an integer, {_dir}) is true:
- set {_dir} to getNewDirection({_dir})
- summon {_entity} at {_summonLocation}
- set display name of last spawned armor stand to "%loop-value%: %{_dir}%"
- command /boss:
- trigger:
- if executor is not player:
- send "{@logo} This command can only be executed by a player."
- else if player doesn't have permission {@permission}:
- send "{@logo} You do not have enough permissions to do this."
- else:
- send "BOSS"
Advertisement
Add Comment
Please, Sign In to add comment