我的世界服务端部署

# https://dl.2011101.xyz/教程/教你开一个Minecraft Java版服务器(Forge_Fabric_一些没用的教程) - 哔哩哔哩 (2024_7_26 16_34_38).html

# 使用systemdos+一键命令行部署+zerotier连接
apt install openjdk-21-jdk
# 安装 Forge 版本支持mod
# https://files.minecraftforge.net/net/minecraftforge/forge/
Forge 1.20.1 Java  (支持模组, pc会不定时闪退, 手机无法使用)
# 或者手动安装(安装页面右键复制下载地址), 1.16.5, 命令行运行:
# wget https://maven.minecraftforge.net/net/minecraftforge/forge/1.16.5-36.2.42/forge-1.16.5-36.2.42-installer.jar
# java -jar forge-1.16.5-36.2.42-installer.jar --installServer
# https://piston-data.mojang.com/v1/objects/1b557e7b033b583cd9f66746b7a9ab1ec1673ced/server.jar
# /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar forge-1.16.5-36.2.42.jar
# 低版本需要这个mod开启多人游戏: https://github.com/MCTeamPotato/MultiOfflineFix/releases 和 openjdk-8-jdk

## 需要修改 eula.txt 文件, 同意协议
# /opt/mcsmanager/daemon/data/InstanceData/1070c614734b48aab6242ffd2cc7dac8/eula.txt
eula=true

# [关闭正版验证]: 否则需要使用微软帐户登录;关闭之后使用本地帐户登录(否则登录提示无效对话)
# 修改eula之后才会生成
vim server.properties
online-mode=false

# 如果是安卓手机的termux, jdk8的版本用这个
https://github.com/Hax4us/java/releases
  • 客户端

# 移动端
# 支持皮肤登录,且维护
https://github.com/FCL-Team/FoldCraftLauncher/releases
# 支持皮肤登录,但是没有维护了
https://github.com/AOF-Dev/MCinaBox/releases
# 支持皮肤登录,但是没有维护了
https://github.com/HMCL-dev/HMCL-PE/releases
# 不支持皮肤登录,维护中
# https://github.com/PojavLauncherTeam/PojavLauncher
https://pojavlauncherteam.github.io/INSTALL.html#android

# pc端
https://github.com/HMCL-dev/HMCL
D:\work\zulu17.48.15-ca-jdk17.0.10-win_x64\bin\java -jar .\HMCL-3.5.8.249.jar
# flatpak 这个功能强大
org.polymc.PolyMC
  • 开始游玩

# 打开客户端启动器也安装相同版本的软件 1.20.1 + Forge配置
  • 配置mod-宝可梦 选择对应的版本

# 服务端位置, 上传jar到mods文件夹里面
/opt/mcsmanager/daemon/data/InstanceData/1070c614734b48aab6242ffd2cc7dac8/mods
# 安卓
\Android\data\net.kdt.pojavlaunch.debug\files\.minecraft\mods

# 物品栏鼠标连点(放到客户端, shift+鼠标左键)
https://www.curseforge.com/minecraft/mc-mods/mouse-tweaks
# 苹果皮饱食度查看(客户端安装)
https://www.curseforge.com/minecraft/mc-mods/appleskin


# 方块宝可梦
https://modrinth.com/mod/cobblemon/versions
https://www.curseforge.com/minecraft/mc-mods/kotlin-for-forge/files/4578885

# 僵尸世界

# pixelmon宝可梦(手机无法游玩)
https://www.curseforge.com/minecraft/mc-mods/pixelmon

# 服务端和客户端都需要放到mods文件夹; 都需要重新启动生效


# 僵尸启示录(与jei不兼容); 安装复制mods和config文件夹
https://www.curseforge.com/minecraft/modpacks/zombie-apocalypse-renewed

# 右上角地图
https://www.curseforge.com/minecraft/mc-mods/journeymap
# 白日僵尸+武器包
ttps://www.curseforge.com/minecraft/mc-mods/day-zombies-rebooted
https://www.curseforge.com/minecraft/mc-mods/apocalypse-now

# 枪支包, 物品搜索gun或者amm; 换弹: 把子弹拿到物品栏按R
https://www.curseforge.com/minecraft/mc-mods/just-enough-guns
https://www.curseforge.com/minecraft/mc-mods/mo-than-enough-guns
# 依赖
https://www.curseforge.com/minecraft/mc-mods/geckolib
https://www.curseforge.com/minecraft/mc-mods/framework


