Jump to content

Add a setBlockID(Block.nextIdAvailable()) sort of thing


Recommended Posts

Posted

Add some form of method that does that, because forge tracks the registered block IDs, so will know where there is a break. If waits until after the mod has declared all it's blocks/items, and then gives it an ID range that fits, for better use of the space there, because with lots of mods installed it becomes difficult to track.

Posted

(What does 1.7 use instead then?)

Internally it still uses IDs. But they are dynamic, that means in world A stone can be Id 1 and in world B it could be Id 334 or whatever. In the code you work with the actual Block object or with identifiers like "minecraft:stone".

And there would soon be no IDs at all (from 1.8 onwards)...

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.