@test137e29b/three-mcmodel
v0.2.5
Published
A library for working with Minecraft json models using three.js.
Downloads
3
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 => textureLoader.load(`${path}.png`))
scene.add(mesh)
})