Can’t change time, energy usage, etc. in a CraftTweaker alloy furnace recipe
Dimentive opened this issue · 5 comments
mods.nuclearcraft.alloy_furnace.addRecipe(<ore:ingotPlatinum>, <ore:ingotOsmium>, <contenttweaker:plasmium_ingot>, 2, 2, 3);
Getting “a method available but none matches the parameters (string)” errors.
1.12.2
Forge 14.23.5.2847
Oh! Thank you. It’d be great if examples were included in the help file.
mods.nuclearcraft.alloy_furnace.addRecipe(<ore:ingotPlatinum>, <ore:ingotOsmium>, <contenttweaker:plasmium_ingot>, 1.0, 25.0, 1.0);
This is getting errors too.
[SERVER_STARTED][SERVER][ERROR] CraftTweaker\My recipes\ContentTweaker.zs:476 > 3 methods available but none matches the parameters (ZenTypeNative: crafttweaker.oredict.IOreDictEntry, ZenTypeNative: crafttweaker.oredict.IOreDictEntry, ZenTypeNative: crafttweaker.item.IItemStack, double, double, double)
This is usually an error in your script, not in the mod
addRecipe(ZenTypeNative: crafttweaker.item.IIngredient, ZenTypeNative: crafttweaker.item.IIngredient, ZenTypeNative: crafttweaker.item.IIngredient, int)
addRecipe(ZenTypeNative: java.lang.Object[])
addRecipe(ZenTypeNative: crafttweaker.item.IIngredient, ZenTypeNative: crafttweaker.item.IIngredient, ZenTypeNative: crafttweaker.item.IIngredient)
Ah, that's because you need to surround all of the arguments in an array. That was changed in more recent version if the mod, so I forgot about that.
And the docs do include the info, though it may be easy to miss it ;)
@Dimentive You have to make sure the values are floating point, i.e. 2.0, 2.0, 3.0
;)