Skip to content

Search Aliases

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

Search Aliases

EMI can search stacks most often by name. However, it can be desirable to be able to search certain things, and have certain stacks pop up. Such as searching "auto crafter" or "blue blocks". Using resource packs, aliases allow stacks to be associated with other names, which can then be searched, and provide this functionality. Any json file in assets/emi/aliases/ is parsed as an alias. There should be a single key aliases which is an array of alias objects defined in the table below

Key Value
stacks A list of, or single stack to be aliased.
text A list of, or single translation key to use as the alias.

Examples

Given alias.emi.workbench is translated as Workbench, the following makes looking up "workbench" fully or partially display the crafting table.

{
  "aliases": [
    {
      "stacks": "item:minecraft:crafting_table",
      "text": "alias.emi.workbench"
    }
  ]
}

Given alias.emi.dust is translated as Dust and alias.emi.grit is translated as Grit, the following makes looking up "dust" or "grit" fully or partially display sand and red sand

{
  "aliases": [
    {
      "stacks": [
        "item:minecraft:sand",
        "item:minecraft:red_sand"
      ],
      "text": [
        "alias.emi.dust",
        "alias.emi.grit"
      ]
    }
  ]
}