math.randomseed(os.time())
function magn_update(i, x, y, s, n)
next = tpt.get_property("type", x+math.random(-1, 1), y+math.random(-1, 1))
if next == tpt.el.fire.id or next == tpt.el.plsm.id then
tpt.parts[i].type = tpt.el.plsm.id
tpt.parts[i].life = 300
tpt.parts[i].temp = 5000
end
end
tpt.element_func(magn_update, tpt.el.dmnd.id)
This would make diamond burn with a hot, plasma flame.