1.1.2 • Published 1 year ago

prismarine-mcstructure-unofficial v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

license Discord

prismarine-mcstructure-unofficial

This library converts between .mcstructure and prismarine-schematic(which can be exported as Sponge Schematic Version 2)

Currently supports mcstructure to prismarine-schematic conversion.

Install

npm install prismarine-mcstructure-unofficial

Usage

const fs = require('fs')
const path = require('path')
const { parseMcStructureBuffer } = require('prismarine-mcstructure-unofficial')

async function sample() {
  const sampleMcStructure = fs.readFileSync(
    path.join(__dirname, 'sample.mcstructure'),
  )
  const schematic = await parseMcStructureBuffer(sampleMcStructure)
  const schemBuffer = await schematic.write()
  fs.writeFileSync(path.join(__dirname, 'sample.schem'), schemBuffer)
}

sample()
1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago