Modular Routers

Modular Routers

33M Downloads

NBT filter (subset or exact mode)

laundmo opened this issue ยท 3 comments

commented

Describe the feature

Similar to the existing advanced filter augments, one which can filter by NBT data. Specifically, should allow the user to specify a NBT structure which needs to be a subset or exact copy (button to switch these, subset is default) of the items NBT.

example: if a item contains {a:"test", b:{c:"something", d:500}} it could be matched by a subset NBT filter liks this: {a:"test"} or like this: {b:{c:"something"}}

Subset mode would obviously look whether the filter NBT is contained in the item NBT, while Exact mode would require the item NBT to be exactly the filters NBT, no extra/missing tags.

Reasons why it should be considered

There are various mods which store things in NBT which may be interesting to filter, like armour tool affixes from Apotheosis or just vanilla enchantments. It would be nice if these could be filtered by this mod.

I'm aware of 2 mods with similar features, each with their downsides:

  • Pipez: blocks a block face with its pipe, no advanced behaviour beyond filtering
  • Integrated Dynamics: blocks a block face with its pipe, very advanced behaviour possible but everythung beyond a simple filter is incredibly complex to achive, UX wise, as it essentially implements a currying based programming language with individual items as lines of code.

I think Modular Routers is a great balance between supporting complexity and good UX, which is why having the feature here would be great.

Additional details

To make filtering by NBT even easier, i imagine a slot in the UI where you can extract the NBT of a existing item and remove individual NBT elements to create a filter could be very useful.

It might also be useful to allow for comparison with numerical NBT values, but this could easily get too complex.

commented
commented

Item NBT is no longer a thing in Minecraft 1.20.6+, and I have no plans to add significant features to any older releases, sorry.

Data component filtering may be a thing in the future, but more likely supported by an addon mod, like FTB Filter System.

commented

thank you for the response, i wasn't aware of item NBT being removed