Package Exports
- minecraft-bedrock-server
- minecraft-bedrock-server/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (minecraft-bedrock-server) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
minecraft-bedrock-server
Simple command line/software interface for starting a Minecraft bedrock server
Running & Installation
Start a server through the command line:
npx minecraft-bedrock-server -v 1.18.0
Or with npm to use programmatically:1
npm install minecraft-bedrock-server
Usage
via command line
npx minecraft-bedrock-server --help
npx minecraft-bedrock-server --version 1.18.0 --online --path ./my1.18server
any extraneous -- options will be placed inside the server.properties file, e.g. --level-name coolWorld.
via code
see index.d.ts
const bedrockServer = require('minecraft-bedrock-server')
const onStart = () => console.log('Server started!')
bedrockServer.startServer('1.18.0', onStart, { 'server-port': opt.port, 'online-mode': Boolean(opt.online), path: opt.path ? opt.path : undefined })Help screen
minecraft-bedrock-server - v1.0.0
Minecraft Bedrock Server runner
Options:
--version, -v Version to connect as
--port Port to listen on (default: 19132)
--online Whether to run in online mode
--path Custom path to the server directoryTesting
npm test
History
See history