Set up a Minecraft resource (Spigot) server via docker (2)

It's a tofu house that I create anyway!

ヾ (・ ω <) ノ "Thirty-three-three ● Ⅱ Ⅲ

Related article: Set up a Minecraft resource (Spigot) server via docker

------------------- ↓ Digression from here ↓ -------------------

Minecraft When I build a server and actually operate it, There are many adjustments.

Normal world difficulty, The weather of the resource server and the appearance of monsters, If it's creative, it's time status.

If you think about multiple participants Command execution authority, action range area, Will the server be collectable? Do you take measures against vandalism?

This time, let's list the adjustment items after installation.


------------------- ↓ The main subject starts here ↓ -------------------

Multiple worlds

Normal world

If you haven't changed the config, the default difficulty is EASY. It may be a matter of taste, but I want to keep the difficulty level NORMAL.

Setting items Set value Details
difficulty normal Well, in normal
$ docker exec -i mc mcon-cli
> mv modify set difficulty normal world
§aSuccess!§f Property §bdifficulty§f was set to §anormal

Installation of resource server

The resource server basically resets. When you reset it, the things you took will be restored and the things you made will disappear. In that case, even if you make a portal or something with difficulty, it will disappear. I wonder if there is any good way. (No answer yet)

Also, it is better that a specific biome such as bamboo, snow, or the sea is close to the spawn zone. I also want to set the seed value

The settings are

Setting items Set value Details
weather false I want to keep the weather sunny
monsters false Monsters shouldn't boil
hunger false Direction of no hunger
doDaylightCycle false I want to fix the time

I wonder if it looks like this

$ docker exec -i mc mcon-cli
> mv create asset NORMAL -s 3116934447057457676
Starting creation of world 'asset'...
Complete!

> mv modify set weather false asset
§aSuccess!§f Property §bweather§f was set to §afalse

> mv modify set hunger false asset
§aSuccess!§f Property §bhunger§f was set to §afalse

> mv modify set monsters false asset
§aSuccess!§f Property §bmonsters§f was set to §afalse

> mvrule doDaylightCycle false asset
§aSuccess!§f Gamerule §bdoDaylightCycle§f was set to §afalse§f.

Installation of farm server

I want to multiply items on various farms and traps, It's boring to have it in the normal world As the number of mobs and entities increases, the server becomes heavier, so I want to separate each world. So prepare a farm server (If there are no people, time will stop, so that's the point of concern)

Production is in creative mode and operation is in survival mode.

The settings are

Setting items Set value Details
gamemode creative Put into creative mode
difficulty hard A wide variety of spring mons is better
weather false I want to keep the weather sunny
hunger false Direction of no hunger
doDaylightCycle false I want to fix the time

I wonder if it looks like this

$ docker exec -i mc mcon-cli
> mv create farm normal
> mv modify set gamemode creative farm
> mv modify set difficulty hard farm
> mv modify set weather false farm
> mv modify set hunger false farm
> mvrule doDaylightCycle false farm

Installation of experiment server

I want a server for experimenting with buildings and circuits to be installed in survival. You can do it locally, I will prepare an experiment server as well.

$ docker exec -i mc mcon-cli
> mv create test NORMAL -t FLAT
Starting creation of world 'test'...
Complete!

Server import

Since it is troublesome to recreate the experiment server and farm server for each new world, Import the world information of the created server

$ cp -R ~/minecraft_data/old_world/test ~/minecraft_data/new_world/
$ docker exec -i mc mcon-cli
> mvimport test NORMAL
Starting import of world 'test '...
§aComplete!

Limitation of range of action

