0.2.5 • Published 1 year ago

@test137e29b/three-mcmodel v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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 => textureLoader.load(`${path}.png`))
  scene.add(mesh)
})