CraftTweaker

CraftTweaker

186M Downloads

Java error while using Replacer

panicbard opened this issue ยท 3 comments

commented

Issue description

I tried to execute that piece of code:

import crafttweaker.api.recipe.replacement.Replacer;
import crafttweaker.api.ingredient.IIngredient;

Replacer.create()
.replace(recipecomponent:crafttweaker:input/ingredients, item:fruitsdelight:lemon, item:extradelight:lemon)
.execute();

and I got that error:
Cannot invoke "java.util.Collection.stream()" because the return value of "com.blamejared.crafttweaker.api.tag.type.KnownTag.getInternal')" is null

Steps to reproduce

No response

Script used

The crafttweaker.log file

Minecraft version

1.21.1

Modloader

NeoForge

Modloader version

21.1.206

CraftTweaker version

1.21.1-21.0.34

Other relevant information

Thanks for your work!

The latest.log file

commented

I need the full crafttweaker.log and latest.log files please.

I can't reproduce this using just CraftTweaker and items from vanilla, I suspect you have a mod that is being dumb with their recipes or tags

commented

I got same problem!

latest.log
crafttweaker.log

commented

the crafttweaker.log file you provided is cut off, it doesn't have any info after you reached the main menu.

The latest.log file also doesn't have any crash