According to the wiki this should make it carry out a function every frame, but I can't make it do anything. I am trying to use it to run code that changes the temp of merc to 0 kelvin, I know the code for that is tpt.set_property("temp", 0, "merc) which works when I type it in, but tpt.register_step(tpt.set_property("temp", 0 "merc") does nothing. I assume I'm doing something wrong, so how do I actually do it?
function set_temp() tpt.set_proprety("temp", 0, "merc") end tpt.register_step(set_temp)
I saved that as file.lua but when I type dofile("file.lua") in the console, powder toy crashes. @Anmol444 I already have the code for setting temp, I am trying to make it happen every frame automatically