Attach a periodic callback with structures.processing.register.
Pattern from workshop mod lunalith.storage.
- Enable the mod and load a save.
- Debug menu: equip the Debug tool → Building → Example Scanner.
- Place the 4×4 scanner and pour sand or elements onto it.
- Open DevTools console. Every second you see an occupancy log for that structure.
Copy examples/content/structure-processor/ to src/<your-mod>/. Change interval, footprint scan, and processor logic in main.ts.
For structure registration only, see register-structure.