GregTech CE Unofficial

GregTech CE Unofficial

412k Downloads

How can I make a new MetaItem?

Hydrogen897 opened this issue · 6 comments

commented

Your Question

As in the title.

commented

Its better to ask these things on discord.
And be more specific with your question. Are you making a mod or are you using crafttweaker. If you are using DevTech, then do this

import mods.gregtech.MetaItem;

MetaItem.create(1, "some_id");

DevTech source

commented

in

/src/main/java/gregtech/common/items/MetaItem1.java

you can register new items

commented

in

/src/main/java/gregtech/common/items/MetaItem1.java

you can register new items

Oh thanks you!But I need like Devtech1 to register MetaItem. And Devtech2 seems to have no custom MetaItem.

commented

Thanks you,and I live in China,I can‘t access Discord.

commented

Its better to ask these things on discord. And be more specific with your question. Are you making a mod or are you using crafttweaker. If you are using DevTech, then do this

import mods.gregtech.MetaItem;

MetaItem.create(1, "some_id");

DevTech source

Should the resource files be placed in the gregtech directory or the devtech directory.

commented

gregtech i think
i dont remember