Need help creating DIRT

  • MassacreLand
    2nd Feb 2012 Member 0 Permalink
    So I made a script that allows wood to grow plnt when introduced with water.
    Kerbal made a script that creates Soil (Replaces with powder quarts)
    It also grows plnt when introduced with watr.
    Any way to take this script create DIRT and make it so that DIRT introduced with water will create MUD and SOIL
    Soil being the soil kerbal created (So that it will produce plnt with water)
    Mud being a liquid (a slow moving liquid unlike watr)

    DIRT = Powder
    Darker than sand but lighter than the soil.
    Mixed with watr creates mud and soil

    MUD = Liquid (Thicker and slower moving than WATR)
    When heated dries out to create soil

    SOIL = Powder
    When dried out creates DIRT
    When introduced with watr creates a layer of plnt on top.

    tpt.el.pqrt.name="SOIL"
    tpt.el.pqrt.description="Soil. Grows PLNT when watered."
    tpt.el.pqrt.color=0xC77400
    tpt.el.pqrt.weight=70
    tpt.el.pqrt.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.pqrt.id) 


  • ArtMaster
    2nd Feb 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • kerbal1234
    2nd Feb 2012 Member 0 Permalink
    Use eqve. It works.
  • ArtMaster
    2nd Feb 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • Plasmoid
    2nd Feb 2012 Member 0 Permalink
    Cool

  • kerbal1234
    2nd Feb 2012 Member 0 Permalink
    Mud doesnt exist yet. Ill make it later.
  • ForumTroll
    2nd Feb 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • kerbal1234
    2nd Feb 2012 Member 0 Permalink
    Lol no we are working together on mod so i know this stuff, my second account is sethluamod. :p
  • MassacreLand
    2nd Feb 2012 Member 0 Permalink
    @ForumTroll (View Post)
    Kerbal = a friend of MassacreLand lmao.

    Lol. Hey FT Got any ideas for the mod?
    @ArtMaster
    Thanks! You help out alot when it comes to my ideas haha.