Git Product home page Git Product logo

mine-ctrl-linux's Introduction

Overview

This repo assists to run a modern Minecraft server.

Pre-requisites

  • MacOS, Ubuntu or CentOS as a server OS

Setup

Copy you SSH key

from:

ssh-keygen -t rsa -b 2048
cat ~/.ssh/id_rsa.pub

to: GitHub - SSH keys

Prepare file structure

mkdir -p ~/mine
cd ~/mine

Clone this repo

git clone [email protected]:uprial/mine-ctrl-linux.git ctrl-linux

Pick server version

Check Java Edition version history

Install Java on MacOS

brew install openjdk

Check the output of the command above of how to finish the installation.

Check the server configuration

cp ctrl-linux/config.local.sh.sample ctrl-linux/config.local.sh
vim ctrl-linux/config.local.sh

Build a new server

Check Paper releases.

If Paper doesn't have the server version you picked, check simple instructions to build CraftBukkit and Spigot and try this:

./ctrl-linux/build-server.sh

Configure EULA

Start the server 1st time

./ctrl-linux/start-server.sh
stop
./ctrl-linux/clean-worlds.sh

You'll get an error message about EULA. Fix it:

sed -i '' 's/=false/=true/' eula.txt

Check the client works

Start the server 2nd time

Download a client launcher: https://ru-m.org/, install the same version as the server and check that the client works with the server. Then stop the server via /stop and clean the mess up:

Install plugins

Download the latest versions of plugins:

Check experimental plugins:

For each plugin hosted outside of www.spigotmc.org, please check its existence on www.spigotmc.org.

Check abandoned plugins for updates:

In case any updates in links, please update this document and also the CLIENT.md document.

Configure the basic params

Change LuckPerms storage-method in plugins/LuckPerms/config.yml:

storage-method: YAML

Enable TerraformGenerator, experimental in bukkit.yml:

worlds:
  world:
    generator: TerraformGenerator

Start the server 3rd time

Make your backup:

cp -r . ../m-clean
tar -zcf ../m-clean.tar.gz *

Configure all the params

Check previous configration differences in ./ctrl-linux/expected-diffs and the current differences generated in ./diffs via ./ctrl-linux/make-diff.sh. Configure the game until the difference in differences is negotiated.

Start the server 4rd time

Test Plugins

AuthMe

  • Register on the server

Bluemap

  • Open HTTP://<server.properties:server-ip>:<plugins/BlueMap/webserver.conf:port>

Commands

  • /morning should work
  • /ench_i @p should work

CraftBook

  • Create a sign with "[Chunk]" on the second line. A message should appear.
  • Create a railroad of 50 length, put under the 1st powered rail a block of gold. Max speed should be great.
  • Create a regular piston, on it put a sign with "[Crush]" on the second line. The piston should break blocks.

CustomCreatures

  • Once killed, you should have an apple and two modifiers.
  • Change chainmail-zombie.filter.probability to 99.5, /customcreatures reload, the zombie should appear.

CustomNukes

  • Put a TNT in center and 8 x SAND, forge a Toy bomb, trigger a chain of 8 Toy bombs via Flint & Steel

CustomRecipes

  • Put an Egg in center and 8 x GUNPOWDER, forge a Creeper spawn egg.

CustomVillage

NastyIllusioner

  • Chahge per_second_trigger_probability to 99.1, tly for one minute in creative mode in one direction close to the surface, ensure an illusioner appears

TakeAim

  • Summon a Skeleton and a Ghast, take a long distance from them, they should aim at you when you're simultaneously moving and jumping

WorldBorder

  • Reach the world border

WorldEdit

  • Take a wooden axe, pick start via left-click, pick end via right-click, //set sand

WorldGuard

  • Take a wooden axe, pick start via left-click, pick end via right-click, /rg claim test

Setup server

Add your host public key to ~/.ssh/authorized_keys.

tar -zcf mine-0.tar.gz *
scp mine-0.tar.gz root@remote-host:~/

ssh root@remote-host -t "screen -RD mine"
mkdir -p mine
cd mine
mv ../mine-0.tar.gz ./
tar -xf mine-0.tar.gz
find . -name '._*' -exec rm {} \;

Check server.properties:server-ip

Check plugins/BlueMap/webserver.conf:port

./ctrl-linux/start-server-continuous.sh
Ctrl+a, d

Install mcrcon

cd ./ctrl-linux
git clone https://github.com/Tiiffi/mcrcon
cd mcrcon/
vim README.md
make
sudo make install

Setup backups

cp ./ctrl-linux/data/m-cron /etc/cron.d/

Check backups work. :-)

Render the map

/bluemap update world

See also

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.