Help With Concrete

  • yellowberry
    13th Aug 2014 Member 0 Permalink

    I would like to make an element that stacks like concrete, but I have had no luck.

     

    Here is my code:

     

    local as = elements.allocate("ELEMENT", "A") elements.element(as, elements.element(elements.DEFAULT_PT_CNCT)) elements.property(as, "Name", "A") elements.property(as, "Description", "A!")

  • boxmein
    13th Aug 2014 Former Staff 0 Permalink
    I made a diff between DUST and CNCT so you can compare them side-by-side. One of the properties that differs in this file makes CNCT fall in only one direction and not diagonally.

    http://www.diffchecker.com/nc3rh6sm
  • yellowberry
    14th Aug 2014 Member 0 Permalink

    Hmm, I used all of those properties, but still no luck... Maybe there is something hard-coded just for CNCT?

     

    Code:

     

    local as = elements.allocate("ELEMENT", "A") --elements.element(as, elements.element(elements.DEFAULT_PT_CNCT)) elements.property(as, "Name" , "A") elements.property(as, "Description" , "A!") elements.property(as, "MenuSection" , 8) elements.property(as, "Gravity" , 0.3) elements.property(as, "Falldown" , 1) elements.property(as, "Flammable" , 0) elements.property(as, "Explosive" , 0) elements.property(as, "Diffusion" , 0) elements.property(as, "Collision" , -0.1) elements.property(as, "Weight" , 55) elements.property(as, "Advection" , 0.4) elements.property(as, "AirLoss" , 0.94) elements.property(as, "AirDrag" , 0.04) elements.property(as, "HotAir" , 0) elements.property(as, "Loss" , 0.95) elements.property(as, "Temperature" , 273.15) elements.property(as, "HeatConduct" , 100) elements.property(as, "MenuVisible" , 1) elements.property(as, "Hardness" , 2) elements.property(as, "Meltable" , 2) elements.property(as, "Color", 0xC0C0C0)