Can't craft items from GameStages in custom workbenches
Proxwian opened this issue ยท 12 comments
Okay so, for Sophisticated Backpacks, they don't pass a player in, so we do not have a player to get the stage from, there is no solution to this, there simply just isn't a player so you need to use:
https://docs.blamejared.com/1.18/en/mods/RecipeStages/RecipeStages#packages-and-containers
As for Mekanism, the same situation goes on, I have been in contact with the mekanism developer and we came up with a way to get something working, but you should be able to use packages and containers to "fix" it in the mean time.
Also I found this https://docs.blamejared.com/1.18/en/mods/RecipeStages/RecipeStages#packages-and-containers, but it seems to be strange that I must write every modded container by myself to work with mod
What mod adds the workbench? I don't see anything about it in the sophisticated backpacks code.
Also immersive engineering does not have a QIO system.
Please tell me the correct mods so I know what I'm meant to be looking at.
Portable QIO Dashboard from Mekanism
Workbench (Crafting) Backpack Upgrade from SophisticatedBackpacks
Those are not the correct package names.
The package names for sophisticated backpacks are:
net.p3pp3rf1y.sophisticatedcore
net.p3pp3rf1y.sophisticatedbackpacks
They should be printed when you try and craft the recipe in the interfaces. (if you have mods.recipestages.Recipes.setPrintContainers(true);
)
If they aren't printed, then you can't stage the package and there is nothing that can be done to solve the issue.
It's not working, same for Mekanism. Hope this can be fixed with help of Mekanism developer
I just loaded sophisticated backpacks using the following script:
mods.recipestages.Recipes.setRecipeStage("hoe", <item:minecraft:stone_hoe>);
mods.recipestages.Recipes.setPrintContainers(true);
I can confirm that the backpack can't craft the hoe, however in the log file, it does print:
[13:12:27.043][INFO]: Tried to craft a recipe in container: 'net.p3pp3rf1y.sophisticatedcore.upgrades.crafting.CraftingItemHandler$1'
If I add:
mods.recipestages.Recipes.setPackageStages("net.p3pp3rf1y", "hoe");
to my script file, I can now craft the hoe in the crafting upgrade (regardless of if I have the stage or not).
As I mentioned, sohpisticated backpacks doesn't provide a player, so this is the only solution to the problem.
As for Mekanism, I am working with the Mekanism dev to make it work, however it will most likely only be for 1.19 unless she wants to make a 1.18 release in the future.