layout/FFAQs

Fake Frequently Asked Questions


Q - That example is so complicated! Does it have to be that way?
Not at all! Testing for just one factor (raining, or night time, for example) needs only a couple of lines. Choose the factors you want and delete the rest.
Q - I don't want to mess around with conditions. How can I make it so that all pigs drops cooked pork, no matter how they're killed?
mobs:
- name: pig
  conditions:
  - outcome:
      drop_chances:
      - percent: 100
        replace_drops: yes
        drops:
        - name: grilled_pork
Q - How can I make it so that killing a mob with a sword will give a different item to killing it with an axe?
mobs:
- name: pig
  conditions:
  - outcome:
      drop_chances:
      - percent: 100
        replace_drops: yes
        drops:
        - name: red_wool
    player:
      holding:
      - name: axes
  - outcome:
      drop_chances:
      - percent: 100
        replace_drops: yes
        drops:
        - name: green_wool
    player:
      holding:
      - name: swords
Q - How can I make it so that a mob drops items like normal but very rarely it drops something special?
mobs:
- name: pig
  conditions:
  - outcome:
      drop_chances:
      - percent: 1
        replace_drops: yes
        drops:
        - name: gold_nugget
Q - How can I make it so that if a mob is killed with an enchanted sword, at night, in the rain, the mob will drop glowstone?
mobs:
- name: pig
  conditions:
  - outcome:
      drop_chances:
      - percent: 100
        replace_drops: yes
        drops:
        - name: glowstone
    player:
      holding:
      - name: swords
        enchantments:
        - effect: damage_all
    world:
      raining: yes
      times:
      - min: 12000
Q - How do I make a mob drop an enchanted helmet if it's killed on the third Tuesday in February?
mobs:
- name: pig
  conditions:
  - outcome:
      drop_chances:
      - percent: 100
        replace_drops: yes
        drops:
        - name: diamond_helmet
          enchantments:
          - effect: protection_fire
            level: 4
    real:
      days:
      - tue
      months:
      - feb
      month_weeks:
      - min: 3
        max: 3