Yea I know, but I dont have motivation to do that first I need to make your game working. my mod has so many problems to fix that I dont have time to learn lua.
lua is simple~ I think,you want to "script what generates spark at three points when spark is getten to another point.",you must use tpt.register_step Register a function to be run on every frame
the function may like this function tpt.ck() if tpt.get_property("type",x,y)="sprk" then tpt.create(x,y,"sprk")--where to create spark end end