{"repo":"EngineHub/SchematicWebViewer","free":true,"listed":false,"github":"https://github.com/EngineHub/SchematicWebViewer","clone":"git clone https://github.com/EngineHub/SchematicWebViewer.git","description":"An NPM package to facilitate importing and viewing of modern Minecraft schematics.","language":"TypeScript","stars":77,"topics":["typescript","javascript","threejs","minecraft","schematic","renderer","worldedit","hacktoberfest"],"license":"MIT","category":"game-templates","readme_excerpt":"SchematicWebViewer An NPM package to facilitate importing and viewing of modern Minecraft schematics. Originally by cpdt and was available here. Usage This library requires a complete Minecraft resource pack in order to function. This means a resource pack that include all models, blockstates, and textures. As most resource packs only include what they have changed, they do not fit this criteria. Luckily, the Minecraft client jar file is formatted in the same way as a resource pack. To use this on your site, create a canvas element in your HTML that is able to be queried in the JavaScript. The renderSchematic function takes a few options. The first argument is the canvas element to render to. The second argument is a schematic file encoded in Base64. The schematic format must be supported by SchematicJS. The final argument is an options object that allows configuring various settings about how the schematic is rendered. The following properties are on the object, Notes on Cors-Anywhere Due to the way this works, it must have access to a Minecraft jar file. As redistribution of this file would be a breach of the license, and Mojang uses CORS on their download site, a cors-anywhere instance must be used to allow access to these jar files.","default_branch":null,"files":null,"tree":[],"storefront":"/r/EngineHub","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/EngineHub/SchematicWebViewer/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."}