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,
- function getNewLocation(location: Location, offset: Number, direction: Integer) :: Location:
- # Directions are not set up correctly
- if {_direction} is 0:
- set {_location} to location {_offset} meters north and {_offset} meters east of {_location}
- else if {_direction} is 1:
- set {_location} to location {_offset} meters south and {_offset} meters east of {_location}
- else if {_direction} is 2:
- set {_location} to location {_offset} meters south and {_offset} meters west of {_location}
- else if {_direction} is 3:
- set {_location} to location {_offset} meters west and {_offset} meters north of {_location}
- return {_location}
- function getIntegerAsDirection(input: Integer) :: Integer:
- while {_input} >= 4:
- set {_input} to {_input}-4
- return {_input}
- function circle(loc: location, radius: Integer, amount: Integer, entity: EntityType):
- set {_startLocation} to location {_radius}+1 meters north of {_loc}
- set {_distance} to {_radius} / {_amount} * 2 +1
- loop {_amount} times:
- if loop-value > 1:
- set {_startLocation} to getNewLocation({_startLocation}, {_distance}, getIntegerAsDirection("%loop-value%" parsed as an integer))
- summon {_entity} at {_startLocation}
- # Test commands
- command /circle <Integer> <Integer>:
- trigger:
- circle(location of player, argument 1, argument 2, armor stand)
Advertisement
Add Comment
Please, Sign In to add comment