MineTweaker/ModTweaker - A help and suggestions thread.

Golrith

Over-Achiever
Trusted User
Nov 11, 2012
3,834
2,137
248
Trying to add a recipe to the Forestry Squeezer, with no joy:

Wiki:
//Squeezer
//OutputFluid, OutputStack + %, InputArray, Time in Ticks
mods.forestry.Squeezer.addRecipe(<liquid:ice> * 1000, <Forestry:craftingMaterial:5> % 200, [<minecraft:packed_ice> * 4, <minecraft:snowball>], 20);

I've tried my own and the wiki example, both give the same error:
3 methods available but none matches the parameters (minetweaker.liquid.ILiquidStack, minetweaker.item.WeightedItemStack, any[], int)

Can anyone help?
 

Yulife

New Member
Jul 29, 2019
889
-4
0
Trying to add a recipe to the Forestry Squeezer, with no joy:

Wiki:
//Squeezer
//OutputFluid, OutputStack + %, InputArray, Time in Ticks
mods.forestry.Squeezer.addRecipe(<liquid:ice> * 1000, <Forestry:craftingMaterial:5> % 200, [<minecraft:packed_ice> * 4, <minecraft:snowball>], 20);

I've tried my own and the wiki example, both give the same error:
3 methods available but none matches the parameters (minetweaker.liquid.ILiquidStack, minetweaker.item.WeightedItemStack, any[], int)

Can anyone help?

Which version of Forestry and Modtweaker? The WeightedItemStack is relatively new.
 

Pyth

New Member
Jul 29, 2019
39
0
0
Guys, I need some help. We all know a gold ingot can be converted to gold nuggets in the crafting table. How can I change this recipe?
 

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
Guys, I need some help. We all know a gold ingot can be converted to gold nuggets in the crafting table. How can I change this recipe?
recipes.remove(<minecraft:gold_nugget>*9,[[<minecraft:gold_ingot>]]);

I believe that is the recipe you want, just make sure the codes are correct though
 

Pyth

New Member
Jul 29, 2019
39
0
0
It doesn't work

Code:
recipes.remove(<minecraft:gold_nugget>*9, [
[<minecraft:gold_ingot>]]);

recipes.addShapeless(<minecraft:gold_nugget>*9, [
[<minecraft:gold_ingot>, <gregtech:gt.metatool.01:12>]]);

Another one issue
Code:
recipes.addShapeless(<RealisticTorches:TorchLit>*32, [
[<RealisticTorches:TorchUnlit>*64, <minecraft:flint_and_steel>]]);

https://puu.sh/l6AO3/ee0c109c67.jpg
 

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
It doesn't work

Code:
recipes.remove(<minecraft:gold_nugget>*9, [
[<minecraft:gold_ingot>]]);

recipes.addShapeless(<minecraft:gold_nugget>*9, [
[<minecraft:gold_ingot>, <gregtech:gt.metatool.01:12>]]);

Another one issue
Code:
recipes.addShapeless(<RealisticTorches:TorchLit>*32, [
[<RealisticTorches:TorchUnlit>*64, <minecraft:flint_and_steel>]]);

https://puu.sh/l6AO3/ee0c109c67.jpg
It may not need the "*9" for the remove recipe... I forget how the specific removals work.

As for the added recipe, is the "12" a meta data (damage value)? If so put :*... although, I would look at Minetweaker wiki's "addDamage" so that the recipe is similar to how other GT recipes work.

---
And your shapeless recipe only needs 1 set of brackets:
recipes.addShapeless(<RealisticTorches:TorchLit>*32, [<RealisticTorches:TorchUnlit>*64, <minecraft:flint_and_steel>]);
 

Pyth

New Member
Jul 29, 2019
39
0
0
Code:
recipes.addShapeless(<RealisticTorches:TorchLit>*32, [<RealisticTorches:TorchUnlit>*64, <minecraft:flint_and_steel>]);

recipes.remove(<minecraft:gold_nugget>);

recipes.addShapeless(<minecraft:gold_nugget>*9, [  //457
[<minecraft:gold_ingot>, <gregtech:gt.metatool.01:*>]]);
It doesn't work nicely
https://puu.sh/l6QlT/0699e2bd2c.png
For torches: I can do one lit torch for unlit torch and flint and steel (whole flint&steel disappears!)
For ingot: no more ingot=9nuggets.
Ingot+<gregtech:gt.metatool.01:*> = nothing

Thank you for your help anyway.
 
Last edited:

Golrith

Over-Achiever
Trusted User
Nov 11, 2012
3,834
2,137
248
Which version of Forestry and Modtweaker? The WeightedItemStack is relatively new.
Ah, just noticed that there is an update to ModTweaker, which then makes the script work nicely. Cheers!
 
  • Like
Reactions: Yulife

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
Code:
recipes.addShapeless(<RealisticTorches:TorchLit>*32, [<RealisticTorches:TorchUnlit>*64, <minecraft:flint_and_steel>]);

recipes.remove(<minecraft:gold_nugget>);

recipes.addShapeless(<minecraft:gold_nugget>*9, [  //457
[<minecraft:gold_ingot>, <gregtech:gt.metatool.01:*>]]);
It doesn't work nicely
https://puu.sh/l6QlT/0699e2bd2c.png
For torches: I can do one lit torch for unlit torch and flint and steel (whole flint&steel disappears!)
For ingot: no more ingot=9nuggets.
Ingot+<gregtech:gt.metatool.01:*> = nothing

Thank you for your help anyway.
You forgot to remove one of each bracket "[ ]" from the Shapeless recipe
 

Pyth

New Member
Jul 29, 2019
39
0
0
Code:
ERROR: Error executing AE.zs: ItemStack 1xitem.appliedenergistics2.ItemPart@800 has to be either registered or unregistered, but was not found in either.
java.lang.IllegalStateException: ItemStack 1xitem.appliedenergistics2.ItemPart@800 has to be either registered or unregistered, but was not found in either.
   at appeng.items.parts.ItemMultiPart.getTypeByStack(ItemMultiPart.java:265)
   at appeng.items.parts.ItemMultiPart.func_77653_i(ItemMultiPart.java:200)
   at net.minecraft.item.ItemStack.func_82833_r(ItemStack.java:491)
   at minetweaker.mc1710.recipes.MCRecipeManager$ActionAddRecipe.describe(MCRecipeManager.java:383)
   at minetweaker.runtime.MTTweaker.apply(MTTweaker.java:55)
   at minetweaker.MineTweakerAPI.apply(MineTweakerAPI.java:169)
   at minetweaker.mc1710.recipes.MCRecipeManager.addShapeless(MCRecipeManager.java:119)
   at AE.__script__(AE.zs:255)
   at __ZenMain__.run(AE.zs)
   at minetweaker.runtime.MTTweaker.load(MTTweaker.java:163)
   at minetweaker.MineTweakerImplementationAPI.reload(MineTweakerImplementationAPI.java:656)
   at minetweaker.MineTweakerImplementationAPI$1.execute(MineTweakerImplementationAPI.java:83)
   at minetweaker.MineTweakerImplementationAPI$19.execute(MineTweakerImplementationAPI.java:642)
   at minetweaker.mc1710.server.MCServer$MCCommand.func_71515_b(MCServer.java:124)
   at net.minecraft.command.CommandHandler.func_71556_a(CommandHandler.java:99)
   at org.bukkit.craftbukkit.v1_7_R4.command.CraftSimpleCommandMap.dispatch(CraftSimpleCommandMap.java:53)
   at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchVanillaCommand(CraftServer.java:733)
   at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:1324)
   at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:1099)
   at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(C01PacketChatMessage.java:38)
   at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(C01PacketChatMessage.java:53)
   at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:244)
   at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:173)
   at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:991)
   at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:431)
   at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:809)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:669)
   at java.lang.Thread.run(Unknown Source)
What does it mean?
 

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
Code:
ERROR: Error executing AE.zs: ItemStack 1xitem.appliedenergistics2.ItemPart@800 has to be either registered or unregistered, but was not found in either.
java.lang.IllegalStateException: ItemStack 1xitem.appliedenergistics2.ItemPart@800 has to be either registered or unregistered, but was not found in either.
   at appeng.items.parts.ItemMultiPart.getTypeByStack(ItemMultiPart.java:265)
   at appeng.items.parts.ItemMultiPart.func_77653_i(ItemMultiPart.java:200)
   at net.minecraft.item.ItemStack.func_82833_r(ItemStack.java:491)
   at minetweaker.mc1710.recipes.MCRecipeManager$ActionAddRecipe.describe(MCRecipeManager.java:383)
   at minetweaker.runtime.MTTweaker.apply(MTTweaker.java:55)
   at minetweaker.MineTweakerAPI.apply(MineTweakerAPI.java:169)
   at minetweaker.mc1710.recipes.MCRecipeManager.addShapeless(MCRecipeManager.java:119)
   at AE.__script__(AE.zs:255)
   at __ZenMain__.run(AE.zs)
   at minetweaker.runtime.MTTweaker.load(MTTweaker.java:163)
   at minetweaker.MineTweakerImplementationAPI.reload(MineTweakerImplementationAPI.java:656)
   at minetweaker.MineTweakerImplementationAPI$1.execute(MineTweakerImplementationAPI.java:83)
   at minetweaker.MineTweakerImplementationAPI$19.execute(MineTweakerImplementationAPI.java:642)
   at minetweaker.mc1710.server.MCServer$MCCommand.func_71515_b(MCServer.java:124)
   at net.minecraft.command.CommandHandler.func_71556_a(CommandHandler.java:99)
   at org.bukkit.craftbukkit.v1_7_R4.command.CraftSimpleCommandMap.dispatch(CraftSimpleCommandMap.java:53)
   at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchVanillaCommand(CraftServer.java:733)
   at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:1324)
   at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:1099)
   at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(C01PacketChatMessage.java:38)
   at net.minecraft.network.play.client.C01PacketChatMessage.func_148833_a(C01PacketChatMessage.java:53)
   at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:244)
   at net.minecraft.network.NetworkSystem.func_151269_c(NetworkSystem.java:173)
   at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:991)
   at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:431)
   at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:809)
   at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:669)
   at java.lang.Thread.run(Unknown Source)
What does it mean?
Whatever is on line 255 of AE.zs is invalid.
Either a mistyped ID, or something that isn't registered
 

Pyth

New Member
Jul 29, 2019
39
0
0
Code:
recipes.addShaped(<flansmod:m67>*4, [
[<gregtech:gt.metaitem.01:26032>, <gregtech:gt.metaitem.01:28032>, null],
[<Railcraft:part.plate>, <minecraft:gunpowder>, null]
[null, <Railcraft:part.plate>, null]]); // error line
What's wrong?
 

sgbros1

New Member
Jul 29, 2019
952
-6
0
On line 222 you missed a ";" at the end. But I don't understand what you're script is doing, as I have never seen them done like that (in a JSON-like format)
It ends in .recipes, which seems to me that it isn't even a MT script.