Help With 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

1SDAN

New Member
Jul 29, 2019
1,189
-15
0
Hello again, I'm working on a little tech tree adjustment in my mod pack by forcing glass to be produced with the smeltery only. It may not seem like much of a change but it really changes the balance of my pack in the end. I followed the wiki page part by part and I still can't figure out why my code isn't working. This is what I have in MineTweaker's main.cfg:

Code:
furnace.removeRecipe(tile.glass);

sbrick = item.tconstruct.Materials.withDamage(2);
cbucket = iguanatweakstconstruct:clayBucketFired;
recipes.addShaped(tile.LavaTank, [[sbrick, sbrick, sbrick], [sbrick, cbucket, sbrick], [sbrick, sbrick, sbrick]]);

As you can see I'm adding a second recipe for the Lava Tank also which uses a clay bucket instead of glass (not quite sure if a bucket is right, just going with what seems right)

I don't know if it's the bucket's odd name or what but none of this is working in game. Any help?
 

YX33A

New Member
Jul 29, 2019
3,764
1
0
You could use the command(I forget the exact name of it) to check the name for the clay bucket it uses internally. Assuming it has a internal name assigned, if not, you would either have to assign it one and use that(perhaps not as ideal) or just use the itemID itself instead of using the name(even less ideal if the ID changes).
 

Golrith

Over-Achiever
Trusted User
Nov 11, 2012
3,834
2,137
248
Quite often an item name will not work within minetweaker, so try swapping the name for the item ID instead.
 

1SDAN

New Member
Jul 29, 2019
1,189
-15
0
So, the Glass recipe now works thanks to @Golrith. But now the Lava Tank recipe isn't working.

Code:
Code:
furnace.removeRecipe(tile.glass);

sbrick = item.tconstruct.Materials.withDamage(2);
cbucket = <25967>;
recipes.addShaped(tile.LavaTank, [[sbrick, sbrick, sbrick], [sbrick, cbucket, sbrick], [sbrick, sbrick, sbrick]]);

And the message when I enter the game:

Code:
/main.cfg:5each item in a shaped recipe must be a valid item stack pattern or null
 

Golrith

Over-Achiever
Trusted User
Nov 11, 2012
3,834
2,137
248
Try referring to the Seared Brick by using item ID too. I know if the past if an item name contains multiple fullstops, it would always cause me grief.
I tend to use ItemIDs all the time now, instead of names.
 

1SDAN

New Member
Jul 29, 2019
1,189
-15
0
sbrick = <14276:2>; right?

Somehow the tank is still the only recipe that doesn't work

14276 is what my cnfig set the brick ID to
 

Golrith

Over-Achiever
Trusted User
Nov 11, 2012
3,834
2,137
248
sbrick = <14276:2>; right?

Somehow the tank is still the only recipe that doesn't work

14276 is what my cnfig set the brick ID to
Correct. Try changing "tile.LavaTank" to the actual ID too. It should be fine as is, but doesn't hurt to use the ID.
 

1SDAN

New Member
Jul 29, 2019
1,189
-15
0
Okay will try now

BTW, I like using Ore Dictionary Names if I can, I find it helps in a wide variety of ways. So when I can use it for what I want, I use it

EDIT: Thank you very much, that fixed it.
 
Last edited:

1SDAN

New Member
Jul 29, 2019
1,189
-15
0
For those who are curious, here is my current code. It requires Pam's Harvest Craft, Hunger Overhaul, Tinker's Construct and TCon Iguana Tweaks, it makes glass bottles cost more and gives them a much greater use in crafting foods. Also, it makes glass require a smeltery and gives a new recipe to the lava tank for said smeltery.

While it may seem like a serious hindrance to the early game, it adds a serious risk/reward on whether or not to eat your fruits while also improving the tech tree's diversity.

In the mod pack I am making, I also use Enviromine, Vanilla Iguana Tweaks (With an 16 8 8 on stack sizes and a x5 hardness multiplier) just as a heads up.

I guess what I'm saying is feel free to test out my code, it may seem simple but it really improves the early game for me.

main.cfg:
Code:
{
        include "glassTweak.cfg";
        include "juicesTweak.cfg";
}

glassTweak.cfg:
Code:
gls = oreDict.glass;
btl = item.glassBottle;
sbrick = <14276:2>;
cbucket = <25967>;
log = oreDict.logWood;

recipes.remove(btl);

furnace.removeRecipe(tile.glass);

recipes.addShaped(btl * 3, [[null, log, null], [gls, null, gls], [gls, gls, gls]]);

recipes.addShaped(<1473>, [[sbrick, sbrick, sbrick], [sbrick, cbucket, sbrick], [sbrick, sbrick, sbrick]]);

juicesTweak.cfg:
Code:
apj = <15273>;
mlj = (<15279>);
crj = (<15281>);
sbj = (<15564>);
gpj = (<15611>);
bbj = (<15814>);
chj = (<15833>);
ppj = (<16108>);
sfj = (<16111>);
orj = (<16129>);
pcj = (<16133>);
lmj = (<16137>);
mgj = (<16141>);
pmj = (<16144>);
bkj = (<16174>);
rsj = (<16180>);
kwj = (<16186>);
cnj = (<16194>);
cfj = (<16198>);
plj = (<16328>);
prj = (<16329>);
lnj = (<15783>);
fpj = (<16208>);

ccm = (<16125>);
pna = (<16211>);
mls = (<15280>);
sbs = (<15561>);
lns = (<15786>);
bbs = (<15811>);
chs = (<15836>);
pps = (<16109>);
sfs = (<16112>);
bns = (<16123>);
ojs = (<16131>);
pcs = (<16135>);
lms = (<16139>);
mgs = (<16142>);
pms = (<16145>);
bks = (<16176>);
rss = (<16182>);
kws = (<16187>);

