You are not logged in.

IC2 Experimental builds (jenkins):
v2.0/2.1/2.2 / 2.3 / 2.5 / 2.6 (For Minecraft 1.6.4/1.7.2/1.7.10 / 1.8.9 / 1.9.4 / 1.10)
IndustrialCraft² recent version: v1.117! (For Minecraft 1.5.2 → topic)

Dear visitor, welcome to IC² Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, November 22nd 2015, 8:38pm

GregTech 6 MineTweaker

GregTech recipe support use a Reflection API.

List all recipe variable you can find here

Use

Source code

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


or

Source code

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

for add or remove recipe.

Ex.


Source code

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


Add this recipe



Download

GregoriusT

inactive IC² Dev but still active GT Dev

  • "GregoriusT" is male
  • Germany

Posts: 11,190

Location: Wherever I want to be (most of the time)

  • Send private message

2

Sunday, November 22nd 2015, 8:49pm

Source code

1
MTUtilsGT.addCustomRecipe("sShredderRecipes",true, 128, 128, [10000], [], null, null, []);
You do know that there is a HashMap that contains all RecipeMaps? No Reflection needed to access the Field with the RecipeMap.
I don't say, your "insert whatever here" is bad, I'm only showing possibilities for making it better.

GregTech Website

Patreon really helps me out, so if you consider funding the development of GT, so I might be able to do it full time, why not?

GregTech 6, the Main Thread, Bug Reports go here too.

I'm also reachable on #gt-dev on irc.esper.net, if you don't want to make a Forum account to contact me, for example. ;)
(I'm there almost every day, but only when I'm at my own computer, and yes you can drop bugs there too)

DreamMasterXXL

Mod Tweaker

  • "DreamMasterXXL" is male
  • Germany

Posts: 596

Location: Germany

  • Send private message

3

Sunday, November 22nd 2015, 9:28pm

Give me a bit time i will do a Gt 6 GTTweaker version for Minetweaker.

4

Monday, November 23rd 2015, 4:15am

What for? It's already done.

5

Monday, November 23rd 2015, 4:23am

Source code

1
MTUtilsGT.addCustomRecipe("sShredderRecipes",true, 128, 128, [10000], [], null, null, []);
You do know that there is a HashMap that contains all RecipeMaps? No Reflection needed to access the Field with the RecipeMap.
Oh lol. I change it. Sorry.Not noticed

DreamMasterXXL

Mod Tweaker

  • "DreamMasterXXL" is male
  • Germany

Posts: 596

Location: Germany

  • Send private message

6

Monday, November 23rd 2015, 12:33pm

Is this a Minetweaker addon or a own mod that work similar to minetweaker for GT 6?

7

Monday, November 23rd 2015, 2:50pm

Is this a Minetweaker addon or a own mod that work similar to minetweaker for GT 6?
It is addon. ;) I wrote it for 5 minutes

8

Thursday, December 24th 2015, 2:11am

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

Chocohead

Drowning in mods.

  • "Chocohead" is male
  • Korea, Democratic People's Republic of United Kingdom

Posts: 5,978

Location: Badly generated chunks.

  • Send private message

9

Thursday, December 24th 2015, 2:26am

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

Source code

1
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.

10

Thursday, December 24th 2015, 12:30pm

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

Source code

1
import mods.MTUtilsGT;
According to the OP

I tried:
import mods.MTUtilsGT;
import mods.MTUtils;
import mods.MTUtils.MTUtilsGT;

For all of these MT returned (paraphrased) <File>.zs:<Line>: Unrecognized Text after 'import'

11

Thursday, December 24th 2015, 2:53pm

Last version?
Try other version MineTweaker and send me logfile, modlist and all .zs file

This post has been edited 1 times, last edit by "LionZXY" (Dec 24th 2015, 3:03pm)


12

Thursday, December 24th 2015, 8:40pm

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

Spoiler 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.
*error user name found* has attached the following file:
  • scripts.zip (6.19 kB - 75 times downloaded - latest: Mar 21st 2017, 11:20pm)

This post has been edited 1 times, last edit by "*error user name found*" (Dec 26th 2015, 7:39pm) with the following reason: No Double posts


13

Friday, January 1st 2016, 7:38pm

Maybe add import in start file?

14

Saturday, January 2nd 2016, 12:08am

Maybe add import in start file?


I got it to work, I redownloaded the newest version and skipped the import and prefixing "mods." to every call.

15

Saturday, January 2nd 2016, 10:28pm

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

Source code

1
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:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import minetweaker.item.IItemStack;
import minetweaker.item.IIngredient;
import minetweaker.liquid.ILiquidStack;
import minetweaker.oredict.IOreDictEntry;
import mods.MTUtilsGT;

val Water = [<liquid:water>] as ILiquidStack[];
val Lube = [<liquid:lubricant>] as ILiquidStack[];
val FNull = [] as ILiquidStack[];

MTUtilsGT.addCustomRecipe("sCutterRecipes", true, 16, 96, [10000],
[CreosoteWood], Water, FNull, [CreosoteSlab * 2] as IIngredient[]);
//-
MTUtilsGT.addCustomRecipe("sCutterRecipes", true, 16, 24, [10000],
[CreosoteWood], Lube, FNull, [CreosoteSlab * 2] as IIngredient[]);

16

Thursday, January 7th 2016, 9:51pm

I got that to work, but "'sCoagulatorRecipes' is not found in gregapi.recipes.RecipeMapcipeMap"

GregoriusT

inactive IC² Dev but still active GT Dev

  • "GregoriusT" is male
  • Germany

Posts: 11,190

Location: Wherever I want to be (most of the time)

  • Send private message

17

Friday, January 8th 2016, 7:43am

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 don't say, your "insert whatever here" is bad, I'm only showing possibilities for making it better.

GregTech Website

Patreon really helps me out, so if you consider funding the development of GT, so I might be able to do it full time, why not?

GregTech 6, the Main Thread, Bug Reports go here too.

I'm also reachable on #gt-dev on irc.esper.net, if you don't want to make a Forum account to contact me, for example. ;)
(I'm there almost every day, but only when I'm at my own computer, and yes you can drop bugs there too)

18

Friday, January 8th 2016, 11:22am

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.

This post has been edited 1 times, last edit by "*error user name found*" (Jan 8th 2016, 7:51pm)


19

Tuesday, March 29th 2016, 12:10am

All previous problems have been resolved.
However how is it possible to add temperature to "sCrucibleAlloying" recipes?

GregoriusT

inactive IC² Dev but still active GT Dev

  • "GregoriusT" is male
  • Germany

Posts: 11,190

Location: Wherever I want to be (most of the time)

  • Send private message

20

Tuesday, March 29th 2016, 12:37am

That Recipe Map is actually a Fake one that is only there to show stuff in NEI. You cannot add Alloying Recipes using the ItemStack and FluidStack based Recipe Maps at all. THat is an entirely different Block of Code and has to be handled with much more care than those Maps.
I don't say, your "insert whatever here" is bad, I'm only showing possibilities for making it better.

GregTech Website

Patreon really helps me out, so if you consider funding the development of GT, so I might be able to do it full time, why not?

GregTech 6, the Main Thread, Bug Reports go here too.

I'm also reachable on #gt-dev on irc.esper.net, if you don't want to make a Forum account to contact me, for example. ;)
(I'm there almost every day, but only when I'm at my own computer, and yes you can drop bugs there too)

Counter:

Hits today: 36,709 | Hits yesterday: 34,655 | Hits record: 152,331 | Hits total: 65,004,018