git clone https://github.com/Mojang/leveldb-mcpe.git
cd leveldb-mcpe
git apply ../minecraft_mmccoo/snappy_compressor.cc.patch
git apply ../minecraft_mmccoo/table_test.cc.patch
make
Compile the code of this repo
First, compile the executeable
make
Now setup the web stuff
cd web_stuff
npm install
npm run build
Copy web files:
cp -r web_stuff/dist/* /var/www/<your page dir>
generate files for your world
cd /var/www/<your page dir>
// This will generate files in the map directory. The web htmls and js will look for that map directory
minecraft_mmccoo/basic_test
请发表评论