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

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


etc:minecraft

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слеваПредыдущая версия
Следующая версия
Предыдущая версия
etc:minecraft [24.03.2021 18:59] – [CC: Tweaked] viacheslavetc:minecraft [06.09.2024 13:55] (текущий) – [LinkageError occurred while loading main class net.minecraft.bundler.Main] viacheslav
Строка 1: Строка 1:
 +====== Minecraft ======
 +===== Bedrock server =====
 +Similar to what has been available for players of the Java Edition, dedicated Bedrock servers allow players on [[https://help.minecraft.net/hc/en-us/articles/360034753992-Different-Minecraft-Editions|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.\\
 +[[https://help.minecraft.net/hc/en-us/articles/360035131651-Dedicated-Servers-for-Minecraft-on-Bedrock-|Dedicated Servers for Minecraft on Bedrock]]
  
 +[[https://hub.docker.com/r/itzg/minecraft-bedrock-server|DockerHub - Minecraft Bedrock Dedicated Server with selectable version]]
 +
 +<code bash>
 +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
 +</code>
 +
 +Docker-compose
 +<code yaml>
 +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
 +</code>
 +
 +===== Java server =====
 +
 +[[https://hub.docker.com/r/itzg/minecraft-server|DockerHub - Minecraft server with dynamic version, server types, and modpack support]]
 +
 +[[https://docker-minecraft-server.readthedocs.io/en/latest/|Документация]]
 +
 +<code bash>
 +mkdir -p mc/data
 +cd mc
 +nano docker-compose.yml
 +</code>
 +
 +<file yaml 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
 +</file>
 +
 +==== LinkageError occurred while loading main class net.minecraft.bundler.Main ====
 +<code>
 +[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}
 +</code>
 +Решение - скачать новый образ и перезапустить контейнер.
 +<code bash>
 +docker pull
 +docker-compose up -d
 +docker image prune -f
 +</code>
 +
 +==== Сервер как jar-файл ====
 +Можно использовать как пример java-приложения для деплоя, например, через Ansible.
 +
 +https://www.minecraft.net/ru-ru/download/server\\
 +https://minecraft.wiki/w/Tutorials/Setting_up_a_server
 +<code bash>
 +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
 +</code>
 +
 +===== Add-ons =====
 +Каталоги в /data
 +  * resource_packs 
 +  * behavior_packs
 +Туда нужно копировать соответствующие пакеты дополнения
 +
 +.mcaddon - архив, содержащий всё необходимое, это переименованный zip. Нужно открыть его и распаковать каталоги в соответствующие папки в /data.
 +
 +После перезапуска сервера проверить valid_known_packs.json - файл, где перечислены пакеты, там должны появиться добавленные дополнения.
 +
 +Создать в папке "/data/worlds/Bedrock level" 2 файла, где будут ссылки на добавленные дополнения в /data/*_packs:
 +<code bash>
 +touch world_resource_packs.json
 +touch world_behavior_packs.json
 +</code>
 +
 +В эти файлы нужно добавить uuid и version из соответствующих файлов /data/*_packs/addonName/manifest.json
 +uuid нужно заменить на pack_id:
 +<code json>
 +[
 +  {
 +    "pack_id": "02f9e909-1ee2-436e-b622-7a56a40dcfc8",
 +    "version": [ 1, 0, 0 ]
 +  }
 +]
 +</code>
 +
 +[[https://youtu.be/nWBM4UFm0rQ?t=1379]]\\
 +[[https://www.minecraft.net/en-us/addons|Minecraft add-ons]]\\
 +[[https://support.aternos.org/hc/en-us/articles/360042095232-Installing-Addons-Minecraft-Bedrock-Edition-|Installing Addons (Minecraft Bedrock Edition)]]
 +
 +==== В Windows ====
 +Местоположение каталогов дополнений:
 +<code>
 +cd "%userprofile%\AppData\Local\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang"
 +</code>
 +https://mcpedl.com/how-to-install-addons-for-windows-10/
 +
 +===== Избранные дополнения =====
 +==== Ben-10 ====
 +https://mcpedl.com/ben-10-add-on
 +==== Gravity Falls map ====
 +https://mcpedl.com/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
 +<code>
 +/function bruh
 +</code>
 +
 +==== Wizard Staff ===
 +Для java.\\
 +https://lifehacker.ru/kak-ustanovit-mody-na-minecraft/\\
 +https://files.minecraftforge.net/\\
 +https://www.curseforge.com/minecraft/mc-mods/wizard-staff
 +<code powershell>
 +# положить туда .jar
 +$env:appdata\.minecraft\mods
 +</code>
 +
 +==== Portal Gun mod ====
 +
 +For Minecraft PE: https://mcpedl.com/portal-gun-add-on
 +
 +<WRAP round important 60%>
 +Before Installing:\\
 +Experimental Mode must be turned on in your world.
 +</WRAP>
 +
 +For Java: https://ichun.me/mods/portalgun/download/
 +
 +==== Avatar ====
 +For Minecraft PE: https://mcpedl.com/avatar-the-last-airbender/
 +
 +Avatar Mod 2: Out of the Iceberg (Java): https://www.curseforge.com/minecraft/mc-mods/avatar-mod-2-out-of-the-iceberg
 +
 +==== 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
 +<code powershell>
 +del $env:appdata\.minecraft\mods\cc-tweaked-*.jar
 +mv $env:userprofile\downloads\cc-tweaked-*.jar $env:appdata\.minecraft\mods
 +</code>
 +
 +==== Amberstone pack ====
 +"Крутая", "более реалистичная" графика. Для Java.
 +
 +http://www.amberstonedream.com/en/pack1.php
 +
 +==== MrCrayfish's Gun mod ====
 +https://minecraft-inside.ru/mods/67638-mrcrayfishs-gun.html
 +
 +==== One punch man ====
 +https://www.planetminecraft.com/data-pack/one-punch-man-5164792/
 +
 +==== Sekwah41's Naruto Mod ====
 +https://www.curseforge.com/minecraft/mc-mods/sekwah41s-naruto-mod\\
 +Требует https://www.curseforge.com/minecraft/mc-mods/sekclib
 +
 +==== Sonic Land Add-on ====
 +Для PE.
 +
 +https://mcpedl.com/sonic-land-add-on/
 +
 +  - Download Resources .McPack.
 +  - Download Behaviors .McPack.
 +  - For Minecraft version +1.18.12 or +1.19 you will be required to download the "[[https://mcpedl.com/leaving/?url=https%3A%2F%2Fen.nido-de-addons.com%2Fblock-geometry-fixed|Block Geometry Fixed]]" patch and install it like any texture pack.
 +  - Apply the packs for a world.
 +  - Enable "Experimental Gameplay" in the world settings
 +  - 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.
 +  - Obtain/download the skin file (.png)
 +  - Launch Minecraft (Bedrock)
 +  - Select the hanger icon on the main menu
 +  - Select the blank player model in the Default section of the skin picker
 +  - Select the skin file
 +https://www.reddit.com/r/Minecraft/comments/a0p789/can_minecraft_skins_in_java_edition_be/

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki