0.2.3 • Published 11 months ago

@destruc7i0n/three-mcmodel v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

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)
})