Jump to content

[1.19.2] Saving/Loading a custom value in every single chunk on chunk generation/load


Recommended Posts

Posted (edited)

I need to code a mod that adds virtual ore deposits in every chunk, and then, with a miner, you can extract those ores. So I need to generate a random value for ores and put it in the chunks data. Then, update those values when mining. Can someone help me with that?

 

Thanks 😁

Edited by MattyTomas
  • MattyTomas changed the title to [1.19.2] Saving/Loading a custom value in every single chunk on chunk generation/load
Posted
17 hours ago, MattyTomas said:

I need to code a mod that adds virtual ore deposits in every chunk, and then, with a miner, you can extract those ores. So I need to generate a random value for ores and put it in the chunks data. Then, update those values when mining. Can someone help me with that?

 

You can use a capability on the chunk itself to store and update the values as needed.

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.