promotional bannermobile promotional banner
premium banner
Mirrors Apotheosis affix rarity to top-level NBT so filter mods like Pipez and Refined Storage can read it.

Description

What it does

Apotheosis stores affix item rarity in nested NBT at affix_data.rarity. Most filter mods only read first-level NBT, which means players cannot filter affixed gear by rarity in storage and pipe systems. This has been a known pain point across many GitHub issues for years.

This mod copies the rarity value to a top-level NBT key called apothic_rarity. Once mirrored, any filter mod that reads top-level NBT can match items by rarity:

{apothic_rarity:"apotheosis:rare"}

A tooltip on affix items shows the value to make filter setup easier (toggleable in config).

Compatibility

Works with: Pipez, Refined Storage, Applied Energistics 2, XNet, Mekanism logistical transporters, EnderIO conduits, Functional Storage NBT lock, and any other filter mod that reads top-level NBT paths.

Does not work with: Sophisticated Backpacks or Sophisticated Storage. Their filter system requires full NBT match rather than path-based matching, which is a limitation of those mods.

Usage

  1. Install Apotheosis and its dependencies (Placebo, Patchouli, Apothic Attributes).
  2. Drop this jar into your mods folder.
  3. Pick up or generate any affixed item. Within one second it will have apothic_rarity set at the top level of its NBT.
  4. In your filter mod, set the NBT match to {apothic_rarity:"apotheosis:rare"} (or any rarity ID: apotheosis:common, apotheosis:uncommon, apotheosis:rare, apotheosis:epic, apotheosis:mythic).

Config

Located at config/apothic_filter_compat-common.toml.

  • enabled: master switch, default true
  • nbtKey: top-level NBT key, default apothic_rarity
  • tickInterval: how often to sweep inventory in ticks, default 20
  • showTooltip: show the rarity value on tooltips, default true

Source

GitHub: https://github.com/nightwielder23/apothic-filter-compat

License

MIT.