1 Helpful
1 Improvement maker
1 Just for fun.
local useful = Button:new(613, 97, 15, 16, "RS", "Remove Spark.")
useful:action(function(sender)
tpt.reset_spark()
end)
local realism = Button:new(613, 114, 15, 16, "RD", "Realistic Diamond.")
realism:action(function(sender)
elem.property(elements.DEFAULT_PT_DMND, "HighPressure", 200)
elem.property(elements.DEFAULT_PT_DMND, "Description", "Diamond. Realistic")
elem.property(elements.DEFAULT_PT_DMND, "HighPressureTransition", elements.DEFAULT_PT_STNE)
elem.property(elements.DEFAULT_PT_DMND, "Hardness", 1)
elem.property(elements.DEFAULT_PT_DMND, "HighTemperature", 5000)
elem.property(elements.DEFAULT_PT_DMND, "HighTemperatureTransition", elements.DEFAULT_PT_LAVA)
end)
local liquided = Button:new(613, 131, 15, 16, "NE", "Negative Earth.")
liquided:action(function(sender)
function grandma()
local function c(i)
elements.property(i, "Gravity", -5)
end
for i=1,255 do
pcall(c, i)
end
end
grandma()
elem.property(elements.DEFAULT_PT_FIRE, "Gravity", 5)
elem.property(elements.DEFAULT_PT_CFLM, "Gravity", 5)
elem.property(elements.DEFAULT_PT_PLSM, "Gravity", 5)
elem.property(elements.DEFAULT_PT_HYGN, "Gravity", 5)
elem.property(elements.DEFAULT_PT_BOYL, "Gravity", 5)
elem.property(elements.DEFAULT_PT_FOG, "Gravity", 5)
elem.property(elements.DEFAULT_PT_CAUS, "Gravity", 5)
elem.property(elements.DEFAULT_PT_CO2, "Gravity", 5)
elem.property(elements.DEFAULT_PT_OXYG, "Gravity", 5)
elem.property(elements.DEFAULT_PT_SMKE, "Gravity", 5)
elem.property(elements.DEFAULT_PT_NBLE, "Gravity", 5)
elem.property(elements.DEFAULT_PT_GAS, "Gravity", 5)
elem.property(elements.DEFAULT_PT_WTRV, "Gravity", 5)
end)
interface.addComponent(useful)
interface.addComponent(realism)
interface.addComponent(liquided)
cool, very useful. try ether moving them to another spot so LUA script manager and TPTMP don't get covered or make your buttons move to allow for TPTMP or 'LSM'. they use global strings for checking version and if they exist
(something like if nil ~= TPTMP then...)
also you should get it in the script manager...
https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=18198
then people can download in Powder toy not needing the forum, and you don't need the long process of saving it in a autorun.lua