Attempt! BOOM mod

  • Etaxi
    20th Apr 2022 Member 3 Permalink

    BOOM will (Hopefully!) give you a few new explosives in the special section! NOT RELESED YET, IDK HOW TO POST MODS LOL               


    elem.element(elem.THYR_PT_THYR, elem.element(elem.DEFAULT_PT_DMND))

    elem.property(elem.THYR_PT_THYR, "Name", "THYR")
    elem.property(elem.THYR_PT_THYR, "Description", "Thyrium. An explosive experiment.")
    elem.property(elem.THYR_PT_THYR, "Colour", 0x407020)
    elem.property(elem.THYR_PT_THYR, "MenuVisible", 1)
    elem.property(elem.THYR_PT_THYR, "MenuSection", SC_SPECIAL)

    elem.property(elem.THYR_PT_THYR, "Advection", 10)
    elem.property(elem.THYR_PT_THYR, "AirDrag", 0.5)
    elem.property(elem.THYR_PT_THYR, "AirLoss", 0)
    elem.property(elem.THYR_PT_THYR, "Loss", 100)
    elem.property(elem.THYR_PT_THYR, "Collision", 0)
    elem.property(elem.THYR_PT_THYR, "Gravity", 0)
    elem.property(elem.THYR_PT_THYR, "Diffusion", 0)
    elem.property(elem.THYR_PT_THYR, "HotAir", 0)

    elem.property(elem.THYR_PT_THYR, "Explosive", 2)
    elem.property(elem.THYR_PT_THYR, "Flammable", 500)
    elem.property(elem.THYR_PT_THYR, "Hardness", 0)
    elem.property(elem.THYR_PT_THYR, "Meltable", 0)
    elem.property(elem.THYR_PT_THYR, "Weight", 30)

    elem.property(elem.THYR_PT_THYR, "HeatConduct", 25)
    elem.property(elem.THYR_PT_THYR, "Temperature", 295.15)

    elem.property(elem.THYR_PT_THYR, "Falldown", 0)
    elem.property(elem.THYR_PT_THYR, "State", elem.ST_SOLID)
    elem.property(elem.THYR_PT_THYR, "Properties", elem.TYPE_SOLID)

    elem.property(elem.THYR_PT_THYR, "LowPressure", IPL)
    elem.property(elem.THYR_PT_THYR, "LowPressureTransition", NT)
    elem.property(elem.THYR_PT_THYR, "HighPressure", IPH)
    elem.property(elem.THYR_PT_THYR, "HighPressureTransition", NT)
    elem.property(elem.THYR_PT_THYR, "LowTemperature", ITL)
    elem.property(elem.THYR_PT_THYR, "LowTemperatureTransition", NT)
    elem.property(elem.THYR_PT_THYR, "HighTemperature", ITH)
    elem.property(elem.THYR_PT_THYR, "HighTemperatureTransition", NT) <---The code for 1 element! P.S, I used a lua element creation mod.

    Edited 3 times by Etaxi. Last: 21st Apr 2022
  • Inventor70
    21st Apr 2022 Member 0 Permalink

    You must go to https://starcatcher.us/scripts to make it. I recommend LUA because it works mostly on Windows and Mac, but works best on Windows.

    Edit: idk, ask jacob1, or copy your link that goes to your mod.

    Edit #2: 

    @Etaxi (View Post)

     Lemme do this mod for you.

    Edited 4 times by Inventor70. Last: 28th Sep 2022
  • Etaxi
    21st Apr 2022 Member 1 Permalink

    I use LUA, Thanks. BTW, I mean post on the forums. 

    Edited once by Etaxi. Last: 21st Apr 2022
  • Greiscale
    9th May 2022 Member 1 Permalink

    EDITED- Nevermind

    Edited once by Greiscale. Last: 9th May 2022
  • ArolaunTech
    11th May 2022 Member 0 Permalink

    This should probably be in the Lua scripting forum, not the mod forum, as this is Lua, not C++.

  • Inventor70
    23rd May 2022 Member 0 Permalink

    Main forum link:

    The Powder Toy - Attempt: Inventor70's Mod (including your mod attempt)

     

    How to upload a script:

    @Etaxi (View Post)

    Click the LUA button on your powder toy. Ya see the "Upload Script" at the top right of the LUA mod installer window?

     IMPORTANT: Make sure you have a LUA button by using this command: tpt.getscript(1, "autorun.lua", 1)

    Edited 3 times by Inventor70. Last: 23rd May 2022
  • Inventor70
    22nd Sep 2022 Member 0 Permalink

    im coding for a few minutes...

    finally did it!

    Edited once by Inventor70. Last: 22nd Sep 2022
  • Inventor70
    28th Sep 2022 Member 0 Permalink
  • Inventor70
    29th Mar 2023 Member 0 Permalink

    @Etaxi (View Post)

     uh do it in starcatcher (https://starcatcher.us/scripts)

    copy and paste your code there.

  • electroBOOM_
    16th Dec 2023 Member 0 Permalink

    @Inventor70 Lua works a little bit more efficient on linux (i tested windows then i installed linux and tested) because linux is more cpu efficient (there is no bloat running, only system-required programs)