I am trying to add a way of turning lava into obsidian by cooling it to a certain temperature, without the lava returning to its original state. An example of what i would like to happen is the way WRTV turns to RIME instead of ICE when it touches an absolute zero surface. How can i do this?
I have mostly been learning from existing code,but i have not found a solution in my searches.
I know. Obsidian is a part of my own mod.
Btw, i don't plan on releasing my own mod, so if you want my existing code to make your life a bit easier, i can send it you. It has no functions other than being a more durable, less acid-resistant glass. But it's there if you want it.
else if (t==PT_WTRV) {
if (pt<273.0f) t = PT_RIME;
else t = PT_DSTW;
}
in simulation.cpp. This is the code like the one you want. A bit below, in the LAVA if statement, findif (s) {
t = parts[i].ctype;
and add this below it: