Skip to content

Hiding and Adding Index Stacks

Emily Rose Ploszaj edited this page Jan 15, 2023 · 2 revisions

Index Stacks

The sidebar showing "every" item in the game in EMI is called the index. While it is possible to add or remove stacks from this index in code trivially, it is also possible to use data packs or resource packs to modify the index. There are 2 ways to achieve this.

Tag based/data pack removal

EMI abides by the #c:hidden_from_recipe_viewers block, item, and fluid tags. Anything in this tag will be removed from the index.

Resource pack removal/addition

For more complex use cases, you can also add and remove stacks to/from the index using resource packs. Any json file in assets/emi/index/stacks/ will be loaded for this purpose. Files can have two arrays: added, and removed. Each is a list of stacks to be added or removed, respectively. Removed stacks are a simple list of stacks, added stacks are objects in the following format.

Key Value
stack The stack to be added.
after Optionally, the point in the index to add stack after.

Example

The following adds stone after water in the index, and removes gold ingots

{
  "added": [
    {
      "stack": "item:minecraft:stone",
      "after": "fluid:minecraft:water"
    }
  ],
  "removed": [
    "item:minecraft:gold_ingot"
  ]
}