Structure
1. Module Exports
module.exports.init = async () => { /* … */ };
module.exports.metadata = { id: "apitest", version: "0.1" };2. Initialization Function (init)
init)const nm = api.nexomaker;api.console.log("Initializing expansion...");nm.registerModularPage("pageName", pathToComponent);nm.registerBackgroundModule("overlayName", pathToOverlay, options);const icon = await nm.loadAsset(iconPath); const model = await nm.loadModel(modelPath); const texture = await nm.loadAsset(texturePath);nm.postSidebarIcon({ /* ... */ }); nm.postTemplate({ /* ... */ }); nm.postEditorModule({ /* ... */ });nm.postExportFormat(exportFormatObject);
3. File References and Organization
5. Key Structural Tips
Last updated