CraftTweaker

CraftTweaker

151M Downloads

Invalid Item when creating a Botania flower recipe with NBT

Eufranio opened this issue ยท 4 comments

commented

That's my script:

recipes.addShaped(<BuildCraft|Builders:machineBlock>, [[<BuildCraft|Robotics:robot>, <Botania:specialFlower>.onlyWithTag({type: "orechid"}), <BuildCraft|Robotics:robot>],
	[<ImmersiveEngineering:metalDevice:14>, <BuildCraft|Factory:miningWellBlock>, <ImmersiveEngineering:metalDevice:14>],
	[<IC2:blockMachine:12>, <ThermalDynamics:ThermalDynamics_0:4>, <IC2:blockMachine:12>]]);

When using this, I get a flower with invalid NBT in the recipe:
flower_3

If I use the withTag instead onlyWithTag, I get the right recipe:

flower_3

recipes.addShaped(<BuildCraft|Builders:machineBlock>, [[<BuildCraft|Robotics:robot>, <Botania:specialFlower>.withTag({type: "orechid"}), <BuildCraft|Robotics:robot>],
	[<ImmersiveEngineering:metalDevice:14>, <BuildCraft|Factory:miningWellBlock>, <ImmersiveEngineering:metalDevice:14>],
	[<IC2:blockMachine:12>, <ThermalDynamics:ThermalDynamics_0:4>, <IC2:blockMachine:12>]]);

flower_3

commented

uh yea. ".withTag" is for inputs, "withOnlyTag" is for outputs

commented

But, when using .withTag in a input, I can use any flower with any NBT in the recipe, not the one that I specified.

commented

Sorry by the mistake. Yes, you're right, It's working, but NEI won't display the right flower in the recipe, kinda ignoring all NBT... Do you know how to fix?

commented

no idea.