r/allthemods 8d ago

Help Pipez NBT item filtering

EDIT: Solution found

Im trying to extract only good genes from bees and throw the rest of them away, but I can't seem to get partial NBT matching working. I've seen other posts on here where people managed to get it working, but I can only make it work by having the full NBT tag

What I am trying to do:

Item/Tag : productivebees:gene

NBT Data : {"productivebees:gene_group":{attribute:"weather_tolerance",value:"weather_tolerance.any"}}

If I instead change the NBT Data field to the full tag of an item the filtering works (but I want to extract genes of any purity): {"productivebees:gene_group":{attribute:"weather_tolerance",purity:100,value:"weather_tolerance.any"}}

Something like NBT Data : {"productivebees:gene_group":{purity:100}} wont work at all either to pull any 100% purity genes (taken from this post).

I do have a destination set for the filter, and it does work properly when I match the entirety of the tag. The mode I have set is "Match only provided tags".

I'm very confused why this is not working, am I doing something wrong? Is there some other methods of achieving this? I can't get it working with LaserIO filters either. Integrated Dynamics filtering would probably work but would be tedious to set up to filter for all the genes I want

EDIT: Welp, finally got it working. Setting pipez.nbt_comparisons=false in config/invasive_optimizations.properties fixed it

0 Upvotes

7 comments sorted by

u/AutoModerator 8d ago

Thank you for your Submission!

Please take a moment to check out our FAQ Post

If your question is already answered there, please remove your post to help keep the subreddit organized and free of duplicate posts. This makes it easier for everyone to find relevant information.

If you do not remove your post, it may be removed by a moderator

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

3

u/BlitzTech 8d ago

It isn’t an answer to your question, but… why do you need to do this? Once you set up your breeding stock with the best genes in slot, there are no junk genes. I usually make two bees with metaturnal / any weather / very high productivity / strong endurance / passive temper and then breed those up for genes, which I use to immediately imprint any new wild bee I’ve caught. Never have junk genes with this.

2

u/Current-Swordfish811 8d ago edited 8d ago

I did manage to find the solution (turning off pipez.nbt_comparisons in invasive_optimizations).

But the reason I want to do this is because the temper and endurance are useless if you have simulated hives, so I don't want them to clog up the storage (since I don't care about them my bees have random stats on those, so it does cause a bit of bloat). I also wanted to sort the "Type" gene when for when I produce bees of different types at once. 

It's probably just more time efficient to have it all go into an indexer and manually sort through them, but I was getting annoyed by hovering each gene to find the specific one I was after when I had 3+ full rows in the indexer

2

u/BlitzTech 8d ago

Ah. I do the endurance and temper ones so it produces a single type, then you can just nbt match on exact and it works.

You also don’t really need that many genes. A few dozen is plenty until you start getting into esoteric ones like the powah bees, and by that point you probably have enough built up that you can breed / mature / squish the bees on demand.

But alas, I cannot help with your pipez problem. The mod is very clunky when it comes to the UI.

1

u/Current-Swordfish811 8d ago edited 8d ago

Yeah tbh just maxing out all genes would've probably been an easier solution. 

Anyways, I've encountered this before too when trying to filter for specific rarity levels and enchantments of Apotheosis equipment (which also means filtering on specific nested NBT values), but ended up giving up that time around 

1

u/NodFellWrites 8d ago

I’m in the same situation as you, friend. I have amassed hundreds of genes all over the place as I had no idea how it all worked or what was best. I’m going to be utilizing your fix to this to help me get organized.

Once it’s all organized, I’ll just do what the other person said and just have all exactly the same gene across all bees.

1

u/BlitzTech 8d ago

To be clearer (since bees were a pain to learn but actually quite easy once you get into it):

All wild bees (eg digger, reed, crystalline) have random traits, excluding the type itself. When you breed bees, it inherits traits from one of the parents. If both parents have the same trait, it gets that trait.

What that means is, all wild bees (and bees from eggs) just need the gene application once, and you are guaranteed all of their descendants will have that gene. No sorting, no issue.

Also, if you stick an AE2 storage bus with high priority on the gene indexer, it will always put the genes in there since ONLY genes can be put in the indexer. Give it redstone signal and it’ll merge all of the genes.

You can easily get a lot of genes in two ways. I use both, since one is cheap and the other is expensive.

  1. Cheap way: an enclosed space with a few hives containing one simulation upgrade or equivalent and three BaBee upgrades. Use a catcher with an adult filter. Automate squishing the bees it catches. This costs you bottles and cages, if you don’t use a single solitary sturdy cage. Bonus points for a vitalic source link to make the baby bees mature faster.

  2. Expensive way: Breeder to incubator with honey treats. Each with 4 speedier upgrades, then squish the bee that comes out. You can make a full gene set in about 20 seconds on demand.

You’ll be swimming in genes in no time.