Date: 2017/03/16 14:22:42 UTC-07:00
Type: Denizen Script
SpawnNormalsInfected3:
type: world
debug: false
events:
on pig spawns because NATURAL in SURVIVAL:
- ^flag n@901 Boss:<util.random.int[1].to[25]>
- if <context.location.is_within[cu@-400,0,400,survival|-700,300,900,survival]> == false && <context.location.light.sky> > 2 {
- if <n@901.flag[Boss]> == 5 {
- ^spawn Infected3 <context.location> save:infected3
- ^equip <entry[infected3].spawned_entities> hand:air legs:air chest:air boots:air offhand:air
}
}
Infected3:
type: entity
entity_type: e@pig_zombie[angry=0;anger=0]
has_ai: true
max_health: 1
health: 1
can_pickup_items: false
equipment: air|air|air|i@Infected3