local function reaction(i, x, y, s, nt)
for r in sim.neighbors(x,y,1,1) do
local rtype = sim.partProperty(r, sim.FIELD_TYPE)
if rtype ~= tpt.el.plsm.id and rtype ~= tpt.el.fire.id and rtype ~= tpt.el.smke.id and rtype ~= tpt.el.lava.id then
sim.partCreate(-1, x+math.random(-1, 1), y+math.random(-1, 1), tpt.el.thrm.id)
end
end
end
elem.property(tpt.el.plsm.id, "Update", reaction)