CC: Tweaked

CC: Tweaked

42M Downloads

Add ability to change the tool in tool upgrade crafting recipes

Trinsdar opened this issue ยท 4 comments

commented

maybe this could be fixed by adding a config for what the tool is?

commented

Turtle upgrades recipes are a single dynamic recipe, so I wouldn't expect you to be able to disable it using CraftTweaker. Likewise you shouldn't be registering turtle recipes using CT, as they won't behave the same and it'll end up with buggy behaviour.

Just to double check, you're trying to change the mining upgrade to require a thaumcraft pick instead of a diamond one?

As you mention, a config option would be possible, but I wonder if explicit CraftTweaker integration would be a better bet. So you can have some sort of:

turtle.setUpgradeItem("minecraft:diamond_pickaxe", <thaumcraft:elemental_pick>)

Alternatively, just provide the ability to remove upgrades and register new ones. This might provide a nice solution to #97 too.

commented

Also i'm confused how they would be buggy since i copy over the nbt from the input to the output without any problems that i've been able to see. Just curious; i would still prefer the ct method

commented

I haven't tested this, but I don't think the above code handles the case when crafting with both a left and right upgrade. Strictly speaking, upgrading should also fail if the upgrade item has any NBT data (such as enchantments), though that's less critical.

It might be possible to write an implementation within CT which accurately mimics the default behaviour, but it's gonna be a lot of pain, and the JEI recipe handlers will still return incorrect results. For better or worse, this is something which I'll have to handle within CC itself.

commented

Yah, i'm trying to change the upgrade item, so something like that could work