math.randomseed(os.time())
function growth(i,x,y,s,n)
type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
if type==tpt.el.watr.id then
tpt.parts[i].type=tpt.el.plnt.id
end
end
tpt.element_func(growth,tpt.el.wood.id)
-----------------------------------------------------------------
tpt.el.clst.name="SOIL"
tpt.el.clst.description="Soil. Grows PLNT when watered."
tpt.el.clst.color=0xC77400
tpt.el.clst.weight=70
tpt.el.clst.menusection=4
math.randomseed(os.time())
function growth(i,x,y,s,n)
type=tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1))
if type==tpt.el.watr.id then
tpt.parts[i].type=tpt.el.plnt.id
end
end
tpt.element_func(growth,tpt.el.clst.id)