Jump to content

Problem with Item ID's


Zcelo12

Recommended Posts

Hello,

I'm trying to make a configuration file and for Blocks it already works, but i did the same for items and

this doesn't work. I'm using different classes for my items and configs and load it under PreInitialize in my mod_File

 

Config:

 		Configuration config = new Configuration(event.getSuggestedConfigurationFile());

        config.load();        
        eggbreadID = config.getItem("Eggbread", 4000).getInt();
        
        config.save();

 

ItemFile:

eggbread = new Food(FoodCraftConfig.eggbreadID, 7, false).setIconCoord(9,0).setItemName("Eggroll");

public static Item eggbread;

 

the items appears ingame, but have a different ID.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.