Minetweaker

  • 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

ProfessorMudkip

New Member
Jul 29, 2019
274
0
0
I'm using Minetweaker with the Direwolf20 pack, but I can't get it to work properly.

When I start the game, it says
Code:
/Fixes.cfg:16] or , expected

This is in main.cfg
Code:
# Add your commands here
include "Fixes.cfg";

This is in Fixes.cfg
Code:
recipes.remove(<241>);
recipes.remove(<241:4096>);
recipes.remove(<2520>);
recipes.remove(<25276>);
recipes.remove(<2003:2>);
recipes.remove(<14280>);
recipes.remove(<1477:2>);
recipes.remove(<3188:2>);
recipes.remove(<10269:1>);
recipes.remove(<4044>);
recipes.remove(<1406:1>);
recipes.remove(<1227>);
recipes.remove(<3468:3>);
recipes.addShaped(<3468:3>, [[30136,3467,30136],[3457,30136,3457],[30190,3468,30190]]);
recipes.remove(<3468:4>);
recipes.addShaped(<3468:4>, [[30084:4,30191,30084:4],[30190,3468,30190],[30084:4,30191,30084:4]]);
recipes.remove(<3468:1>);
recipes.addShaped(<3468:1>, [[3457,30187,3457],[3457,30187,3457],[30084:4,3468,30084:4]]);
 
Last edited:

Chaka

FTB Team
Mod Developer
Retired Staff
Dec 24, 2013
928
323
103
New Jersey
What is the technical problem, We need to know more. All you did here is pasted some stuff that is all fine, I see no technical problems here.
 

ProfessorMudkip

New Member
Jul 29, 2019
274
0
0
What is the technical problem, We need to know more. All you did here is pasted some stuff that is all fine, I see no technical problems here.

I presumed "/Fixes.cfg:16] or , expected" is the problem and someone would know what the problem is from that, my mistake.

The removed recipes are still craftable and the recipe changes do not change the recipe.
 

Chaka

FTB Team
Mod Developer
Retired Staff
Dec 24, 2013
928
323
103
New Jersey
You cant add PHP script into a mod config file. So just paste the stuff in the file.
PHP:
<?php
   
    include 'Fixes.cfg';
?>

And that would be the right code
 

Chaka

FTB Team
Mod Developer
Retired Staff
Dec 24, 2013
928
323
103
New Jersey
Hmm, Well I don't know. I'm sure that as long as things work fine it should be OK.
 

ProfessorMudkip

New Member
Jul 29, 2019
274
0
0
It works fine in a sense that the game isn't broken, but the recipe changes that I am attempting to do are not functional.

The error message that I originally posted:
Code:
/Fixes.cfg:16] or , expected
Seems to indicate that there is a problem at line 16. Line 16 is
Code:
recipes.addShaped(<3468:4>, [[30084:4,30191,30084:4],[30190,3468,30190],[30084:4,30191,30084:4]]);

But, I cannot discover the problem with that line. I used the minetweaker config in the Monster package as a template to ensure I was doing it properly.