So I've been inactive for a while now, and decided to see if I could create a new element for TPT, and though it would be fun to make a command blo... erm, particle. The code isn't fully bug tested, but I'll try to update it if any bugs or other issues are found.
Link to lua script: https://pastebin.com/USpG6vDB
To run the code, rename it to whatever you want, put it in your TPT folder, open TPT and type "dofile("filename.lua")" in the console, where filename of course is the name you gave it. If you want it to run automatically every time you open TPT, just put it in the TPT folder and rename it to "autorun". (Remember to keep the .lua, though.)
NOTE: The element does not use console commands, but instead can do only simple tasks, such as placing particles or removing them.
How to use it
Tmp values
This is quite hard to explain, but I'll do my best.
Temp 0: "placeone" command
Temp 1: "placebox" command
Temp 2: "placeclone" command
Temp 3: "placecloneexcept" command
Temp 4: "ifinradius" command
Temp 5: "ifinradiusat" command
Temp 6: "ifexists" command
Temp 7: "datachange" command
This ended up being a much longer post than I expected.