Load Model

Loading Models with loadModel()

Nexo Maker provides a way to read .json Minecraft models, this function is use for any component where Minecraft models should be sent to Nexo Maker


💡 Example Usage

Local Model (within your Expansion folder):

const myModel = await api.nexomaker.loadModel(__dirname + "/assets/mana_potion_small.png");

Remote Model (from a hosted URL):

const myModel = await api.nexomaker.loadModel("https://example.com/models/mymode.json");

⚠️ Notes

  • loadModel() only supports json format, bbmodel is not included.

  • Ensure the model path is correct when using __dirname.

Last updated