Jump to content

Fluid with properties


Skelyvelocirap

Recommended Posts

Hello,

I am currently trying to make a fluid but i want it to be quite a bit different then other fluids but i have no clue how to approach  doing so. I have a fluid which i want it to solidify if a property called "heat" is too low. The issue i have is that i essentially want the "heat" to be connected to other blocks. Essentially, you have a 2x2 square of my fluid(liquid slime) and one heat source close by. The "heat" property is going to be shared between only fluid blocks connected to one another. The "heat" property would also depend on all of those. For example, if there is a heat source generating 1000 heat, and there are four liquid slimes, the heat of each liquid slime blocks is going to be 250.

Is that even possible to do?

Thank you!

Link to comment
Share on other sites

Not easily.

 

You're going to need to either maintain your own data structure to track all sources of heat in the world yourself (think of how Minecraft stores chunk data) or you're going to need to make approximations, like making every block of yours search the area around it to see if there are "hot" or "cold" blocks nearby and make a best-guess at its own heat level based on what it finds).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Hmmm, well i think that would work but each "Fluid Block" would have to have a heat source nearby.

I was originally thinking that it would have a "network" in a way which would have the amount of blocks in it and store the total amount of heat and the liquid slime calculates it itself based on that. The issue is that im not sure how i would do that. I think that this would be the most lag_friendly way and what would be the closest to what im imagining how it would work.

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.