/RegionFileUpdater

A MCDR plugin to help you update region files in game

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Region File Updater

一个更新本服区域文件至生存服 !!qb 存档区域文件的插件

需要 MCDReforged v1.0 以上

需要 MinecraftDataAPI

A MCDR plugin to help you update region files in game

MCDReforged v1.0+ is required

MinecraftDataAPI is needed

指令说明 / Command description

!!region 显示帮助信息 / show help message

!!region add 添加玩家所在位置的区域文件 / add the region file where the player is in

!!region add [d] [x] [z] 添加指定的区域文件 / add a specific region file

!!region del 删除玩家所在位置的区域文件 / delete the region file where the player is in

!!region del [d] [x] [z] 删除指定的区域文件 / delete a specific region file

!!region delete-all 删除所有区域文件 / delete all region files

!!region list 列出待更新的区域文件 / list all added region files

!!region history 输出上一次update的结果 / print the result of the latest update

!!region update 更新列表中的区域文件,这将重启服务器 / update all selected region files, which will restart the server

参数说明 / Parameter Description

[d]: 维度序号,主世界为0,下界为-1,末地为1 / dimension index, overworld: 0, nether: -1, end: 1

[x] [z]: 区域文件坐标,如r.-3.1.mca的区域文件坐标为x=-3 z=1 / the coordinate of the region file, for example r.-3.1.mca's coordinate is x=-3 z=1

例子 / Sample

!!region add 0 3 2 添加主世界的r.3.2.mca至更新列表 / add overworld's r.3.2.mca to the updating list

配置 / Config

1.17+ 的存档中, 实体相关数据被单独存储到之前的区块数据之外

可以修改配置项 dimension_region_folder 如下, 来让实体数据在更新时也进行同步

For 1.17+, the entities data was saved in an specified folder outside region folder.

You can modify the config dimension_region_folder to make entities sync during region update

{
    "enabled": true,
    "source_world_directory": "./qb_multi/slot1/world",
    "destination_world_directory": "./server/world",
    "dimension_region_folder": {
        "-1": ["DIM-1/region", "DIM-1/poi", "DIM-1/entities"],
        "0": ["region", "poi", "entities"],
        "1": ["DIM1/region", "DIM1/poi", "DIM1/entities"]
    }
}