GregTechCE / GregTech

GregTech rewrite for modern versions of Minecraft
GNU Lesser General Public License v3.0
271 stars 150 forks source link

Importing new materials crashes the game #932

Closed Rundas01 closed 5 years ago

Rundas01 commented 5 years ago

Hello, I use CraftTweaker to import "Tough Alloy" and "Magnesium Diboride" from NuclearCraft in order to make magnetic rods and fine wires respectively. Therefore I created this:

val magnesiumDiboride = MaterialRegistry.createIngotMaterial(715, "magnesium_diboride", 0x1a1a1a, "dull", 2);
magnesiumDiboride.addFlags(["GENERATE_FINE_WIRE"]);

val toughAlloy = MaterialRegistry.createIngotMaterial(716, "tough_alloy", 0x1a1a1a, "dull", 2);
toughAlloy.addFlags(["GENERATE_MAGNETIC_ROD"]);

But on every start, the game crashes with an exception caught from CraftTweaker.

Edit: It seems, that the addFlag is the problem. Without these, everything is fine.

Any help is appreciated. Rundas

hottentottententententoonstelling commented 5 years ago

That's because these flags are not valid, see https://crafttweaker.readthedocs.io/en/latest/#Mods/GregTechCE/Material/#material-generation-flags for a list of valid flags

Rundas01 commented 5 years ago

Ah, I see. Is there a way of creating the fine wire and magnetic rod somehow else?

hottentottententententoonstelling commented 5 years ago

@42Rundas add recipes to the corresponding machines and/or add crafting recipes

Rundas01 commented 5 years ago

How do think I can add a recipe for an item which doesn't even exist?

hottentottententententoonstelling commented 5 years ago

Use the material icon-set see: https://crafttweaker.readthedocs.io/en/latest/#Mods/GregTechCE/Material/#material-icon-set. In your case you should use FINE and MAGNETIC

Rundas01 commented 5 years ago

Ok, I'll give that a try. Thanks man :D