Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipes defined in code replace decomposition recipes #1156

Open
ALongStringOfNumbers opened this issue Aug 24, 2022 · 0 comments
Open

Recipes defined in code replace decomposition recipes #1156

ALongStringOfNumbers opened this issue Aug 24, 2022 · 0 comments
Labels
type: bug Something isn't working

Comments

@ALongStringOfNumbers
Copy link
Contributor

GregTech CEu Version

2.4.1

Modpack Used

No response

Addons Installed

No response

Environment

singleplayer

New Worlds

Yes

Cross-Mod Interaction

No

Expected Behavior

Recipes defined via code that clash with decomposition recipes to be counted as duplicate.

Actual Behavior

Recipes that are defined in code can replace auto generated decomposition recipes, while recipes defined via crafttweaker do not do this (probably because of when the recipes are loaded?)

For example, this recipe defined in code will replace the wood plank -> wood dust decomposition recipe

        MACERATOR_RECIPES.recipeBuilder().EUt(30).duration(100)
                .notConsumable(new ItemStack(Blocks.PLANKS, 2))
                        .output(Blocks.STONE)
                                .buildAndRegister();

However, when the recipe is defined via crafttweaker such as

macerator.recipeBuilder()
        .notConsumable(<minecraft:planks> * 2)
        .outputs([<minecraft:stone>])
        .EUt(30).duration(100).buildAndRegister();

The recipe is correctly caught as a duplicate and not registered

Steps to Reproduce

Add recipe via script/code and join the game, noticing the replaced recipe, or the warning of a recipe conflict.

Additional Information

No response

@ALongStringOfNumbers ALongStringOfNumbers added status: unverified Issue is unverified type: bug Something isn't working and removed status: unverified Issue is unverified labels Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant