GregTechCEu / GregTech

GregTech CE 1.12 fork continuing progression and development
GNU Lesser General Public License v3.0
226 stars 170 forks source link

How can I make a new MetaItem? #1171

Closed Hydrogen897 closed 1 year ago

Hydrogen897 commented 1 year ago

Your Question

As in the title.

BestMod commented 1 year ago

in

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

you can register new items

Hydrogen897 commented 1 year ago

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.

brachy84 commented 1 year ago

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

Hydrogen897 commented 1 year ago

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

Hydrogen897 commented 1 year ago

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.

brachy84 commented 1 year ago

gregtech i think i dont remember