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

0.2.3 • 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'

new MinecraftModelLoader().load('model.json', mesh => {
  const textureLoader = new MinecraftTextureLoader()
  mesh.resolveTextures(path => ({ texture: textureLoader.load(`${path}.png`)/*, mcmeta: { animation: {...} }*/ }))
  scene.add(mesh)
})

Package Sidebar

Install

npm i @destruc7i0n/three-mcmodel

Weekly Downloads

0

Version

0.2.3

License

MIT

Unpacked Size

71.3 kB

Total Files

43

Last publish

Collaborators

  • destruc7i0n