GlobbyPotato / Rockhounding_Chemistry

The purpose of Rockhounding Chemistry is to assembly and maintain an industrial area in which several machines handle various types of ingredients (solid, fluid and gaseous) to produce advanced material for mid-late game stages. It also leads to several features, functional applications and experiments.
Other
15 stars 17 forks source link

CraftTweaker Help #81

Closed Shazuli closed 5 years ago

Shazuli commented 5 years ago

Hi

I can't for the life of me get CraftTweaker to work.

mods.rockhounding_chemistry.MetalAlloyer.add("Netherite", ["dustZinc","dustChromium","dustBoron"],[6, 4, 2], <minecraft:blaze_rod>);

As you can see I just copied the lines from the CraftTweaker_chemistry_script_1_10_2.zs file and removed the ore dictionary for Uranium as the pack I use doesn't have uranium dust available. But I keep getting error messages:

Console Log ``` [20:32:17] [Client thread/INFO] [minecraft/GuiNewChat]: [CHAT] ERROR: metalalloyer.zs:3 > a method available but none matches the parameters (string, any[], any[], ZenTypeNative: crafttweaker.item.IItemStack)\nThis is usually an error in your script, not in the mod\nadd(string[], int[], ZenTypeNative: crafttweaker.item.IItemStack) [20:32:17] [Client thread/INFO] [minecraft/GuiNewChat]: [CHAT] ERROR: [crafttweaker]: Error executing {[0:crafttweaker]: metalalloyer.zs}: null [20:32:17] [Client thread/INFO] [minecraft/GuiNewChat]: [CHAT] Syntax of scripts is correct, to see the effect restart the game [20:32:17] [Client thread/INFO] [minecraft/GuiNewChat]: [CHAT] Please be advised that brackets (<>) may have errored, see above. [20:32:17] [Client thread/INFO] [minecraft/GuiNewChat]: [CHAT] If no errors appeared above everything was fine. ```

I have tried a bunch of different approaches such as installing ModTweaker and its dependencies. Importing modules where it either did nothing or didn't find. So I'm kind of in a tight spot here and don't really know else I could do.

GlobbyPotato commented 5 years ago

Hi, the script as is should be correct. What MC version are you using? This is for 1.10.2. In 1.12.2 there is no longer the initial parameter "Netherite".

Shazuli commented 5 years ago

I am using the 1.12 version. Should I leave out that parameter?

GlobbyPotato commented 5 years ago

yes, for 1.12.2 use these scripts: https://github.com/GlobbyPotato/Rockhounding_Chemistry/blob/master/CraftTweaker_chemistry_script_1_12_2.zs

Shazuli commented 5 years ago

Ok, got it now. Thanks!