πŸ”’ Restricted Actions

There are two types of actions that can be restricted:

πŸ›  Regular Actions

These check whether a block or item is unlocked during specific player behavior:


βš™οΈ Config Examples

These are examples from xpmode.yml and farmingmode.yml.

πŸ”Ή xpmode.yml

Recipes:
  level1:
    needed_xp: 0
    items:
      - WOODEN_TOOLS
      - WOODEN_SWORD
      - STONE_SWORD
      - CHEST
      - STICK
      - PLANKS
      - FURNACE
      - CRAFTING_TABLE
      - TORCH
    entities_actions:
      - shear #Player can shear sheep

πŸ”Έ farmingmode.yml

unlocks:
  firstUnlock:
    name: First Unlock
    unlocks:
      - STONE_TOOLS
      - STONE_SWORD
      - LEATHER_ARMOR
      - STONES
      - FISHING_ROD
      - BEDS
      - DYES
    entities_actions:
      - shear #Player can shear sheep

🐾 EntityActions

Other actions can also have level requirements and are defined in either xpmode.yml or farmingmode.yml.