New BCLN Mod

  • megamageiii
    23rd Apr 2014 Member 1 Permalink

    My first mod ever. Adds the following things:

    BOOM - Just GUN that explodes hotter and is red.

    CLNG - A gas form of BCLN

    LCLN - A liquid form of BCLN

    PCLN - A powder form of BCLN

     

    To install:

    Make a file called autorun.lua in your TPT folder. Then, edit it with your choice of program (Notepad works). Paste in this:


    elements.allocate('NEW', 'BOOM')
    elements.element(elements.NEW_PT_BOOM, elements.element(elements.DEFAULT_PT_GUN))
    elements.property(elements.NEW_PT_BOOM, 'Name', 'BOOM')
    elements.property(elements.NEW_PT_BOOM, 'Description', 'A highly explosive material')
    elements.property(elements.NEW_PT_BOOM, 'Color', '0xFF1111')
    elements.property(elements.NEW_PT_BOOM, 'Flammable', '1000000')

    elements.allocate('NEW', 'CLNG')
    elements.element(elements.NEW_PT_CLNG, elements.element(elements.DEFAULT_PT_BCLN))
    elements.property(elements.NEW_PT_CLNG, 'Name', 'GACN')
    elements.property(elements.NEW_PT_CLNG, 'Description', 'A Gas form of BCLN')
    elements.property(elements.NEW_PT_CLNG, 'Diffusion', '3')

    elements.allocate('NEW', 'MCLN')
    elements.element(elements.NEW_PT_MCLN, elements.element(elements.DEFAULT_PT_BCLN))
    elements.property(elements.NEW_PT_MCLN, 'Name', 'LQCN')
    elements.property(elements.NEW_PT_MCLN, 'Description', 'A Liquid form of BCLN')
    elements.property(elements.NEW_PT_MCLN, 'Falldown', '2')
    elements.property(elements.NEW_PT_MCLN, 'Loss', '0.95')
    elements.property(elements.NEW_PT_MCLN, 'Gravity', '0.1')
    elements.property(elements.NEW_PT_MCLN, 'Advection', '0.6')
    elements.property(elements.NEW_PT_MCLN, 'AirDrag', '0.01')

    elements.allocate('NEW', 'PCLN')
    elements.element(elements.NEW_PT_PCLN, elements.element(elements.DEFAULT_PT_BCLN))
    elements.property(elements.NEW_PT_PCLN, 'Name', 'PWCN')
    elements.property(elements.NEW_PT_PCLN, 'Description', 'A Powdered form of BCLN')
    elements.property(elements.NEW_PT_PCLN, 'Falldown', '1')
    elements.property(elements.NEW_PT_PCLN, 'Loss', '0.95')
    elements.property(elements.NEW_PT_PCLN, 'Gravity', '0.3')
    elements.property(elements.NEW_PT_PCLN, 'Advection', '0.4')
    elements.property(elements.NEW_PT_PCLN, 'AirDrag', '0.04')

    Save it, then launch TPT, and you are done.

    I mainly made it to see if I could, but I'll post it here anyway. Have fun!

    Edited 2 times by megamageiii. Last: 28th Apr 2014
  • h4zardz1
    25th Apr 2014 Member 0 Permalink
    change the name from PCLN to PWCN, CLNG to GACN, and LCLN to LQCN.
  • megamageiii
    28th Apr 2014 Member 0 Permalink

    Yeah, I guess the PCLN could get confusing.