Code Monkey home page Code Monkey logo

efficient_minecraft's Introduction

About

This docker image utilizes the OpenJ9 virtual machine to provide a resource-efficient Minecraft server
Requires docker

Usage

Create a directory for server files and cd into it:

mkdir minecraft_server && cd minecraft_server

Download create_server file and make it an executable:

curl -o create_server https://raw.githubusercontent.com/jacadzaca/efficient_minecraft/master/create_server.sh && chmod +x create_server

To create all the needed files, and to start a latest-version Minecraft server, run:

./create_server

...you can also name your container by supplying an -n argument:

./create_server -n some-name

To extract the container's/server's IP address use:

docker inspect -f "{{ .NetworkSettings.IPAddress }}" <containerNameOrId>

The server is now up and running. You can now safely remove the script files:

rm build_image.sh create_*

Configuration

All the config files that are used by the server are located in the settings/ directory, you can edit them just like you would edit any other file. After each set of changes, restart the server

By default, the container's memory limit is set to 2GB. You can specify the maximum when creating a server:

./create_server -m {NUMBER}GB

...or you can use the create_container.sh script:

./create_container -m {NUMBER}GB

When not specifed, the script downloads the latest version of a Minecraft server. You can choose what version you prefer, by supplying the version during the server creation process:

./create_server -v 1.12.2

Types

You can specify what kind of server you would like to be created by supplying an -t argument. If no -t value is specifed, a Vanilla server will be created.

Forge Server

In order to create a Minecraft Forge server, you must specify the type, the Forge version and the Minecraft version coresponding to the Forge's version:

./create_server -t forge -v 1.12.2 -f 14.23.5.2854

Spigot Server

In order to create a Spigot server, you must only specify the type:

./create_server -t spigot

build_image and create_container scripts usages

create_container.sh [-m] (max memory) [-n] (container name) [-i] (docker image tag) [-t] (type)
build_image.sh [-v] (version) [-t] (type) [-f] (forge version)

RCON

You can enable RCON in the settings/server.properties file. By default, the container's 25575 port is exposed.

License

MIT
By using this program you agree to the Minecraft EULA

efficient_minecraft's People

Contributors

jacadzaca avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.