CraftTweaker

CraftTweaker

151M Downloads

[1.14.4] RecipeType natural-progression:damage_tools not found

oitsjustjose opened this issue ยท 1 comments

commented

Intro:

Heya! Similar issue to #878, but this time with a mod I've written so if it's something idiotic I've done, I'm going to fix it.

I just wrote up (yesterday) a custom recipe type that is almost identical to ShapelessRecipe, but instead of deleting damageable items, it damages them and leaves them in place.

I wanted to integrate this into my modpack to make recipes harder using CT, but I came across the same issue as in #878 -- except I know I'm using my (natural-progression) namespace.

Here's how I register the recipe type, and here's how it's written.

Issue Description:

<recipetype:natural-progression:damage_tools>.addJSONRecipe(...) does not work as intended, when the recipe type is confirmed to work and works fine as a datapack.

What happens:

The error "Could not get RecipeType with name: recipetype:natural-progression:damage_tools! RecipeType does not appear to exist!" is thrown when that exact recipe type works as a JSON in a datapack.

What you expected to happen:

CraftTweaker to accept this recipe type as valid, thus allowing the recipe to work.

Script used

crafttweaker.log


Affected Versions

  • Minecraft: 1.14.4
  • Forge: 28.1.90
  • Crafttweaker: 5.0.1.133
  • Using a server: No

Your most recent log file where the issue was present:

latest.log

commented

Keep in mind, RecipeSerializers are different from IRecipeType (which is what the bracket handler uses), So for you, you could use the shapeless crafting type, or you could make your own recipe type (but I don't know if that would still work in the crafting grid).

For making your own IRecipeType:

RECIPE_TYPE_SCRIPTS = Registry.register(Registry.RECIPE_TYPE, new ResourceLocation(MODID, "scripts"), new IRecipeType<ScriptRecipe>() {