# 更强大的fps,[TaCZ]永恒枪械工坊; 物品搜索tac
https://www.curseforge.com/minecraft/mc-mods/timeless-and-classics-zero
# 多加配合枪包
https://www.curseforge.com/minecraft/mc-mods/timeless-and-classic-guns-tac


# 合成助手
https://www.curseforge.com/minecraft/mc-mods/jei
# 生物多样性
https://www.curseforge.com/minecraft/mc-mods/biomes-o-plenty
https://www.curseforge.com/minecraft/mc-mods/terrablender

# 工具和武器
Tinkers' Construct
# 食物和农业
Pam's HarvestCraft
# 储存
Storage Drawers
# 建筑
Chisel
# 按键
Controlling
  • 创建登录验证器

# 使用第三方littleskin(这几个客户端是支持的), 先进网站注册, 推荐ely.by
https://littleskin.cn/api/yggdrasil
# https://github.com/yushijinhun/authlib-injector/wiki#%E6%8E%A8%E8%8D%90%E7%9A%84%E5%85%AC%E5%85%B1%E9%AA%8C%E8%AF%81%E6%9C%8D%E5%8A%A1%E5%99%A8
https://ely.by
https://littlesk.in


# 自建Yggdrasil协议验证器: 客户端authlib-injector+服务端blessing-skin-server
# https://github.com/yushijinhun/authlib-injector/wiki/%E5%90%AF%E5%8A%A8%E5%99%A8%E6%8A%80%E6%9C%AF%E8%A7%84%E8%8C%83#%E6%B7%BB%E5%8A%A0%E5%90%AF%E5%8A%A8%E5%8F%82%E6%95%B0
https://github.com/yushijinhun/authlib-injector
https://github.com/bs-community/blessing-skin-server
  • 手柄控制

# forge 用(手机运行不能要这个, 否则崩溃)
https://www.curseforge.com/minecraft/mc-mods/controllable
# 依赖
https://www.curseforge.com/minecraft/mc-mods/framework

# Fabric 用
# https://www.curseforge.com/minecraft/mc-mods/midnightcontrols
  • 服务端运行之后可执行命令

# 把jcleng加作管理员, 会写到ops.json里面去
/op jcleng

# 创造模式
/gamemode creative
# 生存模式
/gamemode survival

# 服务端重新生成世界: 删除服务端的world文件夹
rm -rf ./world
  • 服务端配置文件

level-type=minecraft\:normal

    DEFAULT(默认类型)
    FLAT(平坦世界)
    LARGE_BIOMES(大生物群系)
    AMPLIFIED(增强型世界)
    CUSTOM(自定义世界)

level-type=LARGE_BIOMES


# 在指令方块里面执行指令(循环执行最好创建一个高地敲碎停止, 否则很难停止)
/give @p command_block
/summon minecraft:zombie ~ ~ ~

# 晚上/白天
/time set night
/time set day

# 客户端设置 .minecraft/options.txt
## 失焦不显示菜单
pauseOnLostFocus:false
  • 典型设置

#Minecraft server properties
#Mon Jul 29 05:39:52 GMT 2024
allow-flight=false
allow-nether=true
broadcast-console-to-ops=true
broadcast-rcon-to-ops=true
difficulty=easy
enable-command-block=true
enable-jmx-monitoring=false
enable-query=false
enable-rcon=false
enable-status=true
enforce-secure-profile=true
enforce-whitelist=false
entity-broadcast-range-percentage=100
force-gamemode=false
function-permission-level=2
gamemode=survival
generate-structures=true
generator-settings={}
hardcore=false
hide-online-players=false
initial-disabled-packs=
initial-enabled-packs=vanilla
level-name=world
level-seed=
level-type=large_biomes
max-chained-neighbor-updates=1000000
max-players=20
max-tick-time=60000
max-world-size=29999984
motd=A Minecraft Server
network-compression-threshold=256
online-mode=false
op-permission-level=4
player-idle-timeout=0
prevent-proxy-connections=false
pvp=true
query.port=25565
rate-limit=0
rcon.password=
rcon.port=25575
require-resource-pack=false
resource-pack=
resource-pack-prompt=
resource-pack-sha1=
server-ip=
server-port=25565
simulation-distance=10
spawn-animals=true
spawn-monsters=true
spawn-npcs=true
spawn-protection=16
sync-chunk-writes=true
text-filtering-config=
use-native-transport=true
view-distance=10
white-list=false