@fanthstudios/three-mcmodel
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

three-mcmodel

A library for working with Minecraft json models using three.js.

🚧 Work in progress, not stable yet 🚧

import { MinecraftModelLoader, MinecraftTextureLoader } from 'three-mcmodel'

const mesh = await new MinecraftModelLoader().loadAsync('/model.json');
const textureLoader = new MinecraftTextureLoader()
await mesh.resolveTextures(async function (path) {
    return await textureLoader.loadAsync(`/${path}.png`);
})
scene.add(mesh)

Package Sidebar

Install

npm i @fanthstudios/three-mcmodel

Weekly Downloads

3

Version

0.2.5

License

MIT

Unpacked Size

45.8 kB

Total Files

31

Last publish

Collaborators

  • epicplayera10