main/Example

Here is an example with all the available sections:

mobs:
- name: pig
  conditions:
  - outcome:
      drop_chances:
      - percent: 80
        exclusive: yes
        replace_drops: yes
        drops:
        - name: red_wool,glowstone
          quantity: 5
      - percent: 20
        replace_drops: no
        drops:
        - name: diamond_sword
          enchantments:
          - effect: damage_all
            level: 3
      exp_chances:
      - percent: 50
        exp: 50
        replace_exp: yes
      - percent: 50
        exp: 10
    player:
      names:
      - John
      - ed            
      holding:
      - name: swords
      - name: red_wool
        min: 5
      wearing:
      - name: iron_leggings
        enchantments:
        - effect: protection_fire
          max: 2
      - name: gold_chestplate
        match_all_enchantments: yes
        enchantments:
        - effect: protection_fire
        - effect: protection_fall
      match_all_wearing: yes
      match_all_items: no
      items:
      - name: dirt, diamond_sword
        min: 2
        match_all_enchantments: yes
        enchantments:
        - effect: durability
        - effect: damage_all
          min: 2
          max: 3
    mob:
      ages:
      - min: 2
        max: 5
      - min: 8
        max: 12
      names:
      - richard
      - bill
      saddled: yes
      tame: yes
    world:
      raining: yes
      thundering: yes
      times:
      - min: 2000
        max: 5000
      - min: 10000
        max: 15000
      heights:
      - min: 10
        max: 50
      - min: 80
        max: 100
      biomes:
      - taiga
      - desert
      types:
      - normal
      - nether
      - the_end
    real:
      years:
      - {min: 2011, max: 2013}
      months:
      - jan
      - mar
      - 11
      dates:
      - {min: 2, max: 13}
      days:
      - mon
      - wed
      - 6
      hours:
      - {min: 2, max: 20}
      minutes:
      - {min: 25, max: 35}
      seconds:
      - {min: 10, max: 45}
      year_weeks:
      - {min: 5, max: 10}
      month_weeks:
      - {min: 1, max: 3}
      year_days:
      - {min: 100, max: 200}

Click on the links below for more information about each section: Outcome Mob Player World