As you know, the farther you move, the larger the server size. There seems to be a guy who uses this to troll. (I don't know)

That aside The size becomes unnecessarily large, I don't want to be heavy, so Let's see how it looks with only the range limit.

It seems that it was installed with a plug-in before, There seems to be a standard command now.

$ docker exec -i mc rcon-cli
> lp user Dozo permission set minecraft.command.* true

Execute the following command on Minecraft. For the time being, make it 10,000 blocks

/worldborder set 10000

I don't know how much is appropriate (・ ω ・)

World portal creation

Command input is the default for moving between worlds. You can go back and forth by entering commands while the user is logged in. Just give command authority to the user side It is not realistic for the server administrator to enter it each time, so I want to leave the move to the user without passing the authority.

** Multiverse-Portals ** to use in such a case

Authorized users actually build structures like the Nethergate on Minecraft. Set up a portal with a specific item (a wooden ax by default).

As a prerequisite, grant Multiverse-Portals permission to the user who creates the portal.

$ docker exec -i mc rcon-cli
> lp user Dozo permission set multiverse.* true

Let's assume that the resource world is asset, the normal world is world, and the gate is gate_world name.

  1. Create a structure like a nether gate in the normal world (any material is acceptable, but it is hard to break)
  2. Type "/ mvp wand" to get a wooden ax.
  3. Equip a wooden ax and left-click on the block at the corner of the gate
  4. Right-click on the opposite block on the diagonal
  5. Recognized as a portal with "/ mvp create gate_world"
  6. Go to the resource world and execute 1-4
  7. "/ mvp create gate_asset p: gate_world" recognizes as a portal connected to the normal world
  8. Enter "/ mvp select gate_world"
  9. Enter "/ mvp modify dest p: gate_world"

(I see. I don't know. (・ Ω ・))

The destination does not necessarily have to be a gate, If you specify the world, it will move to the spawn point, It seems that you can also specify the coordinates.

It seems that you can also make fast travel (shortcut) via the world. After all it seems to be made like Mario's clay pipe.

Note that authorized users will not be able to cut trees with a wooden ax. It can be used when the authority is removed.

[Creative Mode](https://minecraft-ja.gamepedia.com/%E3%82%AF%E3%83%AA%E3%82%A8%E3%82%A4%E3%83%86%E3% 82% A3% E3% 83% 96) will destroy the block, so Switch to Survival Mode Keep it. ([Spectator Mode](https://minecraft-ja.gamepedia.com/%E3%82%B9%E3%83%9A%E3%82%AF%E3%83%86%E3%82%A4%E3 % 82% BF% E3% 83% BC) Is it better?)

reference: https://w.atwiki.jp/minecraftdevip/pages/31.html

Maintain inventory when moving between worlds

I notice when I move to the world, Your luggage has been reset. This is true even if you move through the portal.

If you can't carry your luggage and go back and forth, the resource server is meaningless. ** Multiverse-Inventories ** to use in such a case You can come and go while holding your luggage

When the plug-in is installed, Since the name is set as default, Add additional servers as well.

> mvinv addworld asset default

------------------- ↓ Click here for the postscript ↓ -------------------

Paper Server

In the docker image (itzg / minecraft-server, maybe official) used this time, you can select the available server

I'm not sure what the characteristics of each are.

The server I used this time is Spigot, I switched to Paper, which is a derivative of this and is lighter. For the time being, it seems that the mods and plugins of Bukkit / Spigot can be applied as they are.

$ docker run -d -v ~/minecraft_data:/data -p 25565:25565 -e TYPE=PAPER -e EULA=TRUE --name mcp itzg/minecraft-server

By the way, I tried to migrate the whole world (entire directory) as it is, It seems to work fine.

Recommended Posts

Set up a Minecraft resource (Spigot) server via docker (2)
Set up a Minecraft resource (Spigot) server via docker
Set up a Samba server with Docker
[Part 1] Let's set up a Minecraft server on Linux
Set up a mail server using Twisted
Set up a simple HTTPS server in Python 3
Set up a simple HTTPS server with asyncio
Set up a local server with Go-File upload-
Set up a test SMTP server in Python.
Set up a UDP server in C language
Set up a local server with Go-File download-
How to set up a local development server
Set up a simple SMTP server in Python
Set up a file server on Ubuntu 20.04 using Samba
Set up a free server on AWS in 30 minutes
[Vagrant] Set up a simple API server with python
Yes, let's make a Minecraft server (Oracle Linux + Spigot + Geyser)
Set up a web server with CentOS7 + Anaconda + Django + Apache
Creating a Flask server with Docker
Set up Ubuntu as a Linux cheat sheet and https server
Send mail with mailx to a dummy SMTP server set up with python.
Set up a local web server in 30 seconds using python 3's http.server
Set up a server that processes multiple connections at the same time
Start a simple Python web server with Docker
Set up a Python development environment on Marvericks
Set up a file server using samba on ZeroPi of Friendly Arm [OS installation]
I want to set up a mock server for python-flask in seconds using swagger-codegen.
Set up a file server using samba on ZeroPi of Friendly Arm [Purchased Items]
Set up a file server using samba on ZeroPi of Friendly Arm [Personal import]