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

0.2.5 • 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 => textureLoader.load(`${path}.png`))
  scene.add(mesh)
})

Package Sidebar

Install

npm i @test137e29b/three-mcmodel

Weekly Downloads

1

Version

0.2.5

License

MIT

Unpacked Size

66.2 kB

Total Files

38

Last publish

Collaborators

  • test137e29b