Compare commits

...

3 Commits

Author SHA1 Message Date
3a62a45283 添加开发指南 2026-03-26 00:17:44 +08:00
81b684393b 添加部署信息 2026-03-26 00:13:57 +08:00
d8e2056b97 把服务端文件单独拆分出来,以为以后更多服务器做准备 2026-03-26 00:09:08 +08:00
13 changed files with 43 additions and 4 deletions

View File

@ -2,9 +2,51 @@
一些最基础的功能的模组包,包括录制、光影、基本优化等。主打原版味道。
## 使用
## 开发
分为服务端和客户端两部分。服务端会在不同时间,安装不同的娱乐性质的模组。客户端则会努力保持不变。
使用 [packwiz](https://packwiz.infra.link) 进行模组包管理。
首先你要安装 packwiz。建议的是用 Golang 技术栈来直接安装:
```bash
go install github.com/packwiz/packwiz@latest
```
然后,进入对应的目录开始工作。例如要更改客户端相关:
```bash
cd client
```
### 添加模组
```bash
packwiz add https://modrinth.com/mod/create
```
### 构建 .mrpack 文件
```bash
packwiz modrinth export
```
## 服务端部署
参见 [该文档](https://packwiz.infra.link/tutorials/installing/packwiz-installer/)。
可以直接使用 Docker 来测试运行:
```bash
docker run --pull=always \
-e TYPE=FABRIC \
-e "PACKWIZ_URL=https://gitea.service.jazzwhom.top/Passthem/pt-minecraft-modpack/raw/branch/main/server-01-random-block/pack.toml" \
-e "EULA=TRUE" \
-e "VERSION=1.21.10" \
-p 25565:25565 \
itzg/minecraft-server
```
或者,需要从 [https://github.com/packwiz/packwiz-installer/releases](这里) 下载最新最热的 Installer以安装需要的文件。

View File

@ -1,5 +1,2 @@
build-client:
cd client && packwiz modrinth export
serve:
cd server && packwiz serve