Jump to content

Number Casting bug during world Generation.


Ninjusk

Recommended Posts

I'm writing a mod that adds a new dimension and in my ChunkProvider is causing the problem that the array that the block types are stored in is a byte array which byte only supports up like 254 in numbers. and being a mod my block ids are much higher then that so i'm getting the error that is setting the id to some random id that doesn't exists when i don't set the block value to 200. is there any way to allow for a value larger then 254 during world gen/ is there a way to edit the block id after world gen?

 

thank you for your time.

Link to comment
Share on other sites

I heard that on really low level world-gen is not possible to work with higher block IDs (but I haven't done it myselft so it might not be true). you could move your blocks for world-gen to lower IDs (<256). if you're using forge config you can obtain lower IDs by calling getTerrainBlock method instead of getBlock.

mnn.getNativeLang() != English

If I helped you please click on the "thank you" button.

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.