My mod

  • Squirtle
    3rd May 2014 Member 1 Permalink
    I have succeed in creating my own element: DAMN


    local ElementOne = elements.allocate("MINN", "ONE")
    elements.element(elements.MINN_PT_ONE, elements.element(elements.DEFAULT_PT_DUST))
    elements.property(elements.MINN_PT_ONE, "Name", "DAMN")
    elements.property(elements.MINN_PT_ONE, "Description", "DAYUM!")
    elements.property(elements.MINN_PT_ONE, "Colour", 0xffffff)
    elements.property(elements.MINN_PT_ONE, "Gravity",2.3)
    elements.property(elements.MINN_PT_ONE, "MenuSection",5)
    elements.property(elements.MINN_PT_ONE, "Diffusion",0.5)
    elements.property(elements.MINN_PT_ONE, "Weight",100)
    elements.property(elements.MINN_PT_ONE, "Temperature",9999)
    elements.property(elements.MINN_PT_ONE, "HeatConduct",9999)
    elements.property(elements.MINN_PT_ONE, "Flammable",0.0)
    local function graphics(i, colr, colg, colb)
    return 1,0x00010000,255,255,255,255,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), 'bomb')
    end
    end
    tpt.element_func(sprk,ElementOne)




    Please tell me what you think please.
    Edited 2 times by Squirtle, jacob1. Last: 3rd May 2014
  • h4zardz1
    3rd May 2014 Member 0 Permalink
    color: white?
  • Squirtle
    3rd May 2014 Member 0 Permalink
    eh, im not complaining. it works and is my first mod, lol
  • roquet11
    13th May 2014 Member 0 Permalink

    but as it is installed and operating on tpt?

  • cadell
    16th May 2014 Member 0 Permalink

    hey budd how to install mods can you tell me please