Skip to content

Recipe Filters

Emily Rose Ploszaj edited this page Jan 15, 2023 · 1 revision

Recipe Filters

Most recipes in EMI have an ID, this can be viewed by turning on the dev option in the config. Recipes can be hidden from displaying using a recipe filter file in a resource pack. Any json file in assets/emi/recipe/filters/ will be parsed as a recipe filter, which contains a single key filters to an array of filter objects using the table below. All filters in a single object must match a recipe for it to be hidden.

Key Value
id A string for exact matching OR, if starting and ending with /, a regex to match against recipe IDs. Matches will be hidden.
category A string for exact matching OR, if starting and ending with /, a regex to match against category IDs. Matches will be hidden.

Example

The following will hide the recipe crafting a red tulip into red dye

{
  "filters": [
    {
      "id": "minecraft:red_dye_from_tulip"
    }
  ]
}

The following will hide every crafting recipe

{
  "filters": [
    {
      "category": "minecraft:crafting"
    }
  ]
}

The following will hide every crafting recipe added by minecraft, using regex

{
  "filters": [
    {
      "id": "/minecraft:/",
      "category": "minecraft:crafting"
    }
  ]
}