Darkhax-Minecraft / ItemStages

Allows items to be put into stages.
GNU Lesser General Public License v2.1
7 stars 18 forks source link

[1.16.5] No way to remove stages #64

Closed conneich closed 3 years ago

conneich commented 3 years ago

It doesn't appear there are any ways to currently replace or remove stages from items.

I was trying to hide all items in a mod during start up and then changing the stage to another afterward but it seems to only add stages instead of replacing like I thought it would. This was done with hiding the mod before and after adding another stage to a singular item.

Darkhax commented 3 years ago

That is correct, intentional. When you stage an item using one of the helper methods it creates a rule that checks items on a case by case basis. This rule does not have a predetermined context of every item or ItemStack that would match it's test so exceptions can not be added and specific items can not be removed. You must be 100% sure you want to stage something before you stage it.

The recommended way to do what you would like to do is through item tags. Create a new tag for your stage and then add/remove the items individually from that tag. This can be done using loops to add all items from a specific modid except for the ones you want.