Jump to content

Item Ids Switching.


phase

Recommended Posts

1) You should ALWAYS grab the ID from the item/block instance DO NOT cache it. That's just asking for trouble.

2) It's setting it to 6357 as items are shifted by 256. There is nothing to fix, this is how minecraft works.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

int certusOrbID = certusIngot.itemID;

Don't do that, ALWAYS use certusIngot.itemID ALWAYS. It is better to centralize the id to one single place.

So that if it DOES ever change you dont have to find all the p[lace where you have 'magic numbers' and fix them.

Seriously, like 100 hunks in Forge are simply changing Mojang's hardcode of 'air' from 0 to something less magic number.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

int certusOrbID = certusIngot.itemID;

Don't do that, ALWAYS use certusIngot.itemID ALWAYS. It is better to centralize the id to one single place.

So that if it DOES ever change you dont have to find all the p[lace where you have 'magic numbers' and fix them.

Seriously, like 100 hunks in Forge are simply changing Mojang's hardcode of 'air' from 0 to something less magic number.

 

Where do you put

int certusOrbID = certusOrb.itemID;

?

 

And I meant to put "certusOrb.itemID;"

not certusIngot.

 

 

 

 

Link to comment
Share on other sites

Where do you put

int certusOrbID = certusOrb.itemID;

?

You don't Do NOT store item ids like that.

Anyways, not here to tech coding. There is no bugs or anything here.

So, end of thread. Please learn the structure of minecraft.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

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.



×
×
  • Create New...

Important Information

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