Paste #27525: Edit of P#27524 - super amazing mad-good script take two! by r_denizen_104

Date: 2015/12/27 18:47:37 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14


PigmanAttack:
  type: task
  script:
  - foreach <server.list_worlds> {
    - foreach <def[Value].living_entities.filter[entity_type.is[==].to[pig_zombie]]> {
      - define Near <def[Value].location.find.entities[zombie].within[15]>
      - if <def[Near].is_empty> {
        - foreach next
      }
      - attack <def[value]> <def[Near].random>
      - wait 1t
    }
  }
  - run <script> delay:5s instantly