local ipa = elements.allocate("ISOPROPYL" , "ALCOHOL")
elements.element(ipa, elements.element=elements.DEFAULT_PT_WATR)
elements.property(ipa, "Name" , "IPA")
elements.property(ipa, "Description" , "Isopropyl Alcohol. A cleaning product.")
elements.property(ipa, "Property", TYPE_LIQUID+PROP_RADIOACTIVE)
function CLEANING(i,x,y,s,n)
if math.random(1,3) == 1 then
tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'sltw')
elseif math.random(1,3) == 2 then
tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'dstw')
elseif math.random(1,3) == 3 then
tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'watr')
end
tpt.set_property("temp", math.huge, x, y)
sim.pressure(x/4,y/4,math.huge)
end
here is the fixed code
compare your code and see your mistakes and learn from them,
https://powdertoy.co.uk/Wiki/W/Element_Properties.html
maybe this? https://powdertoy.co.uk/Wiki/W/Main_Page.html#Development_Guides