removeAll() doesn't work
fyrkantis opened this issue ยท 4 comments
Issue description
I'm trying to remove all recipes of the category "Cutting Board Deploying" from Create: Central Kitchen, using removeAll()
as in this example:
<recipetype:create_central_kitchen:cutting_board_deploying>.removeAll();
But after I reload the scripts, all Cutting Board Deploying recipes are still there. Is this an issue with CraftTweaker or something that needs to be fixed in Create: Central Kitchen?
Steps to reproduce
No response
Script used
The crafttweaker.log file
Minecraft version
1.20.1
Modloader
Forge
Modloader version
47.3.0
CraftTweaker version
14.0.40
Other relevant information
No response
The latest.log file
Can you try removing the recipes using Farmer's Delight Cutting Board recipe manager? Central Kitchen seems to be pulling recipes from there dynamically, and unlike Create I do not see a _manual_only
filter in the recipe name.
That does seems to work! When I add <recipetype:farmersdelight:cutting>.removeAll();
it removes all cutting recipes, including the ones I want to remove.
Then it's just the problem of removing them without removing the normal cutting recipes. I tried using <recipetype:farmersdelight:cutting>.removeByRegex(".+_using_deployer");
but that didn't remove any recipes (I'm guessing it's just looking for farmersdelight recipes and not the ones from Central Kitchen, or I've written the capture wrong). Is the solution to copy all farmersdelight:cutting recipes before removing them, and then re-adding them afterward so they only work for cutting boards? Or is there a less jank solution for this?
Sorry if this is the wrong channel for questions like this, since they aren't related to problems caused by CraftTweaker.
I'd go ask Central Kitchen if there is a way to add Cutting Board recipes without them having a deployer equivalent first. If that doesn't work, maybe they can implement something like Create's _manual_only
filter here, so that you can add Cutting Board recipes that aren't mirrored by the Central Kitchen machine.