? File Copier 模组
undefined
一款现代化的自动同步世界数据的复制/粘贴模组延续之作。
? 概览
一款适用于 Fabric 和 NeoForge 的 Minecraft 模组,可将 config/copy/ 中的文件复制到新创建的世界中。
功能特性
- 自动复制文件:将
config/copy/ 中的任何文件复制到新世界
- 数据包注入:位于
config/copy/datapacks/ 的数据包会在世界生成之前加载,使地形修改类数据包能够影响出生点区域
- 基于哈希值的更新:仅在文件发生更改时才进行复制(使用 MD5 哈希算法)
- 可配置选项:可选择是否将文件复制到已有世界,或仅复制到新建世界
文件夹结构
config/
├── copy/
│ ├── datapacks/ <- 在世界生成之前加载的数据包
│ │ ├── my_datapack/ <- 影响出生点的地形生成!
│ │ │ ├── pack.mcmeta
│ │ │ └── data/
│ │ └── another.zip <- 支持 Zip 压缩包
│ │
│ └── (其他文件) <- 在世界创建后复制到世界文件夹中
│
└── file_copier.properties <- 配置文件
工作原理
地形修改类数据包
放置在 config/copy/datapacks/ 中的数据包的通过 Mixin 在 World Generation 开始前被注入到 Minecraft 的包存储库系统中。这意味着:
- 自定义生物群系将在出生点生成
- 自定义结构将出现在初始地形中
- 世界生成功能从第一个区块开始即可生效
其他文件
直接放置在 config/copy/ 中的文件(不在 datapacks 子文件夹内)会在使用相同的相对路径结构的情况下,在世界创建后被复制到世界文件夹中。这对于希望包含 customnpc 数据或会自动神奇地复制到用户/服务器创建的任意世界中的蓝图(schematics)的整合包开发者来说非常有用。
配置
编辑 config/file_copier.properties:
# 设置为 false 则仅将文件复制到新世界
copyExisting=true
? 鸣谢
衷心感谢 Copy-Paste 的原始创作者提供的灵感:
-
Girafi (Copy-Paste)
-
JoshieJack (Copy-Paste)
-
Petey (Copied fork)
以及整个模组社区对现代工具链的支持。
本项目旨在让该实用功能在当前整合包创作者中继续发挥作用。 ❤️
? File Copier Mod
undefined
A modern continuation of the Copy-Paste / Copied mods for automatic world data syncing.
? Overview
A Minecraft mod for Fabric and NeoForge that copies files from config/copy/ into newly created worlds.
Features
- Automatic File Copying: Copies any files from
config/copy/ into new worlds
- Datapack Injection: Datapacks in
config/copy/datapacks/ are loaded before world generation, allowing terrain-modifying datapacks to affect the spawn area
- Hash-based Updates: Only copies files when they've changed (uses MD5 hashing)
- Configurable: Option to copy to existing worlds or only new ones
Folder Structure
config/
├── copy/
│ ├── datapacks/ <- Datapacks loaded BEFORE world generation
│ │ ├── my_datapack/ <- Affects terrain generation at spawn!
│ │ │ ├── pack.mcmeta
│ │ │ └── data/
│ │ └── another.zip <- Zip files supported
│ │
│ └── (other files) <- Copied into world folder after creation
│
└── file_copier.properties <- Configuration file
How It Works
Terrain-Modifying Datapacks
Datapacks placed in config/copy/datapacks/ are injected into Minecraft's pack repository system via Mixin before world generation begins. This means:
- Custom biomes will generate at spawn
- Custom structures will appear in the initial terrain
- Worldgen features work from the very first chunks
Other Files
Files placed directly in config/copy/ (not in the datapacks subfolder) are copied into the world folder after world creation, using the same relative path structure. This is fantastic for modpack devs who want to include customnpc data or schematics that will automagicaly copy into any world the user / server creates.
Configuration
Edit config/file_copier.properties:
# Set to false to only copy files into new worlds
copyExisting=true
? Credits
Huge thanks to the original creators of the Copy-Paste for the inspiration:
-
Girafi (Copy-Paste)
-
JoshieJack (Copy-Paste)
-
Petey (Copied fork)
And to the entire modding community for modern tooling support.
This project exists to keep the utility alive for current modpack creators. ❤️
评论 0
登录后参与评分
还没有评论,来抢沙发吧