Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codehz/StoneServer
A modded minecraft bedrock edition server
https://github.com/codehz/StoneServer
Last synced: 3 months ago
JSON representation
A modded minecraft bedrock edition server
- Host: GitHub
- URL: https://github.com/codehz/StoneServer
- Owner: codehz
- License: agpl-3.0
- Created: 2018-12-01T07:08:07.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-08T15:40:44.000Z (over 5 years ago)
- Last Synced: 2024-07-28T13:24:47.059Z (3 months ago)
- Language: C
- Size: 11.6 MB
- Stars: 66
- Watchers: 11
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-minecraft-bedrock - StoneServer - A modded minecraft bedrock edition server. (Server)
README
# StoneServer
A modded minecraft bedrock edition server
Modified from MrARM's mcpelauncher-server for cloud-native
## Difference from MrARM's mcpelauncher-server
Removed features:
1. Read command from stdin
2. Custom argumentsAdded features:
1. WebSocket JSON-RPC 2.0 API Interface
2. Designed for container runtime (docker or my nsroot)
3. Scripting Feature! (with some custom scripting api)## Template for server.properities
```
activate-whitelist=false
player-idle-timeout=0.000000
gamemode=0
tick-distance=4
level-seed=
edu-mode=false
motd=A Minecraft Server
online-mode=false
level-generator=1
level-dir=world
level-name=world
experiment-mode=false
max-players=20
texturepack-required=false
server-port-v6=19133
force-gamemode=false
view-distance=10
difficulty=0
cheats-enabled=false
server-port=19132
server-ip=0.0.0.0
server-ip-v6=::
```PS1: You must turn on the experiment-mode to use the scripting feature
PS2: Turn on the cheats option to enable command in game
## Installation & Deployment
### Recommanded: using stonectl
1. Download prebuilt binary https://github.com/codehz/stonectl/releases/latest
2. `chmod +x ./stonectl`
3. `./stonectl install`
4. Create a empty directory for data (eg. 'MinecraftData)
5. `./stonectl start MinecraftData`PS: You can have multiple service instance(by create different directories)
#### Execute command (with realtime log)
`./stonectl attach MinecraftData`
#### Shutdown the server
`./stonectl stop MinecraftData`
### Using docker
image: codehz/stoneserver
```bash
docker run -p 19132:19132/udp -v game:/run/game -v data:/run/data codehz/stoneserver
```PS: You need a minecraft copy from MrARM's mcpelauncher
### Build from source
#### Dependencies
* cmake
* make
* glibc (i386)
* readline (i386)
* python3
* gcc/g++ (8.3.0+)#### Steps
```
git clone https://github.com/codehz/StoneServer
cd StoneServer
mkdir -p build
cd build
cmake ..
make
sudo make install
```And now you can run `stone` directly
## Other resources
(for external program, not for the scripting engine) JS API: [stoneapi-js](https://www.npmjs.com/package/stoneapi-js)
# COPYRIGHT
Copyright © 2019 CodeHz
Released under the AGPL 3.0
[LICENSE](./LICENSE)