This is the Lua of KevAK Chem mod
This is code
--ALUMINIUM OXIDE--
local function BRALUpdate(i, x, y, s, nt)
r = sim.partID(x+math.random(-1,1),y+math.random(-1,1))
if r~= nil then --1) Special explosion parameters--
--BRAL reverts corrotion of TTAN--
if sim.partProperty(r, "type") == elem.KEV_PT_TIO2 and sim.partProperty(r, "temp") >= 395.15 then
sim.partProperty(r,"temp", 3273)
sim.partProperty(i,"temp", 3273)
sim.partProperty(r, "type", elem.DEFAULT_PT_TTAN)
sim.partProperty(i, "type", elem.DEFAULT_PT_TTAN)
end --1)BRAL reverts corrotion of IRON--
if sim.partProperty(r, "type") == elem.DEFAULT_PT_BRMT and sim.partProperty(r, "temp") >= 395.15 then
sim.partProperty(r,"temp", 3273)
sim.partProperty(i,"temp", 3273)
sim.partProperty(r, "type", elem.DEFAULT_PT_IRON)
sim.partProperty(i, "type", elem.DEFAULT_PT_IRON)
end
end
end
But in fact, the reaction is only about 1500 degrees. Why
The problem has been solved because the heat is absorbed by something else, thanks to Teranode.
My gas would be that, the sim.partProperty(i,type) conversions makes the element get replaced with default iron/ttan which is normally spawned at 22C thus lowering the temperature naturally.
You might want to use something which preserves the element temp. And turns it into iron/ titanium instad of replaceng it.
Also, in current form, it will turn all the brmt around it into iron even tho it wasn't actually a corroded iron.
That's all, it was mine agugated gas. Hope it helps :P
this is very off topic, but i just noticed that your pfp is a yowling cat, not a turtle with a pink scarf, i don't know why i thought it was a turtle with a pink scarf
It's Remilia
thanks.
I'm just a novice in writing mod, but I've learned C + +, and Lua should be fine