{"repo":"PrismarineJS/prismarine-schematic","free":true,"listed":false,"github":"https://github.com/PrismarineJS/prismarine-schematic","clone":"git clone https://github.com/PrismarineJS/prismarine-schematic.git","description":"Read and write schematic of any minecraft version, provide them in a convenient and stable API","language":"JavaScript","stars":32,"topics":["minecraft","schematics","3d"],"license":"MIT","category":"game-templates","readme_excerpt":"prismarine-schematic Read, write and manipulate minecraft schematics. Supported formats: Sponge (Read/Write) MCEdit (Read only) Usage API Schematic A schematic instance. version : the mc version of this schematic size : vec3, the size in blocks offset : vec3, offset from 0 palette : list of stateIds for the palette of this schematic blocks: indices in the palette for each blocks in y, z, x order Schematic.start() Return the start coordinate of this schematic. Schematic.end() Return the end coordinate of this schematic. Schematic.forEach(cb) calls the callback on every block in the schematic. the callback is called with args (block, pos) . Schematic.map(cb) returns an array of the results from calling the callback on every block in the schematic. the callback is called with args (block, pos) . Schematic.makeWithCommands(offset, platform = 'pc') platform is a optional parameter. It can be pc (default) or pe to account for a different command style between Java and Pocket Edition. returns an array of commands to run to make the schematic in a vanilla server. the offset is a vec3 instance that is applied by .offset on each block in the schematic. In 1.13+, there are block states as an array in the commands In 1.11+, there are block states as metadata as a number in the commands In <1.11, there is no block state, just the block in the commands Schematic.getBlockStateId(pos) Get the stateId of the block at pos . pos must be between start() and end() . Schematic.getBlock(pos) Get th","default_branch":null,"files":null,"tree":[],"storefront":"/r/PrismarineJS","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PrismarineJS/prismarine-schematic/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}