MineTweaker/ModTweaker - A help and suggestions thread.

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

The_Revanchist

New Member
Jul 29, 2019
64
0
0
I was wondering if you could help me with this error "im using the recipe maker so i dont have to take a ton of time coding so its telling me this ingame"

ERROR: Error parsing \scripts\crafting.zs:52 --] or , expected

And on line 52 its

recipes.removeShaped(<Thaumcraft:ItemThaumometer>, [[null, <Thaumcraft:ItemShard> <Thaumcraft:ItemShard:1> <Thaumcraft:ItemShard:2> <Thaumcraft:ItemShard:3> <Thaumcraft:ItemShard:4> <Thaumcraft:ItemShard5>, null], [<terrafirmacraft:item.Gold Ingot>, <ore:blockGlassColorless>, <terrafirmacraft:item.Gold Ingot>], [null, <Thaumcraft:ItemShard> <Thaumcraft:ItemShard:1> <Thaumcraft:ItemShard:2> <Thaumcraft:ItemShard:3> <Thaumcraft:ItemShard:4> <Thaumcraft:ItemShard5>, null]]);

This was my failed attempt at trying to make a recipe with a variable of different shards, so i deleted it and this happens

I'd also like to add that the error happens with every recipe i try to add/remove now
 
Last edited:

1SDAN

New Member
Jul 29, 2019
1,189
-15
0
I was wondering if you could help me with this error "im using the recipe maker so i dont have to take a ton of time coding so its telling me this ingame"

ERROR: Error parsing \scripts\crafting.zs:52 --] or , expected

And on line 52 its

recipes.removeShaped(<Thaumcraft:ItemThaumometer>, [[null, <Thaumcraft:ItemShard> <Thaumcraft:ItemShard:1> <Thaumcraft:ItemShard:2> <Thaumcraft:ItemShard:3> <Thaumcraft:ItemShard:4> <Thaumcraft:ItemShard5>, null], [<terrafirmacraft:item.Gold Ingot>, <ore:blockGlassColorless>, <terrafirmacraft:item.Gold Ingot>], [null, <Thaumcraft:ItemShard> <Thaumcraft:ItemShard:1> <Thaumcraft:ItemShard:2> <Thaumcraft:ItemShard:3> <Thaumcraft:ItemShard:4> <Thaumcraft:ItemShard5>, null]]);

This was my failed attempt at trying to make a recipe with a variable of different shards, so i deleted it and this happens

I'd also like to add that the error happens with every recipe i try to add/remove now

Too lazy to read it, but usually when I get that error it's caused by me skipping a bracket close or ending "," in a previous line. Just keep that in mind...

Again, I'm not saying that's definitely the cause, because I'm not up to reading ATM
 

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
I was wondering if you could help me with this error "im using the recipe maker so i dont have to take a ton of time coding so its telling me this ingame"

ERROR: Error parsing \scripts\crafting.zs:52 --] or , expected

And on line 52 its

recipes.removeShaped(<Thaumcraft:ItemThaumometer>, [[null, <Thaumcraft:ItemShard> <Thaumcraft:ItemShard:1> <Thaumcraft:ItemShard:2> <Thaumcraft:ItemShard:3> <Thaumcraft:ItemShard:4> <Thaumcraft:ItemShard5>, null], [<terrafirmacraft:item.Gold Ingot>, <ore:blockGlassColorless>, <terrafirmacraft:item.Gold Ingot>], [null, <Thaumcraft:ItemShard> <Thaumcraft:ItemShard:1> <Thaumcraft:ItemShard:2> <Thaumcraft:ItemShard:3> <Thaumcraft:ItemShard:4> <Thaumcraft:ItemShard5>, null]]);

This was my failed attempt at trying to make a recipe with a variable of different shards, so i deleted it and this happens

I'd also like to add that the error happens with every recipe i try to add/remove now
Well just looking at it you know it is wrong
[null, <Thaumcraft:ItemShard> <Thaumcraft:ItemShard:1> <Thaumcraft:ItemShard:2> <Thaumcraft:ItemShard:3> <Thaumcraft:ItemShard:4> <Thaumcraft:ItemShard5>, null]... there's too many items there.
Just do:
recipes.remove(<Thaumcraft:ItemThaumometer>);
and then add the recipe you want somewhere later on in the script.
 

1SDAN

