Date: 2016/08/04 03:56:12 UTC-07:00
Type: Denizen Script
SpawnTest:
type: world
debug: false
events:
on Zombie spawns because NATURAL in SURVIVAL:
- ^flag <context.entity> Boss:<util.random.int[1].to[90]>
- if <context.entity.flag[Boss]> == 10 && <context.location.is_within[cu@-400,0,400,survival|-700,300,900,survival]> == false {
- ^execute as_server 'msg headlessjoet t <context.location>'
- ^spawn ZombieKing <context.location> save:testzomb55
- ^cast FIRE_RESISTANCE d:10000 p:10 <entry[testzomb55].spawned_entities>
- ^equip <entry[testzomb55].spawned_entities> hand:gold_sword offhand:i@shield[base_color=YELLOW;patterns=li@WHITE/STRAIGHT_CROSS]
- ^determine cancelled passively
}
- if <context.entity.flag[Boss]> == 20 && <context.location.is_within[cu@-400,0,400,survival|-700,300,900,survival]> == false {
- ^execute as_server 'msg headlessjoet t <context.location>'
- ^spawn SkeletonReaper <context.location> save:testskele8
- ^equip <entry[testskele8].spawned_entities> hand:i@Reaper[unbreakable=true;flags=li@HIDE_Attributes|Hide_unbreakable]
- ^determine cancelled passively
}
- if <context.entity.flag[Boss]> == 30 && <context.location.is_within[cu@-400,0,400,survival|-700,300,900,survival]> == false {
- ^execute as_server 'msg headlessjoet t <context.location>'
- ^spawn SkeletonBerserk <context.location> save:testskele7
- ^equip <entry[testskele7].spawned_entities> hand:i@Claw[unbreakable=true;flags=li@HIDE_Attributes|Hide_unbreakable] offhand:i@Claw[unbreakable=true;flags=li@HIDE_Attributes|Hide_unbreakable]
- ^determine cancelled passively
}