You can find docker-compose.yml
file in the github repo.
This tutorial is written for user that don't want to use Docker (or Archlinux).
git
cmake
make or ninja
jq
curl
redis-server
Minecraft 1.9.0.15 x86 apk
Linux kernal 4.4+ (and enabled user namespace feature) WSL is not support
git clone https://github.com/minecraft-linux/mcpelauncher-extract
- build it
(cd mcpelauncher-extract && mkdir -p build && cd build && cmake .. && cmake --build . && sudo cmake --build . --target install)
- extract apk
mcpelauncher-extract <minecraft>.apk game
- (optional) clean up
onlygame
folder is needed - download launcher core
curl -fsSL https://stone.codehz.one/dump.sh | bash -eE
- extract it
(mkdir -p core/{tmp,proc,dev} && cd core && tar xvf ../dump.tar.gz)
- create data folder
mkdir -p data
- download
nsroot
curl -o nsroot https://stone.codehz.one/nsroot && chmod +x nsroot
- modify redis config
addunixsocket /tmp/apid.socket
to/etc/redis.conf
- start redis-server daemon
systemctl start redis
- start the minecraft server
./nsroot -xr core -w /run -b /tmp -b data:/run/data -b game:/run/game -b /proc -b /dev ./stone
- It is unstable software (compare to official BDS). And sometime it may destroy your world, so dont forget to backup.
- If you want to use command, you should install cli tools for StoneServer (see below)
- To enable the scripting feature, you need to set the
experiment-mode
totrue
indata/server.properities
- Only server side script will work...
- You can use dump.sh to update the server core. (and re-extract)
- The extra API for script: https://github.com/codehz/minecraft-scripting-typings-server-side/blob/master/types/stone.d.ts
node
npm
cmake 3.12
make or ninja
gcc-8.2.1 or clang 7.0
npm install -g stoneapi-js
add--unsafe-perm
if you want to install as root userstonecli
screenshot
