Инструменты пользователя

Инструменты сайта


etc:minecraft

Minecraft

Bedrock server

Similar to what has been available for players of the Java Edition, dedicated Bedrock servers allow players on the Bedrock editions of Minecraft to set up their own servers at home on Windows and Linux computers, or host their server using a cloud-based service.
Dedicated Servers for Minecraft on Bedrock

DockerHub - Minecraft Bedrock Dedicated Server with selectable version

docker run -d -it -e EULA=TRUE -e UID=1000 -e GID=1000 -e GAMEMODE=survival -e DIFFICULTY=easy \
-e ONLINE_MODE=false -e PLAYER_IDLE_TIMEOUT=60 -e LEVEL_NAME=Minefriend \
-p 19132:19132/udp -v /home/user/mc-bedrock-data:/data itzg/minecraft-bedrock-server

Docker-compose

version: '2'

services:
  minecraft-bedrock-server:
    image: itzg/minecraft-bedrock-server
    environment:
      VERSION: latest
      EULA: "TRUE"
#      GAMEMODE: creative
      GAMEMODE: survival
      SERVER_NAME: SB129
#      ALLOW_CHEATS: "true"
    ports:
      - 19132:19132/udp
    volumes:
      - minecraft_data:/data
    stdin_open: true
    tty: true

Java server

DockerHub - Minecraft server with dynamic version, server types, and modpack support

Документация

mkdir -p mc/data
cd mc
nano docker-compose.yml
docker-compose.yml
version: '3.9'

services:
  mc:
    image: itzg/minecraft-server
    container_name: mc
    restart: unless-stopped
    environment:
      EULA: "true"
      TZ: "Europe/Moscow"
      ENABLE_ROLLING_LOGS: "true"
      DIFFICULTY: "easy"
      MODE: "survival"
      ONLINE_MODE: "false"
      SERVER_NAME: "My server"
    ports:
      - 25565:25565
    volumes:
      - ./data:/data

LinkageError occurred while loading main class net.minecraft.bundler.Main

[init] Starting the Minecraft server...
Error: LinkageError occurred while loading main class net.minecraft.bundler.Main
        java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled
        by a more recent version of the Java Runtime (class file version 65.0),
        this version of the Java Runtime only recognizes class file versions up to 61.0
2024-04-24T12:48:15.390+0300    WARN    mc-server-runner        Minecraft server failed.
Inspect logs above for errors that indicate cause. DO NOT report this line as an error.
{"exitCode": 1}

Решение - скачать новый образ и перезапустить контейнер.

docker pull
docker-compose up -d
docker image prune -f

Сервер как jar-файл

Можно использовать как пример java-приложения для деплоя, например, через Ansible.

https://www.minecraft.net/ru-ru/download/server
https://minecraft.wiki/w/Tutorials/Setting_up_a_server

sudo apt install openjdk-21-jre-headless
curl https://piston-data.mojang.com/v1/objects/59353fb40c36d304f2035d51e7d6e6baa98dc05c/server.jar -o deploy/files/minecraft.jar
 
cd deploy/files
 
# [08:37:51] [ServerMain/WARN]: Failed to load eula.txt
# [08:37:51] [ServerMain/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
echo "eula=true" > eula.txt
java -Xmx1024M -Xms1024M -jar minecraft.jar nogui

Add-ons

Каталоги в /data

  • resource_packs
  • behavior_packs

Туда нужно копировать соответствующие пакеты дополнения

.mcaddon - архив, содержащий всё необходимое, это переименованный zip. Нужно открыть его и распаковать каталоги в соответствующие папки в /data.

После перезапуска сервера проверить valid_known_packs.json - файл, где перечислены пакеты, там должны появиться добавленные дополнения.

Создать в папке «/data/worlds/Bedrock level» 2 файла, где будут ссылки на добавленные дополнения в /data/*_packs:

touch world_resource_packs.json
touch world_behavior_packs.json

В эти файлы нужно добавить uuid и version из соответствующих файлов /data/*_packs/addonName/manifest.json uuid нужно заменить на pack_id:

[
  {
    "pack_id": "02f9e909-1ee2-436e-b622-7a56a40dcfc8",
    "version": [ 1, 0, 0 ]
  }
]

https://youtu.be/nWBM4UFm0rQ?t=1379
Minecraft add-ons
Installing Addons (Minecraft Bedrock Edition)

В Windows

Местоположение каталогов дополнений:

cd "%userprofile%\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang"

https://mcpedl.com/how-to-install-addons-for-windows-10/

Избранные дополнения

Ben-10

Gravity Falls map

Bendy And The Ink Machine Add-on

https://mcpedl.com/bendy-and-the-ink-machine-add-on

The addon has music if you want to disable it type in

/function bruh

Wizard Staff

Portal Gun mod

For Minecraft PE: https://mcpedl.com/portal-gun-add-on

Before Installing:
Experimental Mode must be turned on in your world.

For Java: https://ichun.me/mods/portalgun/download/

Avatar

CC: Tweaked

CC: Tweaked is a fork of ComputerCraft, adding programmable computers, turtles and more to Minecraft.

https://www.curseforge.com/minecraft/mc-mods/cc-tweaked

del $env:appdata\.minecraft\mods\cc-tweaked-*.jar
mv $env:userprofile\downloads\cc-tweaked-*.jar $env:appdata\.minecraft\mods

Amberstone pack

«Крутая», «более реалистичная» графика. Для Java.

http://www.amberstonedream.com/en/pack1.php

MrCrayfish's Gun mod

One punch man

Sekwah41's Naruto Mod

Sonic Land Add-on

Для PE.

https://mcpedl.com/sonic-land-add-on/

  1. Download Resources .McPack.
  2. Download Behaviors .McPack.
  3. For Minecraft version +1.18.12 or +1.19 you will be required to download the «Block Geometry Fixed» patch and install it like any texture pack.
  4. Apply the packs for a world.
  5. Enable «Experimental Gameplay» in the world settings
  6. Create the world.

Kornelic 10K [16x] Best Bedwars Pack

Для Java.

https://www.youtube.com/watch?v=MD9PKGKpozg

Ссылки на скачивание в описании ролика.

Can Minecraft Skins in Java Edition be transferred to Bedrock Edition?

Yes, but it depends on what platform you’re playing Bedrock on. You can use custom skins on mobile (iOS, Android, Fire OS, Windows 10 Mobile) and Windows 10. Consoles (Xbox One, Switch) cannot.

  1. Obtain/download the skin file (.png)
  2. Launch Minecraft (Bedrock)
  3. Select the hanger icon on the main menu
  4. Select the blank player model in the Default section of the skin picker
  5. Select the skin file

https://www.reddit.com/r/Minecraft/comments/a0p789/can_minecraft_skins_in_java_edition_be/

etc/minecraft.txt · Последнее изменение: 06.09.2024 13:55 — viacheslav

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki