BEAM Element.

  • Millions
    25th Apr 2014 Member 1 Permalink

    Well its been awhile since i've even commented on a lua forum.

     

    So i'll just give you this element I made while bored.

     

    local ElementOne = elements.allocate("MILL", "ONE")
    elements.element(elements.MILL_PT_ONE, elements.element(elements.DEFAULT_PT_DUST))
    elements.property(elements.MILL_PT_ONE, "Name", "BEAM")
    elements.property(elements.MILL_PT_ONE, "Description", "Pure Plasmatic Energy Fused With Mass And Gravity.")
    elements.property(elements.MILL_PT_ONE, "Colour", 0xFFFFFF)
    elements.property(elements.MILL_PT_ONE, "Gravity",9)
    elements.property(elements.MILL_PT_ONE, "MenuSection", 10)
    elements.property(elements.MILL_PT_ONE, "Diffusion",0.3)
    elements.property(elements.MILL_PT_ONE, "Weight",300)
    elements.property(elements.MILL_PT_ONE, "Temperature",9999)
    elements.property(elements.MILL_PT_ONE, "HeatConduct",9999)
    elements.property(elements.MILL_PT_ONE, "Flammable", 0.0)
    local function graphics(i, colr, colg, colb)
    return 1,0x00010000,255,100,155,210,255,255,255,255
    end
    tpt.graphics_func(graphics,ElementOne)
    local function sprk(i,x,y,s,n)
    cc=math.random(1,255)
    if tpt.get_property("type",x+math.random(-1,1),y+math.random(-1,1)) == tpt.el.wood.id then
    tpt.create(x + math.random(-1,1), y + math.random(-1,1), 'thdr')
    end
    end
    tpt.element_func(sprk,ElementOne)

  • QuentinADay
    25th Apr 2014 Member 1 Permalink

    nice script works well!

  • Millions
    26th Apr 2014 Member 0 Permalink

    Thanks for the reply.

  • KydonShadow
    26th Apr 2014 Member 1 Permalink

    another doge avatar....

  • Millions
    26th Apr 2014 Member 0 Permalink

    @KydonShadow (View Post)

     I've had this avatar for about 5 months. Just I have been inactive.

  • h4zardz1
    26th Apr 2014 Member 1 Permalink
    End
    Break
    End
  • Millions
    27th Apr 2014 Member 0 Permalink

    oh

  • xetalim
    27th Apr 2014 Member 1 Permalink

    @KydonShadow (View Post)

    Wow.

    Such doge.

    Very avatar.

    Wow.

    Such KydonShadow.

    Wow.

  • TheScienceKid
    10th Sep 2016 Member 1 Permalink

    im a noob at this so dont make fun of me but i dont know how to put it in

  • TPT_PL
    10th Sep 2016 Member 2 Permalink
    Guy, this is a necro. If you don't know, search the wiki for "How to run a script" and please, do not post in ancient threads.