Jump to content

While block is in world change it to another after x amount of time


tal124

Recommended Posts

Hello, I've seen mods like blood alchemy turn liquid blood into blocks and AE2 turn Certus seeds into full formed pure Certus quartz, I was wondering how I would go about setting it so that once my block (Copper ore) is set down in the world for long enough that it will turn into oxidized copper ore (just as a way to see if I can) I have no idea where to start with this kind of code and it may come in handy later if I wish to start an actual project of my own

and would it also be possible to speed up the process when next to another block or liquid like water?

Link to comment
Share on other sites

45 minutes ago, diesieben07 said:

Look at how Minecraft handles farmland turning wet when next to water and how crops grow.

I've found it and I've looked it over but I'm not too sure which section is referring to a change in block type back to dirt, and I see the "turnToDirt" parameter and I don't fully understand it

[removed Mojang code - diesieben07]

I've been putting some of the code into my own, but I'm not sure how this will actively switch my own block

Edited by diesieben07
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.

Announcements



×
×
  • Create New...

Important Information

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