Jump to content

Recommended Posts

Posted

Hey everyone! My problem is, I am assigning my items specific ID's, and Eclipse/Forge/Minecraft is assigning them other ID's, and I can't figure out why.

 

Here's the code to the id's being set

public static final int SODADARKDEPTHSCOLA_DEFAULT = 22601;
public static final int SODAWHITELIGHTNING_DEFAULT = 22602;
public static final int SODABLOODSODA_DEFAULT = 22603;
public static final int SODASPARKLINGWATER_DEFAULT = 22604;
public static final int SODAHILLFROST_DEFAULT = 22605;
public static final int SODAYELLOWMELLOW_DEFAULT = 22606;
public static final int SODAYEEHEE_DEFAULT = 22607;
public static final int SODAGINGERALE_DEFAULT = 22608;
public static final int SODACYANSODA_DEFAULT = 22609;
public static final int SODAGENERICGRAPESODA_DEFAULT = 22610;
public static final int SODALIQUIDLARD_DEFAULT = 22611;
public static final int SODAUNDERCOLA_DEFAULT = 22612;
public static final int SODAFEMINISTSFAVORITE_DEFAULT = 22613;
public static final int SODA8DOWN_DEFAULT = 22614;
public static final int SODABAMBIBLAST_DEFAULT = 22615;
public static final int SODAEUTOSFINEST_DEFAULT = 22616;

public static final int BOTTLEDARKDEPTHSCOLA_DEFAULT = 22617;
public static final int BOTTLEWHITELIGHTNING_DEFAULT = 22618;
public static final int BOTTLEBLOODSODA_DEFAULT = 22619;
public static final int BOTTLESPARKLINGWATER_DEFUALT = 22620;
public static final int BOTTLEHILLFROST_DEFAULT = 22621;
public static final int BOTTLEYELLOWMELLOW_DEFAULT = 22622;
public static final int BOTTLEYEEHEE_DEFAULT = 22623;
public static final int BOTTLEGINGERALE_DEFAULT = 22624;
public static final int BOTTLECYANSODA_DEFAULT = 22625;
public static final int BOTTLEGENERICGRAPESODA_DEFAULT = 22626;
public static final int BOTTLELIQUIDLARD_DEFAULT = 22627;
public static final int BOTTLEUNDERCOLA_DEFAULT = 22628;
public static final int BOTTLEFEMINISTSFAVORITE_DEFAULT = 22629;
public static final int BOTTLE8DOWN_DEFAULT = 22630;
public static final int BOTTLEBAMBIBLAST_DEFAULT = 22631;
public static final int BOTTLEEUTOSFINEST_DEFAULT = 22632;
public static final int BOTTLESODA_DEFAULT = 22633;
public static final int BOTTLECARBONATEDSODA_DEFAULT = 22634;

public static final int SODAEMPTY_DEFAULT = 22635;

 

And here is a screenshot of them ingame showing the wrong ID's:

lqZh5di.png

As you can see in this example, the soda Euto's Finest's ID in Minecraft is 17136 when I assigned it in the code to 22616

Posted

Nah, it isn't the id's shifting, I already have that set in my config class to account for that. These are thousands off, and they all aren't equally off, some are in the random 20,000's, and a few even in the 30,000's

 

Posted

lol, btw showing us int with values and name is the equivalent of

 

float distanceBetweenEarthAndSun=1;

 

and later saying "hey the distance between the earth andthe sun isnt 1 meter??

 

 

ok im exgagerating but maybe youre not registering the id properly :P

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Posted

It could be that the item #thingy is wrong and the id is the one you set.

Or you were using another id previously, and it didn't make the change.

You are only giving us the most uninteresting part of your code anyway.

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.