GregTech 6 MineTweaker

  • GregTech recipe support use a Reflection API.

    List all recipe variable you can find here

    Use

    Code
    MTUtilsGT.addCustomRecipe(String recipeVar, boolean aOptimize, long aEUt, long aDuration, long[] aChances, IItemStack[] aInputs, ILiquidStack aFluidInput, ILiquidStack aFluidOutput, IItemStack[] aOutputs);

    or

    Code
    MTUtilsGT.removeCustomRecipe(String recipeVar, IItemStack[] output);


    for add or remove recipe.

    Ex.


    Code
    import mods.MTUtilsGT;
    MTUtilsGT.addCustomRecipe("sShredderRecipes",true, 128, 128, [10000], 
    [<minecraft:stone>], null, null, [<minecraft:diamond_block>]);

    Add this recipe


    Download

  • What is the correct import line, I cannot get it to work.

    Code
    import mods.MTUtilsGT;

    According to the OP

    145 Mods isn't too many. 9 types of copper and 8 types of tin aren't too many. 3 types of coffee though?

    I know that you believe that you understood what you think I said, but I am not sure you realise that what you read was not what I meant.

    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(

    I see this too much.

  • Modlist from a recent crash (I reported it to the relevant modder):

    Display Spoiler

    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
    UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
    UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1558-1.7.10.jar)
    UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forge-1.7.10-10.13.4.1558-1.7.10.jar)
    UCHIJAAAA CodeChickenCore{1.0.4.29} [CodeChicken Core] (minecraft.jar)
    UCHIJAAAA NotEnoughItems{1.0.3.74} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.3.74-universal.jar)
    UCHIJAAAA Backpack{2.0.0} [Backpack] (backpack-2.0.0-1.7.x.jar)
    UCHIJAAAA BiblioCraft{1.11.4} [BiblioCraft] (BiblioCraft[v1.11.4][MC1.7.10].jar)
    UCHIJAAAA qmunitylib{1.0} [QmunityLib] (QmunityLib-1.7.10-0.1.114-universal.jar)
    UCHIJAAAA bluepower{0.2.962} [Blue Power] (BluePower-1.7.10-0.2.962-universal.jar)
    UCHIJAAAA ForgeMultipart{1.1.2.331} [Forge Multipart] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar)
    UCHIJAAAA gregapi{GT6-MC1710} [Greg-API] (gregtech_1.7.10-6.00.62.jar)
    UCHIJAAAA chisel{2.9.4.10} [Chisel] (Chisel-2.9.4.10.jar)
    UCHIJAAAA CarpentersBlocks{3.3.8_dev_r6} [Carpenter's Blocks] (Carpenter's Blocks v3.3.8_dev_r6 - MC 1.7.10.jar)
    UCHIJAAAA catwalks{2.0.1} [Catwalks Mod] (catwalks-2.0.1.jar)
    UCHIJAAAA catwalkmod{x.x.x} [Legacy Catwalk Compat] (catwalks-2.0.1.jar)
    UCHIJAAAA Enchiridion{1.3} [Enchiridion] (Enchiridion 2-1.7.10-2.0.2a.jar)
    UCHIJAAAA Enchiridion2{2.0.2a} [Enchiridion 2] (Enchiridion 2-1.7.10-2.0.2a.jar)
    UCHIJAAAA FastCraft{1.21} [FastCraft] (fastcraft-1.21.jar)
    UCHIJAAAA McMultipart{1.1.2.331} [Minecraft Multipart Plugin] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar)
    UCHIJAAAA IC2{2.2.807-experimental} [IndustrialCraft 2] (industrialcraft-2-2.2.807-experimental.jar)
    UCHIJAAAA IC2NuclearControl{2.3.1a-Butt} [Nuclear Control 2] (IC2NuclearControl-2.3.1a-Butt.jar)
    UCHIJAAAA gregtech{GT6-MC1710} [GregTech] (gregtech_1.7.10-6.00.62.jar)
    UCHIJAAAA gtextras{0.3.4} [GTExtras] (GTExtras-0.3.4-test.jar)
    UCHIJAAAA Ic2Nei{1.0} [IC2 Nei Plugin] (IC2 Nei Plugin Version 1.0.8.jar)
    UCHIJAAAA ihl{0.582} [IHL Tools & Machines for IC2V2] (ihl-tools_n_machines-0.582-1.7.10.jar)
    UCHIJAAAA ImmersiveEngineering{0.6.4} [Immersive Engineering] (ImmersiveEngineering-0.6.4.jar)
    UCHIJAAAA inventorytweaks{1.58-147-645ca10} [Inventory Tweaks] (InventoryTweaks-1.58-147.jar)
    UCHIJAAAA Waila{1.5.3} [Waila] (Waila-Mod-1.7.10.jar)
    UCHIJAAAA JABBA{1.2.1} [JABBA] (Jabba-1.2.1a_1.7.10.jar)
    UCHIJAAAA Magneticraft{0.5.1} [Magneticraft] (magneticraft-0.5.1.jar)
    UCHIJAAAA MapWriter{2.1.8} [MapWriter] (MapWriter-1.7.10-2.1.10.jar)
    UCHIJAAAA MineTweaker3{3.0.9B} [MineTweaker 3] (MineTweaker3-1.7.10-3.0.9C.jar)
    UCHIJAAAA modtweaker2{0.9.4} [Mod Tweaker 2] (ModTweaker2-0.9.4.jar)
    UCHIJAAAA MTUtils{1.0} [MineTweaker Utils] (MTUtils v1.3.0.jar)
    UCHIJAAAA StacksOnStacks{{$version}} [Stacks on Stacks!] (StacksOnStacks-1.7.10-2.4.2.jar)
    UCHIJAAAA ForgeMicroblock{1.1.2.331} [Forge Microblocks] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar)

    The line reporting the error from Minetweaker.log:
    ERROR: Error parsing IHL.zs:67 -- Invalid expression, last token: import


    Edit: I still haven't gotten this working, but i would also like a way of editing the material contents of an item via script.

  • Now, I am trying to use the fluid functionality and am getting this:

    Code
    a method available but none matches the parameters (string, bool, int, int, long[], minetweaker.item.IItemStack[], minetweaker.liquid.ILiquidStack[], minetweaker.liquid.ILiquidStack[], minetweaker.item.IIngredient[])

    The relevant parts of the script:

  • I don't know if the Addon already updated to that Change, when I mentioned that there is a Map of Recipe Maps, but it is actually "gt.recipe.coagulator".

    I think that the addon looks up the Recipe Maps every run, but there is a list on gist that hasn't updated.

    Edit: Greg, thanks, but "gt.recipe.coagulator" doesn't work either.