iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🦁

Setting up a Cross-Play Minecraft Server for Java and Bedrock Editions with Geyser: Following the Redstone (8)

に公開

There are some interesting plugins out there

Have you ever thought about wanting to make an existing Minecraft Java server accessible to people who don't have a PC?
(I haven't.)
However, since I had the opportunity, I would like to organize how to do it here.

Setting up a custom server that can use the Bedrock edition of Minecraft.
It sounds a bit contradictory.
I'm not sure if full compatibility is maintained, but it seems it can be made possible by adding Spigot plugins.

They are:

Even though alternatives exist for Floodgate, it's safe to assume you will be using these two plugins as a set.

ヾ(・ω<)ノ" 三三三● ⅱⅲ Rolling along♪

------------------- ↓ The main topic starts here ↓-------------------

Setting up a Paper server with Docker

Since Spigot becomes inconvenient to use later on, I will use a Paper server.

Assuming the data directory is ~/minecraft_data/:

docker run -d -v ~/minecraft_data/:/data -p 25565:25565 -e TYPE=PAPER -e EULA=TRUE --name paper_geyser itzg/minecraft-server
# Wait until startup is complete...
docker stop paper_geyser

The following directory should now exist:

~/minecraft_data/plugins

Installing plugins

cd ~/minecraft_data/plugins
wget https://download.geysermc.org/v2/projects/geyser/versions/latest/builds/latest/downloads/spigot -O Geyser-Spigot.jar
wget https://download.geysermc.org/v2/projects/floodgate/versions/latest/builds/latest/downloads/spigot -O floodgate-spigot.jar
cd ..

Geyser configuration

Adjust the Geyser settings.
You need to start the server once to run it.

docker start paper_geyser
# Wait until startup is complete...
docker stop paper_geyser
nano ~/minecraft_data/plugins/Geyser-Spigot/config.yml
Geyser-Spigot/config.yml
remote:
  # ...
  # Authentication type. Can be offline, online, or floodgate (see https://github.com/GeyserMC/Geyser/wiki/Floodgate).
  # For plugin versions, it's recommended to keep the `address` field to "auto" so Floodgate support is automatically configured.
  # If Floodgate is installed and `address:` is set to "auto", then "auth-type: floodgate" will automatically be used.
-  auth-type: online
+  auth-type: floodgate

Connection test

Since the server has started, let's verify if you can connect.

Launch the Bedrock edition of Minecraft, and go to "Play" - "Servers" - "Add Server" to add the server.

Nowadays, the Bedrock edition has features that are ahead of the Java edition, so the benefits might be diminishing.

------------------- ↓ Postscript starts here ↓-------------------

Additional plugins

Minecraft generally does not run unless the client and server versions match, but it tends to be inconsistent when the Bedrock edition is involved.
Therefore, I add adjustment plugins so that it runs even if the versions are slightly different.
They are:

The installation method is the same as the plugin installation procedure; just download them into the plugins directory and restart the server.

Firewall settings

If you are connecting from an external device, you need to configure firewall settings.
Please refer to the previous article for this.
Building a Minecraft Bedrock Edition server with Docker and connecting via Switch : Chasing Redstone (7)

You need not only Bedrock edition port settings but also Java edition port settings, so I have listed the settings for the Java edition below.

TCP setting
- Rule type
    - Port
- Protocol and ports
    - TCP
    - Specific local ports
        - 25565
- Action
    - Allow the connection
- Profile
    - Keep as default
- Name
    - Minecraft JE TCP

Discussion