1b8 / schematic Goto Github PK
View Code? Open in Web Editor NEWRead MCEdit/WorldEdit schematics in Node.js
Home Page: https://www.npmjs.com/package/mc-schematic
License: MIT License
Read MCEdit/WorldEdit schematics in Node.js
Home Page: https://www.npmjs.com/package/mc-schematic
License: MIT License
Am I doing something wrong here? I've tried to run the examples, but can't seem to get it to work. Even on the dev branch.
Could you possible provide more details on how you get this to run? It could be my node version or something. You may want to consider adding something like this to your package file:
...
"engines": {
"node": "0.12.7",
"npm": "2.11.4"
},
...
So, I (the user) know what version you are running for npm/node on your repo.
But yeah, any help would be really incredible to get this to run. Thanks so much!
The purpose of these prismarine-* libs is to put things in common between different js+minecraft project. Currently mineflayer and flying-squid use them.
It would be nice to try to use them here too so other projects can use this lib easily.
That would probably require some changes in these prismarine- libs, but that's okay, if we can find a common ground providing more features for everybody, that's better.
(of course that could happen later once you know more about what you need and all)
In practice for example, you could have a function that takes a raw item and return a prismarine-item (for this https://github.com/1b8/schematic/blob/master/lib/item.js), it seems like prismarine-item constructor would fit (https://github.com/PrismarineJS/prismarine-item#itemtype-count-metadata-nbt)
Using the example snippet, I get an error.
const Schematic = require("schematic")("1.9")
var Schematic = require("schematic")("1.9")
^
TypeError: require(...) is not a function
Using node v9.8.0
In package.json
(https://github.com/1b8/schematic/blob/master/package.json#L18) it looks like schematic is only using ^0.14.0
for minecraft-data
.
https://github.com/PrismarineJS/node-minecraft-data is on version 0.17.0
. Would it be a good idea to update this dependency version to get newer block data?
I thought that since it had the ^
before the 0.14.0
it would still actual download 0.17.0
, but it doesn't seem to do that. My node_modules
has minecraft-data
at 0.14.0
.
I managed to use your module to load schematics in flying-squid. Thank you for your work in this package!
(the loader is there https://github.com/rom1504/schematic-to-world fyi)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.