https://powdertoy.co.uk/Wiki/W/Powder_Toy_Lua_API.html
you can write stuff in lua and then execute the lua file via console. All the functions and whatnot should mixed between there and
https://www.boxmein.net/tpt/tptelements/reference/lua-reference.html