New Member
Jul 29, 2019
1,189
-15
0
Well just looking at it you know it is wrong
[null, <Thaumcraft:ItemShard> <Thaumcraft:ItemShard:1> <Thaumcraft:ItemShard:2> <Thaumcraft:ItemShard:3> <Thaumcraft:ItemShard:4> <Thaumcraft:ItemShard5>, null]... there's too many items there.
Just do:
recipes.remove(<Thaumcraft:ItemThaumometer>);
and then add the recipe you want somewhere later on in the script.
You ninja'd me so hard...
 

The_Revanchist

New Member
Jul 29, 2019
64
0
0
What I'm trying to do is make it compatible with TFC, but at the same time i want it to be able to use all the shards like it normally does and I WAS able to get it to work like that once.
 

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
Why not do this:
Code:
val glass = (<ore:blockGlass>);
val gold = (<terrafirmacraft:item.Gold Ingot>);
val newShards = (<ore:NewShards>);
newShards.add(<Thaumcraft:ItemShard> );
newShards.add(<Thaumcraft:ItemShard:1> );
newShards.add(<Thaumcraft:ItemShard:2> );
newShards.add(<Thaumcraft:ItemShard:3> );
newShards.add(<Thaumcraft:ItemShard:4> );
newShards.add(<Thaumcraft:ItemShard:5> );

recipes.addShaped(<Thaumcraft:ItemThaumometer>,[[null,newShards,null],[gold,glass,gold],[null,newShards,null]]);
That SHOULD work properly :)
 

goreae

Ultimate Murderous Fiend
Nov 27, 2012
1,784
2,649
273
Raxacoricofallapatorius
Why not do this:
Code:
val glass = (<ore:blockGlass>);
val gold = (<terrafirmacraft:item.Gold Ingot>);
val newShards = (<ore:NewShards>);
newShards.add(<Thaumcraft:ItemShard> );
newShards.add(<Thaumcraft:ItemShard:1> );
newShards.add(<Thaumcraft:ItemShard:2> );
newShards.add(<Thaumcraft:ItemShard:3> );
newShards.add(<Thaumcraft:ItemShard:4> );
newShards.add(<Thaumcraft:ItemShard:5> );

recipes.addShaped(<Thaumcraft:ItemThaumometer>,[[null,newShards,null],[gold,glass,gold],[null,newShards,null]]);
That SHOULD work properly :)
Naw, that's way too much work. Why not just do

Code:
val glass = (<ore:blockGlass>);
val gold = (<terrafirmacraft:item.Gold Ingot>);
val newShards = (<Thaumcraft:ItemShard:*>);

recipes.addShaped(<Thaumcraft:ItemThaumometer>,[[null,newShards,null],[gold,glass,gold],[null,newShards,null]]);

Remember, the * means wildcard. Any metas of Thaumcraft:ItemShard will be usable here.
 

jordsta95

New Member
Jul 29, 2019
5,056
-4
1
Naw, that's way too much work. Why not just do

Code:
val glass = (<ore:blockGlass>);
val gold = (<terrafirmacraft:item.Gold Ingot>);
val newShards = (<Thaumcraft:ItemShard:*>);

recipes.addShaped(<Thaumcraft:ItemThaumometer>,[[null,newShards,null],[gold,glass,gold],[null,newShards,null]]);

Remember, the * means wildcard. Any metas of Thaumcraft:ItemShard will be usable here.
Ahh, I totally forgot about that... BUT! If they wanted to add Forbidden Magic (for example) and use the shards from that too, then they would be able to just add them to the oreDict.
 

The_Revanchist

New Member
Jul 29, 2019
64
0
0
Its gonna have TFC, BC conversion+Buildcraft*of course*, Railcraft*i have to manually edit that too lol, and thaumcraft. Thats why i needed to the MineTweaker to edit recipes.
its gonna be a pain to edit the other stuff though..... i hope to eventually make an actual mod for it but a modpack will do for now!


Btw, good idea! i should add forbidden magic heh heh....... maybe i should add blood magic -.-
 

PhoenixSmith

New Member
Jul 29, 2019
649
-8
1
Its gonna have TFC, BC conversion+Buildcraft*of course*, Railcraft*i have to manually edit that too lol, and thaumcraft. Thats why i needed to the MineTweaker to edit recipes.
its gonna be a pain to edit the other stuff though..... i hope to eventually make an actual mod for it but a modpack will do for now!


Btw, good idea! i should add forbidden magic heh heh....... maybe i should add blood magic -.-
I feel your pain! I too am making a TFC pack, but editing chisel, ExtraUtils, Practilaties, etc. :p Get used to the terrafirmacraft:item.******** format. :) It helps to memorize how
Biox did his naming early.