Post Template
Templates are predefined models and textures that streamline item creation. Through Nexo Maker’s API, creators can load their own templates directly in the templates window.
How does Templates work
Code Examples
module.exports.init = async () => {
const model = await nm.loadModel(
__dirname + "/assets/mana_potion_small.json"
);
const texture = await nm.loadAsset(
__dirname + "/assets/mana_potion_small.png"
);
nm.postTemplate({
type: "create_item",
model: model,
texture: texture,
title: "Mana Potion",
});
};
module.exports.metadata = {
id: "myexpansion",
version: "0.1",
};
Last updated