前置き

できるような、できないような感じなんですが、amd64 の Ubuntuを入れることができれば可能なんですよね。

ただ、ここで紹介した方法を友達と遊ぶ目的でサーバーを動かすのは現実的でない(サーバーの負荷が高い&ラグい&待ち時間がストレスな)ので、普通にWindowsでサーバーを動かした方がいいです。

本編

初手に次のコマンドを実行 (termux パッケージ更新と必要なパッケージのインストール、インストーラースクリプトダウンロードと実行、実行権限付与とUbuntuを実行するコマンドが含まれます。)

pkg update -y && pkg install wget curl proot tar -y && wget <https://raw.githubusercontent.com/AllPlatform/Termux-UbuntuX86_64/master/Ubuntu-AMD64.sh> -O ubuntu-amd64.sh && chmod +x ubuntu-amd64.sh && bash ubuntu-amd64.sh && ./start-ubuntu64.sh

(もし以下のメッセージが出たら) y 入力でエンター

It appears that directory '~/storage' already exists.
This script is going to rebuild its structure from
scratch, wiping all dangling files. The actual storage
content IS NOT going to be deleted.

Do you want to continue? (y/n) y

インストールが正常に終了したら、自動でamd64のUbuntuが開かれます。

root@localhost:~#

上の状態になっているなら、

最低限のセットアップと、Bedrock Server をダウンロード&展開。

apt update -y && apt upgrade -y && apt install curl wget unzip -y && wget <https://minecraft.azureedge.net/bin-linux/bedrock-server-1.20.41.02.zip> -O bedrock_server.zip && unzip bedrock_server.zip