My Scarab-Wasp bots use this (https://forum.blockland.us/index.php?topic=272520.0 near the end of the first post for the download link)The code you'll want to look at is in the effects.cs file.You need to create is an image datablock that emits particles and then removes itself after a bit.