[MineTweaker-Scripts & Mod-Configs] Let's Greg other mods!
-
-
What we really need is better Gregtech integration. Some Gt machines are not supported(Mixer...) and the fluid Import is not implemented too. I think we dont need an Editor because the Zen Script is very easy i think we need more mod support (Gregtech, Forestry etc) Btw i can explain thinks about changing scripts (missing mods etc.) too if there some Questions.
-
DreamMasterXXL
Unfortunately author if MineTweaker3 are currently busy updating ZenScript, but he stated that he will update all APIs (GregTech included) ones he finished updating his scripting engine. He is aware of a problem, though it is possible to make an addon for minetweaker to add new GregTech APIs to it.Update:
BTW if anyone intrested I have a minetweaker code for IC2 style crafting, so if you crafting an item which suppose to take a power from one of the items inside of crafting recipe, you can do that.Code
Display Moreimport minetweaker.data.IData; //Advanced Jetpack recipes.addShaped(GSJetpack, [[plateTitaniumD,circuitEliteD,plateTitaniumD], [GSBooster,GSLapPack.marked("core"),GSBooster], [plateTitaniumD,circuitAdvancedD,plateTitaniumD]], function(output, inputs, crafting){ var currentDamage = inputs.core.damage; var currentTag = inputs.core.tag as IData; var modedOutput = output.withDamage(currentDamage); modedOutput = modedOutput.withTag(currentTag); return modedOutput; });
Import always goes on top of a script, do not forget it, without it system doesn't work as you require to do casting.
All my recipes use a dictionary for easier reading and writting, but you can replace all ingredients in recipe to whatever.
A power item to inherent power from is marked as "core" using a marking function.I end up needing this code and making it for my GravSuite overhaul, feel free to use it. I have few more similar codes for many cases where I needed poorly documented features of minetweaker.
-
Thanks I added all scripts to my Github.
-
Here some harvestcraft changes:
Code
Display More# Harvestcraft recipes.remove(<harvestcraft:sink:*>); recipes.remove(<harvestcraft:market>); recipes.remove(<harvestcraft:saltItem>); recipes.remove(<harvestcraft:oven>); recipes.remove(<harvestcraft:mixingbowlItem>); recipes.remove(<harvestcraft:cuttingboardItem>); recipes.remove(<harvestcraft:mortarandpestleItem>); recipes.remove(<harvestcraft:bakewareItem>); recipes.remove(<harvestcraft:juicerItem>); mortar.add(<gregtech:gt.metatool.01:24>); cutboard.add(<gregtech:gt.metatool.01:34>); bowl.add(<minecraft:bowl>); bake.add(<gregtech:gt.metatool.01:46>); juice.add(<gregtech:gt.metatool.01:14>);
But I'm still looking for a pot/skillet thingy in greg meta tools but yeah for now just half of the crafting tools replaced.
-
I don't know that you can adding things like you did. We have harvestcraft too so i will check that.
-
I forgot the vars sorry It should look like this:
Code
Display More// VARS val mortar = <ore:toolMortarandpestle>; val cutboard = <ore:toolCuttingboard>; val bowl = <ore:toolMixingbowl>; val bake = <ore:toolBakeware>; val juice = <ore:toolJuicer>; # Harvestcraft recipes.remove(<harvestcraft:sink:*>); recipes.remove(<harvestcraft:market>); recipes.remove(<harvestcraft:saltItem>); recipes.remove(<harvestcraft:oven>); recipes.remove(<harvestcraft:mixingbowlItem>); recipes.remove(<harvestcraft:cuttingboardItem>); recipes.remove(<harvestcraft:mortarandpestleItem>); recipes.remove(<harvestcraft:bakewareItem>); recipes.remove(<harvestcraft:juicerItem>); mortar.add(<gregtech:gt.metatool.01:24>); cutboard.add(<gregtech:gt.metatool.01:34>); bowl.add(<minecraft:bowl>); bake.add(<gregtech:gt.metatool.01:46>); juice.add(<gregtech:gt.metatool.01:14>);
EDIT: and it does work, I play with it but we still need a Skillet, a Pot and a Saucepan as tool from gregs meta tool crafting thingy
The mechanic is that I add greg tools an aditional oredict tag and you can still craft with it and it does use durability That's the idea behind that -
Did some work on Balkon's weapon mod (Greg added support for some weapons, but not all of them so I just did it :D)
Code
Display More// BY Lefty // IMPORT import mods.gregtech.Assembler; // HAMMERS recipes.remove(<weaponmod:warhammer.wood>); recipes.addShaped(<weaponmod:warhammer.wood>, [[<ore:logWood>, <ore:logWood>, <ore:logWood>], [<ore:craftingToolFile>, <ore:stickWood>, <ore:craftingToolHardHammer>], [null, <ore:stickWood>, null]]); recipes.remove(<weaponmod:warhammer.stone>); recipes.addShaped(<weaponmod:warhammer.stone>, [[<ore:stone>, <ore:stone>, <ore:stone>], [<ore:craftingToolFile>, <ore:stickWood>, <ore:craftingToolHardHammer>], [null, <ore:stickWood>, null]]); recipes.remove(<weaponmod:warhammer.gold>); recipes.addShaped(<weaponmod:warhammer.gold>, [[<ore:plateDenseGold>, <ore:blockGold>, <ore:plateDenseGold>], [<ore:craftingToolFile>, <ore:stickWood>, <ore:craftingToolHardHammer>], [null, <ore:stickWood>, null]]); recipes.remove(<weaponmod:warhammer.iron>); recipes.addShaped(<weaponmod:warhammer.iron>, [[<ore:plateDenseIron>, <ore:blockIron>, <ore:plateDenseIron>], [<ore:craftingToolFile>, <ore:stickWood>, <ore:craftingToolHardHammer>], [null, <ore:stickWood>, null]]); recipes.remove(<weaponmod:warhammer.diamond>); recipes.addShaped(<weaponmod:warhammer.diamond>, [[<ore:plateDiamond>, <ore:blockDiamond>, <ore:plateDiamond>], [<ore:craftingToolFile>, <ore:stickWood>, <ore:craftingToolHardHammer>], [null, <ore:gemFlawedDiamond>, null]]); // KATANAS recipes.remove(<weaponmod:katana.gold>); recipes.addShaped(<weaponmod:katana.gold>, [[null, null, <ore:toolHeadSwordGold>], [<ore:craftingToolFile>, <ore:screwWood>, <ore:craftingToolHardHammer>], [null, null, null]]); recipes.remove(<weaponmod:katana.iron>); recipes.addShaped(<weaponmod:katana.iron>, [[null, null, <ore:toolHeadSwordIron>], [<ore:craftingToolFile>, <ore:screwWood>, <ore:craftingToolHardHammer>], [null, null, null]]); recipes.remove(<weaponmod:katana.diamond>); recipes.addShaped(<weaponmod:katana.diamond>, [[null, null, <ore:toolHeadSwordDiamond>], [<ore:craftingToolFile>, <ore:screwWood>, <ore:craftingToolHardHammer>], [<ore:gemFlawlessDiamond>, null, null]]); // BATTLEAXES recipes.remove(<weaponmod:battleaxe.diamond>); recipes.addShaped(<weaponmod:battleaxe.diamond>, [[<ore:toolHeadAxeDiamond>, <ore:screwWood>, <ore:toolHeadAxeDiamond>], [<ore:craftingToolFile>, <ore:stickLongWood>, <ore:craftingToolHardHammer>], [null, null, null]]); // KNIFE recipes.remove(<weaponmod:knife.diamond>); recipes.addShaped(<weaponmod:knife.diamond>, [[<ore:plateDiamond>, <ore:craftingToolFile>, null], [<ore:screwWood>, <ore:craftingToolHardHammer>, null], [null, null, null]]); // HALBERDS recipes.remove(<weaponmod:halberd.wood>); recipes.addShaped(<weaponmod:halberd.wood>, [[null, <minecraft:wooden_axe>, <weaponmod:knife.wood>], [<ore:craftingToolFile>, <ore:stickLongWood>, <ore:craftingToolHardHammer>], [<ore:stickLongWood>, null, null]]); recipes.remove(<weaponmod:halberd.stone>); recipes.addShaped(<weaponmod:halberd.stone>, [[null, <minecraft:stone_axe>, <weaponmod:knife.stone>], [<ore:craftingToolFile>, <ore:stickLongWood>, <ore:craftingToolHardHammer>], [<ore:stickLongWood>, null, null]]); recipes.remove(<weaponmod:halberd.gold>); recipes.addShaped(<weaponmod:halberd.gold>, [[null, <ore:toolHeadAxeGold>, <weaponmod:knife.gold>], [<ore:craftingToolFile>, <ore:stickLongWood>, <ore:craftingToolHardHammer>], [<ore:stickLongWood>, null, null]]); recipes.remove(<weaponmod:halberd.iron>); recipes.addShaped(<weaponmod:halberd.iron>, [[null, <ore:toolHeadAxeIron>, <weaponmod:knife.iron>], [<ore:craftingToolFile>, <ore:stickLongWood>, <ore:craftingToolHardHammer>], [<ore:stickLongWood>, null, null]]); recipes.remove(<weaponmod:halberd.diamond>); recipes.addShaped(<weaponmod:halberd.diamond>, [[null, <ore:toolHeadAxeDiamond>, <weaponmod:knife.diamond>], [<ore:craftingToolFile>, <ore:stickLongWood>, <ore:craftingToolHardHammer>], [<ore:stickLongWood>, null, null]]); // SPEAR recipes.remove(<weaponmod:spear.diamond>); recipes.addShaped(<weaponmod:spear.diamond>, [[null, <ore:stickWood>, null], [<ore:craftingToolFile>, <ore:stickWood>, null], [<ore:plateDiamond>, <ore:gemDiamond>, <ore:craftingToolHardHammer>]]); // FLAILS (NOT DONE YET) recipes.remove(<weaponmod:flail.wood>); recipes.remove(<weaponmod:flail.stone>); recipes.remove(<weaponmod:flail.gold>); recipes.remove(<weaponmod:flail.iron>); recipes.remove(<weaponmod:flail.diamond>); // BOOMERANGS recipes.remove(<weaponmod:boomerang.wood>); Assembler.addRecipe(<weaponmod:boomerang.wood>, <minecraft:wooden_slab>, <gregtech:gt.metaitem.01:17889> * 3, 200, 32); recipes.remove(<weaponmod:boomerang.stone>); Assembler.addRecipe(<weaponmod:boomerang.stone>, <minecraft:stone_slab>, <gregtech:gt.metaitem.01:17889> * 3, 200, 32); recipes.remove(<weaponmod:boomerang.gold>); Assembler.addRecipe(<weaponmod:boomerang.gold>, <gregtech:gt.metaitem.01:17086>, <gregtech:gt.metaitem.01:17889> * 3, 200, 32); recipes.remove(<weaponmod:boomerang.iron>); Assembler.addRecipe(<weaponmod:boomerang.iron>, <Railcraft:part.plate>, <gregtech:gt.metaitem.01:17889> * 3, 200, 32); recipes.remove(<weaponmod:boomerang.diamond>); Assembler.addRecipe(<weaponmod:boomerang.diamond>, <gregtech:gt.metaitem.01:17500>, <gregtech:gt.metaitem.01:17889> * 3, 200, 32); // MUSKET & BLUNDERBUSS BARRELS recipes.remove(<weaponmod:musket-ironpart>); recipes.addShaped(<weaponmod:musket-ironpart>, [[<ore:pipeTinySteel>, <ore:springSmallSteel>, <minecraft:flint_and_steel>], [<ore:craftingToolScrewdriver>, <ore:ringSteel>, <ore:screwSteel>], [null, <ore:craftingToolSoftHammer>, <ore:craftingToolFile>]]); recipes.remove(<weaponmod:blunder-ironpart>); recipes.addShaped(<weaponmod:blunder-ironpart>, [[<ore:pipeTinySteel>, <ore:springSteel>, <minecraft:flint_and_steel>], [<ore:craftingToolScrewdriver>, <ore:ringSteel>, <ore:screwSteel>], [null, <ore:craftingToolSoftHammer>, <ore:craftingToolFile>]]); // AMMUNITION recipes.remove(<weaponmod:bolt>); Assembler.addRecipe(<weaponmod:bolt> * 4, <gregtech:gt.metaitem.02:22032>, <minecraft:feather> * 4, 20, 32); Assembler.addRecipe(<weaponmod:bolt> * 8, <gregtech:gt.metaitem.02:22305>, <minecraft:feather> * 4, 20, 32); recipes.remove(<weaponmod:shot>); Assembler.addRecipe(<weaponmod:shot> * 4, <minecraft:gunpowder> * 2, <minecraft:gravel>, 20, 32); recipes.remove(<weaponmod:bullet>); Assembler.addRecipe(<weaponmod:bullet> * 4, <minecraft:gunpowder> * 2, <gregtech:gt.metaitem.01:29032>, 20, 32); recipes.remove(<weaponmod:cannonball>); Assembler.addRecipe(<weaponmod:cannonball> * 8, <minecraft:gunpowder> * 4, <IC2:itemPartCoalBall>, 20, 32);
-
Thanks Lefty i add all to my Github.
-
Although it isn't really GT, can someone help me with my Minetweaker code ? I can't figure out what is wrong :
#Nerf Project.Red pipes
var diamond_chipset = <BuildCraft|Silicon:redstoneChipset:3>;
var advancedlogi_pipe = <ProjRed|Transportation:projectred.transportation.pipe:0>;recipes.remove(advancedlogi_pipe);
recipes.addShaped(advancedlogi_pipe, [[diamond_chipset, sorter, diamond_chipset], [logi_pipe, Mekanism:ControlCircuit:2, logi_pipe], [diamond_chipset, sorter, diamond_chipset]]);Edit : I forgot <> , silly me
RE EDIT : You ninjad me
-
you define there 2 vars but you're using more like sorter, and logi_pipe and there should be <> on the Mekanism thingy like <Mekanism:ControlCircuit:2>
if you define those vars in the file, then it should be okay and the error could be the missing "<>" on the Mekanism thingy but if you don't define logi_pipe and sorter in this file, this could be an error too.
-
But thx for the help, I will remember that, I don't forgive, I don't forget
-
Another question : How do I remove all the Rebar recipes from the Rolling Machine, I typed :
mods.railcraft.Rolling.removeRecipe(rebar);
To remove all the recipes, only works on the steel one, then I tried :
mods.railcraft.Rolling.removeRecipe(rebar * 4);
Only removes the iron recipe, then :
mods.railcraft.Rolling.removeRecipe(rebar * 8);
Only removes the steel recipe, then :
mods.railcraft.Rolling.removeRecipe(rebar * 4);
mods.railcraft.Rolling.removeRecipe(rebar * 8);Together, but doesn't remove iron one, help
mods.railcraft.Rolling.addShaped(rebar * 32, [[null, null, alloy], [null, alloy, null], [null, null, alloy]]);
This is the last part of the code, should add advanced alloy as a recipe.
But for now, the question is, how do I remove it -
Try the first one with just one Output and copypaste it until all Recipes are gone?
-
Gonna try, thx Greg
Edit : Doesn't work, I get a null exception error, any other suggestions
-
Wait, now I cant even reload it, what have I done now
-
For some reasons, I get a null point exception now, help me :c
It started when I tried your proposition Greg, can a doube remove recipe cause that ?
Restarted minecraft, every works now, thx Greg
-
Last thing : This part ( the addShaped part ) doesn't work, everything seems fine though, and Minetweaker doesn't tell me there's an error :
mods.railcraft.Rolling.removeRecipe(rebar * 1);
mods.railcraft.Rolling.removeRecipe(rebar * 1);
mods.railcraft.Rolling.removeRecipe(rebar * 1);
mods.railcraft.Rolling.removeRecipe(rebar * 1);
mods.railcraft.Rolling.removeRecipe(rebar * 1);
mods.railcraft.Rolling.addShaped(rebar * 32, [[null, null, <IC2:itemPartAlloy>], [null, <IC2:itemPartAlloy>, null], [null, null, <IC2:itemPartAlloy>]]);Edit : For some reasons, when I try to add a recipe, I crash, well great, and I have no idea what cause this, if anyone is interested to see what is the problem, here is the crash log : http://paste.ee/p/hXBIT
-
Guys ? Halp/Whelp ? XD
-
Use my script on Github it works perfect:
Code// --- Rebar --- mods.railcraft.Rolling.removeRecipe(<Railcraft:part.rebar> * 2); mods.railcraft.Rolling.removeRecipe(<Railcraft:part.rebar> * 4); mods.railcraft.Rolling.removeRecipe(<Railcraft:part.rebar> * 4); mods.railcraft.Rolling.removeRecipe(<Railcraft:part.rebar> * 8); mods.railcraft.Rolling.removeRecipe(<Railcraft:part.rebar> * 8); mods.railcraft.Rolling.removeRecipe(<Railcraft:part.rebar> * 16); mods.railcraft.Rolling.removeRecipe(<Railcraft:part.rebar> * 16); mods.railcraft.Rolling.removeRecipe(<Railcraft:part.rebar> * 48);