JourneyMap Land Registry
一个面向客户端的 Fabric 附加组件,用于 JourneyMap,可在本地 SQLite 数据库中记录地块、所有者、指定用途、颜色、标签以及已主张的区块。注册的地块会以彩色叠加层的形式显示在 JourneyMap 上。
[!IMPORTANT]
本模组仅提供信息展示,且仅对单个 Minecraft 客户端本地有效。它不会在服务器上强制执行土地主张,不会与其他玩家同步数据,也不会验证所有权。
依赖要求
- Minecraft 26.1.2
- Fabric Loader 0.19.3 或更高版本
- Fabric API 0.155.2+26.1.2 或兼容版本
- JourneyMap 26.1.2-6.0.2 for Fabric 或更高版本的兼容发布版
- Java 25
安装步骤
- 为 Minecraft 26.1.2 安装 Fabric Loader。
- 下载适用于 Minecraft 26.1.2 的 Fabric API 和 JourneyMap。
- 下载 JourneyMap Land Registry 的发布版 JAR 文件。
- 将这三个模组的 JAR 文件全部放入 Minecraft 的
mods 目录中。
- 使用 Fabric 配置文件启动 Minecraft。
JourneyMap Land Registry 仅限客户端使用。服务器无需安装此模组。
基本用法
打开世界或加入服务器,并确保 JourneyMap 已开始对该世界进行地图绘制。地块数据会为每个已映射的世界单独存储。
创建地块并将你当前站立的区块添加进去:
/parcel create Spawn
/parcel chunk add Spawn
单独运行 /parcel 命令会显示你当前所在区块的地块信息。使用 /parcel info <parcel> 可按名称检查特定地块。
新建的地块会自动分配一种与现有地块颜色形成对比的随机唯一颜色。你可以手动更改颜色,或使用自动配色功能使相邻地块的颜色保持区分。
命令
| 命令 |
描述 |
/parcel |
显示你当前所在区块的地块信息。 |
/parcel list |
列出所有地块及其包含的区块数量。 |
/parcel info <parcel> |
显示某地块的所有者、用途、颜色、区块和标签。 |
/parcel create <name> |
创建地块。 |
/parcel rename <parcel> <name> |
重命名地块。 |
/parcel delete <parcel> |
删除地块。 |
/parcel export <path> |
导出完整土地注册数据库的一致性副本。 |
/parcel import <path> |
在创建备份后,从导出的数据库替换当前的注册表。 |
/parcel chunk add <parcel> |
将你当前所在的区块添加到地块中。 |
/parcel chunk add <parcel> <chunkX> <chunkZ> |
将你当前维度中指定的区块坐标添加到地块中。 |
/parcel chunk remove <parcel> |
将你当前所在的区块从地块中移除。 |
/parcel owner list |
列出已注册的所有者。 |
/parcel owner create <name> |
创建所有者。 |
/parcel owner set <parcel> <owner> |
为地块分配所有者。 |
/parcel owner reset <parcel> |
重置地块,使其变为无主状态。 |
/parcel use set <parcel> <use> |
设置地块的指定用途。 |
/parcel use reset <parcel> |
将指定用途重置为 Custom(自定义)。 |
/parcel description set <parcel> <description> |
设置地块的描述。 |
/parcel description reset <parcel> |
清除地块的描述。 |
/parcel color set <parcel> <rrggbb[aa]> |
设置 RGB 颜色,并可选地设置透明度覆盖值。 |
/parcel color auto enable <parcel> |
启用自动配色,使该地块与共享区块边缘的地块形成对比。 |
/parcel color auto disable <parcel> |
保持地块的当前颜色,并停止自动更新。 |
/parcel color reset <parcel> |
将颜色重置为青色,并使用全局地块不透明度。 |
/parcel tag add <parcel> <tag> |
向地块添加标签。 |
/parcel tag remove <parcel> <tag> |
从地块移除标签。 |
/parcel tag reset <parcel> |
清除地块的所有标签。 |
/parcel reset <parcel> |
重置地块的所有者、用途、描述、颜色和标签。 |
地块组
地块组允许将相同的管理操作事务性地应用于多个地块。一个地块可以属于多个组。删除组只会移除组和其成员关系;地块本身仍保留注册状态。
| 命令 |
描述 |
/parcel group list |
列出地块组及其成员数量。 |
/parcel group info <group> |
列出组内的地块。 |
/parcel group create <name> |
创建地块组。 |
/parcel group rename <group> <name> |
重命名地块组。 |
/parcel group delete <group> |
删除组而不删除其中的地块。 |
/parcel group add <group> <parcel> |
将地块添加到组中。 |
/parcel group remove <group> <parcel> |
将地块从组中移除。 |
/parcel group owner set <group> <owner> |
为组内所有地块分配所有者。 |
/parcel group owner reset <group> |
重置组内所有地块,使其变为无主状态。 |
/parcel group use set <group> <use> |
设置组内所有地块的指定用途。 |
/parcel group use reset <group> |
重置组内所有地块的指定用途。 |
/parcel group description set <group> <description> |
设置组内所有地块的描述。 |
/parcel group description reset <group> |
清除组内所有地块的描述。 |
/parcel group color set <group> <rrggbb[aa]> |
为组内所有地块设置 RGB 颜色和可选的透明度。 |
/parcel group color auto enable <group> |
为组内所有地块启用自动配色。 |
/parcel group color auto disable <group> |
为组内所有地块禁用自动配色。 |
/parcel group color reset <group> |
重置组内所有地块的颜色。 |
/parcel group tag add <group> <tag> |
向组内所有地块添加标签。 |
/parcel group tag remove <group> <tag> |
从组内所有地块移除标签。 |
/parcel group tag reset <group> |
清除组内所有地块的标签。 |
/parcel group reset <group> |
重置组内所有地块的元数据。 |
命令补全功能会建议现有的地块和所有者名称。如果地块名称中包含空格且后面跟随其他参数,请用地引号将其括起来,例如:
/parcel owner set "Town Square" Builder
/parcel color set "Town Square" 00FFFF
/parcel color set "Town Square" 00FFFF80
/parcel chunk add "Town Square" -4 12
八位颜色使用 RRGGBBAA 格式;例如,00FFFF80 表示透明度约为 50% 的青色。六位 RGB 颜色继续遵循 Mod Menu 中区块不透明度的设置。
当注册表数据发生变化时(包括添加或移除区块时),会自动更新颜色。仅在同一维度内共享正交(上下左右)区块边缘的区块会影响自动着色;对角线方向的区块不会生效。自动更新会改变 RGB 值,同时保留区块的 Alpha 覆盖设置。手动设置或重置颜色将禁用自动着色功能。
一个区块只能属于一个地块。
JourneyMap 集成
- 地块边界使用每个地块配置的颜色。
- 每个地块在其最大的连续区域内显示一次其名称。
- 安装 Mod Menu 后,可以使用 Parcel opacity(地块不透明度)和 Border thickness(边框粗细)滑块来自定义地块显示效果。
- 在 JourneyMap 的附加组件控制中使用 Parcels On/Parcels Off(地块开/关)按钮来切换所有地块叠加层和标签。
- 在 JourneyMap 的附加组件控制中切换 Select Chunks(选择区块),然后左键点击区块以将其添加到高亮选中区域或从中移除。
- 使用 Land Registry > Chunks(土地注册表 > 区块)来添加或移除所有选中的区块,或者创建一个地块以认领整个选中区域。操作成功后将清除选中状态。
- 在全屏地图上右键点击一个区块并打开 Land Registry(土地注册表),即可访问地块、区块、所有者、用途、描述、颜色、标签和重置等操作。
- 使用 Land Registry > Color > Toggle auto-color...(土地注册表 > 颜色 > 切换自动着色...)来启用或禁用地块的自动对比度。
- 使用 Land Registry > Groups(土地注册表 > 组)来创建和检查组、管理成员资格,或对组成员应用所有者、用途、描述、颜色、自动着色、标签和重置操作。
- 使用 Land Registry > Database(土地注册表 > 数据库)来导出完整的注册表或在确认后导入。
- 选中某个地块的地图操作会打开一个可搜索的地块列表。
数据库迁移
导出文件是包含地块、所有者、组、成员资格、标签、区块和设置的完整 SQLite 快照。相对命令和地图菜单路径将从 Minecraft 游戏目录解析;也支持绝对路径。
导入操作将替换当前的注册表数据。在替换之前,模组会在活动数据库旁边写入带时间戳的 land-registry.backup-*.sqlite 快照。导入的数据库会被复制,必要时进行迁移,并在更改任何活动数据之前进行完整性检查。活动的世界身份将被保留,无效或不支持的数据库将被拒绝,且不会更改当前注册表。
从源代码构建
Gradle Wrapper 会自动提供所需的 Java 25 工具链。
在 Linux 或 macOS 上:
./build.sh
或者,在任何受支持的平台上:
./gradlew clean build
构建好的 JAR 文件将写入 build/libs/ 目录。请使用常规的模组 JAR 文件,而不是源码 JAR 文件。
要启动开发客户端:
./gradlew runClient
数据与备份
地块记录保存在 JourneyMap 附加组件数据目录内的世界作用域 land-registry.sqlite 数据库中。在删除或替换 Minecraft 实例之前,请备份相关的 JourneyMap 世界数据。移除该模组并不会将其记录转移到其他客户端。
许可证
JourneyMap Land Registry 根据 MIT License 许可协议提供。
JourneyMap Land Registry
A client-side Fabric add-on for JourneyMap that records parcels, owners, designated land uses, colors, tags, and claimed chunks in a local SQLite database. Registered parcels appear as colored overlays on JourneyMap.
[!IMPORTANT]
This mod is informational and local to one Minecraft client. It does not enforce claims on a server, synchronize data with other players, or verify ownership.
Requirements
- Minecraft 26.1.2
- Fabric Loader 0.19.3 or newer
- Fabric API 0.155.2+26.1.2 or compatible
- JourneyMap 26.1.2-6.0.2 for Fabric or newer compatible release
- Java 25
Installation
- Install Fabric Loader for Minecraft 26.1.2.
- Download Fabric API and JourneyMap for Minecraft 26.1.2.
- Download the JourneyMap Land Registry release JAR.
- Place all three mod JARs in the Minecraft
mods directory.
- Start Minecraft with the Fabric profile.
JourneyMap Land Registry is client-side only. A server does not need to install it.
Basic Usage
Open a world or join a server and ensure JourneyMap has started mapping it. Parcel data is stored separately for each mapped world.
Create a parcel and add the chunk where your player is standing:
/parcel create Spawn
/parcel chunk add Spawn
Running /parcel by itself shows information for the parcel at your current chunk. Use /parcel info <parcel> to inspect a parcel by name.
New parcels receive a random unique color selected to contrast with existing parcel colors. Colors can be changed manually or kept distinct from touching parcels with auto-color.
Commands
| Command |
Description |
/parcel |
Show parcel information for your current chunk. |
/parcel list |
List all parcels and their chunk counts. |
/parcel info <parcel> |
Show a parcel's owner, use, color, chunks, and tags. |
/parcel create <name> |
Create a parcel. |
/parcel rename <parcel> <name> |
Rename a parcel. |
/parcel delete <parcel> |
Delete a parcel. |
/parcel export <path> |
Export a consistent copy of the complete land registry database. |
/parcel import <path> |
Replace the current registry from an exported database after creating a backup. |
/parcel chunk add <parcel> |
Add your current chunk to a parcel. |
/parcel chunk add <parcel> <chunkX> <chunkZ> |
Add specified chunk coordinates in your current dimension. |
/parcel chunk remove <parcel> |
Remove your current chunk from a parcel. |
/parcel owner list |
List registered owners. |
/parcel owner create <name> |
Create an owner. |
/parcel owner set <parcel> <owner> |
Assign an owner to a parcel. |
/parcel owner reset <parcel> |
Reset a parcel to unowned. |
/parcel use set <parcel> <use> |
Set a parcel's designated use. |
/parcel use reset <parcel> |
Reset designated use to Custom. |
/parcel description set <parcel> <description> |
Set a parcel description. |
/parcel description reset <parcel> |
Clear a parcel description. |
/parcel color set <parcel> <rrggbb[aa]> |
Set RGB color and optionally an alpha transparency override. |
/parcel color auto enable <parcel> |
Automatically contrast the parcel with parcels that share a chunk edge. |
/parcel color auto disable <parcel> |
Keep the parcel's current color and stop automatic updates. |
/parcel color reset <parcel> |
Reset color to cyan and use the global parcel opacity. |
/parcel tag add <parcel> <tag> |
Add a tag to a parcel. |
/parcel tag remove <parcel> <tag> |
Remove a tag from a parcel. |
/parcel tag reset <parcel> |
Clear all tags from a parcel. |
/parcel reset <parcel> |
Reset owner, use, description, color, and tags. |
Parcel Groups
Parcel groups let the same management action be applied transactionally to several parcels. A parcel may belong to multiple groups. Deleting a group only removes the group and its memberships; the parcels remain registered.
| Command |
Description |
/parcel group list |
List parcel groups and their member counts. |
/parcel group info <group> |
List the parcels in a group. |
/parcel group create <name> |
Create a parcel group. |
/parcel group rename <group> <name> |
Rename a parcel group. |
/parcel group delete <group> |
Delete a group without deleting its parcels. |
/parcel group add <group> <parcel> |
Add a parcel to a group. |
/parcel group remove <group> <parcel> |
Remove a parcel from a group. |
/parcel group owner set <group> <owner> |
Assign an owner to every parcel in a group. |
/parcel group owner reset <group> |
Reset every parcel in a group to unowned. |
/parcel group use set <group> <use> |
Set the designated use for every parcel in a group. |
/parcel group use reset <group> |
Reset designated use for every parcel in a group. |
/parcel group description set <group> <description> |
Set every parcel description in a group. |
/parcel group description reset <group> |
Clear every parcel description in a group. |
/parcel group color set <group> <rrggbb[aa]> |
Set RGB color and optional alpha for every parcel in a group. |
/parcel group color auto enable <group> |
Enable auto-color for every parcel in a group. |
/parcel group color auto disable <group> |
Disable auto-color for every parcel in a group. |
/parcel group color reset <group> |
Reset every parcel color in a group. |
/parcel group tag add <group> <tag> |
Add a tag to every parcel in a group. |
/parcel group tag remove <group> <tag> |
Remove a tag from every parcel in a group. |
/parcel group tag reset <group> |
Clear tags from every parcel in a group. |
/parcel group reset <group> |
Reset metadata for every parcel in a group. |
Command completion suggests existing parcel and owner names. Quote parcel names containing spaces when another argument follows them, for example:
/parcel owner set "Town Square" Builder
/parcel color set "Town Square" 00FFFF
/parcel color set "Town Square" 00FFFF80
/parcel chunk add "Town Square" -4 12
Eight-digit colors use RRGGBBAA; for example, 00FFFF80 is cyan at approximately 50% opacity. Six-digit RGB colors continue to use the Mod Menu parcel opacity setting.
Auto-color updates whenever registry data changes, including when chunks are added or removed. Only parcels sharing a cardinal chunk edge in the same dimension affect the automatic color; diagonal chunks do not. Automatic updates change RGB while preserving a parcel's alpha override. Setting or resetting a color manually disables auto-color.
A chunk can belong to only one parcel.
JourneyMap Integration
- Parcel boundaries use each parcel's configured color.
- Each parcel displays its name once, in its largest connected region.
- With Mod Menu installed, use the Parcel opacity and Border thickness sliders to customize parcel displays.
- Use the Parcels On/Parcels Off button in JourneyMap's add-on controls to toggle all parcel overlays and labels.
- Toggle Select Chunks in JourneyMap's add-on controls, then left-click chunks to add or remove them from the highlighted selection.
- Use Land Registry > Chunks to add or remove all selected chunks, or create a parcel to claim the full selection. Successful actions clear the selection.
- Right-click a chunk on the fullscreen map and open Land Registry to access parcel, chunk, owner, use, description, color, tag, and reset actions.
- Use Land Registry > Color > Toggle auto-color... to enable or disable automatic contrast for a parcel.
- Use Land Registry > Groups to create and inspect groups, manage membership, or apply owner, use, description, color, auto-color, tag, and reset actions to all members.
- Use Land Registry > Database to export the complete registry or import one after confirmation.
- Map actions that select a parcel open a searchable parcel list.
Database Transfer
Exports are complete SQLite snapshots containing parcels, owners, groups, memberships, tags, chunks, and settings. Relative command and map-menu paths are resolved from the Minecraft game directory; absolute paths are also accepted.
Imports replace the current registry data. Before replacement, the mod writes a timestamped land-registry.backup-*.sqlite snapshot beside the active database. Imported databases are copied, migrated if necessary, and integrity-checked before any active data is changed. The active world's identity is retained, and invalid or unsupported databases are rejected without changing the current registry.
Building From Source
The Gradle wrapper provisions the required Java 25 toolchain automatically.
On Linux or macOS:
./build.sh
Alternatively, on any supported platform:
./gradlew clean build
Built JARs are written to build/libs/. Use the regular mod JAR, not the sources JAR.
To launch a development client:
./gradlew runClient
Data and Backups
Parcel records are held in a world-scoped land-registry.sqlite database inside JourneyMap's add-on data directory. Back up the relevant JourneyMap world data before deleting or replacing Minecraft instances. Removing the mod does not transfer its records to another client.
License
JourneyMap Land Registry is available under the MIT License.
评论 0
登录后参与评分
还没有评论,来抢沙发吧