@destruc7i0n/three-mcmodel
v0.2.3
Published
A library for working with Minecraft json models using three.js.
Downloads
4
Maintainers
Readme
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'
new MinecraftModelLoader().load('model.json', mesh => {
const textureLoader = new MinecraftTextureLoader()
mesh.resolveTextures(path => ({ texture: textureLoader.load(`${path}.png`)/*, mcmeta: { animation: {...} }*/ }))
scene.add(mesh)
})