MapSyncer for Xaero's World Map
一款多平台 Minecraft 模组,可将服务器端已探索区域同步至客户端的 Xaero's World Map。 BiliBili GitHub
REPORT ISSUE ON GITHUB!!PLEASE
V1.0.4 Beta version is avaliable on github release page ,please report bug on issue page ,if you got any suggestion leave it on issue too ,thank you.
Platform Support
Prioritizing modern versions. NeoForge didn't exist as an independent loader before 1.20.4. Forge provides no developer documentation after 26.1.
| MC Version | Forge | NeoForge | Fabric |
|---|---|---|---|
| 1.20.1 | ✅ | — | ✅ |
| 1.21.1 | ✅ | ✅ | ✅ |
| 1.21.11 | ✅ | ✅ | ✅ |
| 26.1 | — | ✅ | ✅ |
Client Dependencies
Supports both dedicated servers and integrated servers (single-player LAN sharing). On integrated servers, the host's Xaero's World Map save directory is reused as the map cache, eliminating redundant conversion.
| Dependency | Requirement |
|---|---|
| Xaero's World Map | 1.40.11+ |
Server Requirements
- Xaero's World Map is NOT required on the server
- Chunky or similar pre-generation tools are recommended
Features
| Feature | Description |
|---|---|
| Incremental Sync | CRC32 hash + timestamp comparison — only transfers changed regions |
| Streaming Load | Writes to Xaero directory as data arrives, triggers immediate reload per region |
| Bandwidth-Aware | Dynamic send rate adjustment to avoid blocking game network |
| Resumable Sync | Auto-resumes from interruption after reconnect (hash-based) |
| View-Distance Priority | Regions within player's view distance are prioritized |
| Dimension Support | Overworld, Nether, End, and mod dimensions (e.g. Twilight Forest) |
| Incremental Update | Server-side periodic/scheduled map cache regeneration |
| Cave Mode | Scans downward from a configurable height, outputs to caves subdirectory |
| Multi-Threaded Hash | Configurable parallel CRC32 computation on the client |
| Auto Sync | Automatically checks for newer server maps on join, no manual command needed |
Commands
Client Commands
| Command | Description |
|---|---|
/mapsyncer |
Show help |
/mapsyncer sync |
Sync current dimension |
/mapsyncer sync <dim> |
Sync a specific dimension |
/mapsyncer sync all |
Sync all dimensions |
Dimension arguments: overworld, the_nether, the_end, or mod dimension IDs like twilightforest:twilight_forest
Server Commands (OP required)
Forge/NeoForge uses
/mapsyncer; Fabric uses/mapsyncerserverto avoid conflicts with the client-side/mapsyncer.
| Command | Description |
|---|---|
/mapsyncer generate |
Generate cache for all dimensions |
/mapsyncer generate <dim> |
Generate cache for a specific dimension |
/mapsyncer generate <dim> <x> <z> |
Generate a single region |
/mapsyncer generate <dim> --force |
Force rebuild (clears existing cache) |
/mapsyncer status |
View generation progress and cache statistics |
/mapsyncer incremental off |
Disable incremental updates |
/mapsyncer incremental tick [interval] |
Enable periodic updates (20–72000 ticks) |
/mapsyncer incremental scheduled [hour] [min] |
Enable scheduled updates (default 04:00) |
Configuration
Client Config
| Option | Default | Range | Description |
|---|---|---|---|
hashThreads |
CPU cores/2 | 1–cores | Number of threads for CRC32 computation |
Server Config
Forge config: world/serverconfig/mapsyncer-server.toml (per-world)
NeoForge / Fabric config: config/ directory (.toml for NeoForge, .properties for Fabric)
General [general]
| Option | Default | Range | Description |
|---|---|---|---|
enableDebugLogging |
false | — | Enable debug logging |
maxConcurrentRegions |
4 | 1–16 | Concurrent region conversion threads |
maxSyncPacketSize |
262144 (256KB) | 64KB–1MB | Max packet size in bytes |
syncSpeedLimitKBps |
1024 (1MiB/s) | 0–10240 | Sync rate limit (0 = unlimited) |
Incremental Update [incremental_update]
| Option | Default | Description |
|---|---|---|
incrementalUpdateMode |
DISABLED | DISABLED / TICK / SCHEDULED |
incrementalUpdateIntervalTicks |
200 | TICK mode interval (20 ticks = 1 second) |
scheduledUpdateHour |
4 | Scheduled update hour (0–23) |
scheduledUpdateMinute |
0 | Scheduled update minute (0–59) |
Dimension Scan [dimension_scan]
| Option | Default | Description |
|---|---|---|
default_scan_mode |
SURFACE | Default scan mode for unconfigured dimensions |
default_cave_start |
63 | Starting height for CAVE mode |
Dimension config format:
dimension_configs = [
"minecraft:overworld|SURFACE|63|true|false|-64|384|384",
"minecraft:the_nether|CAVE|63|false|true|0|256|256",
"minecraft:the_end|SURFACE|63|false|false|0|256|256"
]
Format: dimensionID|scanMode|caveStart|hasSkylight|hasCeiling|minY|height|logicalHeight
- SURFACE: Scans downward from heightmap. For Overworld and End.
- CAVE: Scans downward from a fixed height. For Nether.
Project Structure
libs/ Abstract library layer (platform-agnostic, compiled as independent JARs)
├── core/ Pure Java core: MCA/NBT parsing, utilities
└── platform-api/ Platform abstraction interfaces, network payload definitions
mc-1.20.1/ 1.20.1 version
├── shared/ Shared source (referenced by platform modules via sourceSet)
├── fabric/ Platform implementation (produces final mod JAR)
└── forge/
mc-1.21.1/ 1.21.1 version
├── shared/
├── fabric/
├── forge/
└── neoforge/
mc-26.1/ 26.1 版本 ├── shared/ ├── fabric/ └── neoforge/
### 流水线
服务器 MCA 文件(region/*.mca) │ ▼ MCA 解析器(纯 Java,无 Xaero 依赖) 解压 → NBT 解析 → 提取区块数据 │ ▼ 区域转换(RegionConverter) │ ▼ 编码为 Xaero 格式(region.zip) │ ▼ 时间戳 + 哈希缓存(GenerationCache) │ ▼ 增量更新处理器(可选) TICK 模式 / SCHEDULED 模式 │ ▼ 网络同步协议 哈希比较 → 视距优先级排序 批量传输 + 速率限制 │ ▼ 流式接收 数据到达时写入 Xaero 目录 │ ▼ Xaero 重载触发(反射) requestLoad → 地图重新渲染
### 文件存储
服务器: <server>/server_map_cache/ ├── null/ # 主世界 ├── DIM-1/ # 下界 ├── DIM1/ # 末地 ├── caves/<layer>/ # 洞穴模式输出 └── generation_cache.properties # 时间戳 + 哈希缓存
客户端: <client>/xaero/world-map/Multiplayer_<IP>/ # 现代 Xaero 统一路径(首选) <client>/XaeroWorldMap/Multiplayer_<IP>/ # 旧版 Xaero 路径(兼容回退) ├── null/mw$<worldId>/ # 主世界 ├── DIM-1/mw$<worldId>/ # 下界 └── DIM1/mw$<worldId>/ # 末地
### 维度映射
| 维度 | Minecraft ID | Xaero 目录 |
|-----------|--------------|-----------------|
| 主世界 | `minecraft:overworld` | `null` |
| 下界 | `minecraft:the_nether` | `DIM-1` |
| 末地 | `minecraft:the_end` | `DIM1` |
| 模组维度 | `namespace:path` | `namespace$path` |
---
## 已知问题
| 问题 | 详情 | 影响 |
|-------|---------|--------|
| 洞穴渲染异常 | 部分洞穴内容不准确 | 主要影响下界;正在调查中 |
---
## 构建
```bash
# 构建所有活动平台(并行)
./gradlew build -x test --parallel
# 构建单个平台
./gradlew :mc-1.21.1:forge:build -x test
./gradlew :mc-1.21.1:fabric:build -x test
# 快速构建脚本
scripts/fastbuild/build-all.bat # 所有活动平台
scripts/fastbuild/build-forge.bat # 所有 Forge 模块(Gradle 8.9 + JDK 17/21)
scripts/fastbuild/build-fabric-26.1.bat # Fabric 26.1(隔离的 Gradle 进程)
scripts/fastbuild/build-26.1.bat # 所有 26.1 模块
构建产物位于每个平台模块的 build/libs/ 目录中。
许可证: GPL-3.0
致谢: Xaero's World Map & Minimap
你是这个资源的作者?登录后可认领此资源。
相似资源
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
原版世界生成优化模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
查看物品与配方
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