[Feature request] conditional sorting
Layarion opened this issue · 7 comments
**Minecraft Version:1.12.2
**Inventory Tweaks Version:current recommended version
Feature request. Make it so that something like this:
Means that if I don't have a shield, put a pick in D2. If i do have a shield, put the shield in D2 and the pick in D3.
This feature request is far better than a swapped configuration could provide, and with swapped configurations it would be neigh unstopable in awesomeness.
+1 Was just about to put the same feature request in.
Would be nice if it was order-sensitive, so the higher selectors take precedence over the lower ones. Right now it seems to be based on the order they appear in the Tree, which is configurable, sure, but makes it difficult to really organize in a clean way.
Frankly I don't know that this mod is still getting support. I may have misread that code activity thing though.
Looks like it was last updated about 3 months ago. So not bad.
I may fork this and play around at some time in the future if I find myself with some free space. :D
i don't know how to read that insight code frequency thing. it looks like it list the first month of every year, and the last 2 years have very low activity.
right now i'm working on C#, but maybe i'll learn java with my kids in 6 months or something. this mod has potential, but i feel that this feature is a must.
as well as the ability for it to not leave slots empty
I mostly don't do much other than MC version updates now.
As for this: You'd need to be very careful on how you define 'conditions' and what a valid condition is -- if it's anything that a sort could even possibly cause to change, you've got a situation where (depending on how it's implemented), it would be possible to cause sorts to always be changing something or even get into an infinite loop and freeze up the game.
I'd rather see the sorting get simplified, as currently it's already barely stable at times due to weird interactions of rules (see, #238, #239 for some old things in that general line)