app = (item.apple);
mln = (item.melon);
crt = (item.carrots);
sbr = (oreDict.cropStrawberry);
jcr = (oreDict.toolJuicer);
grp = (oreDict.cropGrape);
bbr = (oreDict.cropBlueberry);
chr = (oreDict.cropCherry);
ppy = (oreDict.cropPapaya);
stf = (oreDict.cropStarfruit);
org = (oreDict.cropOrange);
pch = (oreDict.cropPeach);
lim = (oreDict.cropLime);
mng = (oreDict.cropMango);
pmg = (oreDict.cropPomegranate);
bkb = (oreDict.cropBlackberry);
rsp = (oreDict.cropRaspberry);
kwi = (oreDict.cropKiwi);
cnb = (oreDict.cropCranberry);
cft = (oreDict.cropCactusfruit);
plm = (oreDict.cropPlum);
per = (oreDict.cropPear);
lmn = (oreDict.cropLemon);
bnn = (oreDict.cropBanana);
ccn = (oreDict.cropCoconut);
pin = (oreDict.cropPineapple);

ice = tile.ice;
sgr = item.sugar;

recipes.remove(mls);
recipes.remove(sbs);
recipes.remove(lns);
recipes.remove(bbs);
recipes.remove(chs);
recipes.remove(pps);
recipes.remove(sfs);
recipes.remove(bns);
recipes.remove(ojs);
recipes.remove(pcs);
recipes.remove(lms);
recipes.remove(mgs);
recipes.remove(pms);
recipes.remove(bks);
recipes.remove(rss);
recipes.remove(kws);
recipes.remove(ccm);
recipes.remove(pna);
recipes.remove(fpj);
recipes.remove(apj);
recipes.remove(mlj);
recipes.remove(crj);
recipes.remove(sbj);
recipes.remove(gpj);
recipes.remove(bbj);
recipes.remove(chj);
recipes.remove(ppj);
recipes.remove(sfj);
recipes.remove(orj);
recipes.remove(pcj);
recipes.remove(lmj);
recipes.remove(mgj);
recipes.remove(pmj);
recipes.remove(bkj);
recipes.remove(rsj);
recipes.remove(kwj);
recipes.remove(cnj);
recipes.remove(cfj);
recipes.remove(plj);
recipes.remove(prj);
recipes.remove(lnj);

recipes.addShapeless(kws, [kwi, btl, jcr, ice]);
recipes.addShapeless(rss, [rsp, btl, jcr, ice]);
recipes.addShapeless(bks, [bkb, btl, jcr, ice]);
recipes.addShapeless(pms, [pmg, btl, jcr, ice]);
recipes.addShapeless(mgs, [mng, btl, jcr, ice]);
recipes.addShapeless(lms, [lim, btl, jcr, ice]);
recipes.addShapeless(mls, [mln, btl, jcr, ice]);
recipes.addShapeless(sbs, [sbr, btl, jcr, ice]);
recipes.addShapeless(lns, [lmn, btl, jcr, ice]);
recipes.addShapeless(bbs, [bbr, btl, jcr, ice]);
recipes.addShapeless(chs, [chr, btl, jcr, ice]);
recipes.addShapeless(pps, [ppy, btl, jcr, ice]);
recipes.addShapeless(sfs, [stf, btl, jcr, ice]);
recipes.addShapeless(bns, [bnn, btl, jcr, ice]);
recipes.addShapeless(ojs, [org, btl, jcr, ice]);
recipes.addShapeless(pcs, [pch, btl, jcr, ice]);

recipes.addShapeless(ccm, [ccn, btl, jcr]);
recipes.addShapeless(pna, [ccn, pin, btl, jcr]);
recipes.addShapeless(fpj, [sgr, btl, jcr, oreDict.listAllFruit]);
recipes.addShapeless(lnj, [lmn, btl, jcr]);
recipes.addShapeless(prj, [per, btl, jcr]);
recipes.addShapeless(plj, [plm, btl, jcr]);
recipes.addShapeless(cfj, [cft, btl, jcr]);
recipes.addShapeless(cnj, [cnb, btl, jcr]);
recipes.addShapeless(kwj, [kwi, btl, jcr]);
recipes.addShapeless(rsj, [rsp, btl, jcr]);
recipes.addShapeless(bkj, [bkb, btl, jcr]);
recipes.addShapeless(pmj, [pmg, btl, jcr]);
recipes.addShapeless(mgj, [mng, btl, jcr]);
recipes.addShapeless(lmj, [lim, btl, jcr]);
recipes.addShapeless(pcj, [pch, btl, jcr]);
recipes.addShapeless(orj, [org, btl, jcr]);
recipes.addShapeless(sfj, [stf, btl, jcr]);
recipes.addShapeless(ppj, [ppy, btl, jcr]);
recipes.addShapeless(chj, [chr, btl, jcr]);
recipes.addShapeless(bbj, [bbr, btl, jcr]);
recipes.addShapeless(gpj, [grp, btl, jcr]);
recipes.addShapeless(sbr, [sbr, btl, jcr]);
recipes.addShapeless(crj, [crt, btl, jcr]);
recipes.addShapeless(mlj, [mln, btl, jcr]);
recipes.addShapeless(apj, [app, btl, jcr]);
 
Last edited:

Golrith

Over-Achiever
Trusted User
Nov 11, 2012
3,834
2,137
248
Okay will try now

BTW, I like using Ore Dictionary Names if I can, I find it helps in a wide variety of ways. So when I can use it for what I want, I use it

EDIT: Thank you very much, that fixed it.
Same, I use either oreDict entries, or item IDs. Very rarely the actual item names, as most of the time they cause problems.