始终使用最新(稳定)版本的 SeedMapper!如果你想在较旧版本的 Minecraft 上游玩,请使用 ViaFabricPlus。此模组允许你使用 SeedMapper 的最新功能,同时仍能在较旧版本的 Minecraft 中游玩。
SeedMapper
一款可在游戏内运行的 Fabric 模组,允许你对世界种子执行各种操作。有关参考,请查看本模组的功能。请注意,此模组要求你能获取到种子。如果种子未知,你可以使用 19MisterX98 开发的 SeedCrackerX 来破解它。如有疑问或需要支持,请访问我的 Discord。
安装
- 安装 Fabric Loader。
- 下载 Fabric API 并将其移动到你的
mods 文件夹:
- Linux/Windows:
.minecraft/mods。
- Mac:
minecraft/mods。
- 从发布页面下载 SeedMapper 并将其移动到
mods 文件夹。
1.21.11 及以下版本的重要说明
你需要至少安装 Java 23 才能使用此模组。我建议从 adoptium.net 获取 Java 23(或更高版本)。接下来,配置你的 Minecraft 启动器以使用此 Java 版本。
- 原版启动器:前往
Installations(安装列表) -> Edit(编辑) -> More options(更多选项) -> Java executable(Java 可执行文件)。
- MultiMC:前往
Edit Instance(编辑实例) -> Settings(设置) -> Java -> Java Installation(Java 安装路径)。
- PrismLauncher:前往
Settings(设置) -> Java -> Java Runtime(Java 运行时) -> Auto-Detect...(自动检测...)。
- Modrinth App:前往
Instance settings(实例设置) -> Java and memory(Java 和内存) -> Custom Java installation(自定义 Java 安装) -> Browse(浏览)
有时可能需要点击跳过 Java 兼容性检查的选项。
如果你在 Windows 上,请确保选择 javaw.exe,而不是 java.exe。
如果遇到任何问题,请联系你的启动器支持。
自 26.1 版本起,此步骤不再必要。
功能
在使用任何命令之前,请确保已使用 /sm:config Seed set <seed> 配置了种子。
种子地图
用法:/sm:seedmap。
基于配置的种子打开一个可探索的种子地图。你可以通过拖动鼠标来移动地图,并使用滚轮进行缩放。你可以通过点击屏幕顶部的功能切换按钮来显示或隐藏特定功能。此命令与 /sm:source 命令结合使用时尤其有用!
种子小地图
用法:/sm:minimap [show|hide]。
在抬头显示器 (HUD) 中显示基于配置种子的迷你地图。根据是否启用了 RotateMinimap 配置,迷你地图会随玩家旋转。迷你地图显示的功能与种子地图相同(见上文)。切换维度会自动更新迷你地图。可以使用 MinimapOffsetX、MinimapOffsetY、MinimapWidth 和 MinimapHeight 配置项进一步自定义迷你地图。
生物群系定位
用法:/sm:locate biome <biome>。
定位距离玩家最近的指定生物群系。支持所有维度的所有生物群系。
结构定位
用法:/sm:locate feature <structure>[<pieces>]{<variants>}。
定位距离玩家最近的指定结构。支持所有维度的所有结构。但是,由于底层库的限制,某些结构(特别是沙漠神殿、丛林神庙和林地府邸)可能会导致偶尔出现误报。对于更高级的查询,你还可以使用块件 (piece) 和变体 (variant) 数据来进一步限制搜索范围。例如,以下命令将搜索带有船只的末地城:/sm:locate feature structure end_city[end_ship]。
矿脉定位
用法:/sm:locate orevein (copper|iron)。
定位距离玩家最近的矿脉。将返回找到的第一个矿石块的坐标。之后,你可以使用 /sm:highlight orevein [<chunks>] 高亮显示其他矿石。
战利品定位
用法:/sm:locate loot <amount> <item> [<enchantment conditions>]。
定位距离玩家最近的箱子战利品。支持 1.13 及之后的所有版本。SeedMapper 将搜索结构的箱子战利品,以找到匹配物品和附魔条件的战利品。注意,命令不会阻止对无法获得的战利品和非法附魔组合的查询。如果搜索耗时过长,你应该使用 /sm:stoptask 取消它。
矿石高亮显示
用法:/sm:highlight block <block> [<chunks>]。
在世界中高亮显示指定的方块。支持 1.13 及之后的所有版本。由于高度依赖 OCEAN_FLOOR_WG 高度图,煤炭、铜和绿宝石矿石的位置可能会有偏差。
矿脉高亮显示
用法:/sm:highlight orevein [<chunks>]。
在世界中高亮显示矿脉。作为矿脉一部分生成的原始矿石块会以不同方式高亮显示。填充方块会被忽略。
史莱姆区块定位
用法:/sm:locate slimechunk。
定位距离玩家最近的史莱姆区块。这将始终保持准确。
源修改
用法:/sm:source (run)|(as <entity>)|(positioned <position>)|(rotated <rotation>)|(in <dimension>)|(versioned <version>)|(seeded <seed>)。
从修改后的源执行给定命令。例如,修改源的位置将以该位置执行命令。此命令非常强大,尽情使用吧!
Baritone 集成
如果存在 Meteor 版本的 Baritone,SeedMapper 的 AutoMine(自动挖矿)配置将会显示。将其设置为 true 后,由 /sm:highlight 高亮显示的某些方块将被自动挖掘。你可以像往常一样通过执行 #stop 来停止 Baritone。请确保 Baritone 的配置中 #allowBreak(允许破坏)已设为 true,否则 Baritone 将陷入无限等待状态,无法挖掘任何方块。
从源代码构建
此模组在内部使用了 Cubitect 开发的 C 库 cubiomes(的一个分支)。该库的 Java 绑定是通过 jextract(也是其一个分支)创建的。这些绑定使用了来自 Project Panama 的 Foreign Function & Memory API(外部函数与内存 API)。有关自动化此过程的 Gradle 任务,请参阅 CreateJavaBindingsTask.java。
要在本地构建此模组,请遵循以下步骤:
- 克隆仓库:
git clone --recurse-submodules https://github.com/xpple/SeedMapper
cd SeedMapper
- 将 cubiomes 编译为共享库。不能使用 MSVC 来构建该项目!以下适用于 Windows:
cd src/main/c/cubiomes
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
cp build/cubiomes.dll ../../resources/cubiomes.dll
cd ../../../../
- 安装 LLVM(建议使用 13.0.0 版本),并将环境变量
LLVM_HOME 设置为 LLVM 的安装目录。
- 编译 jextract。同样,以下适用于 Windows:
cd jextract
./gradlew --stacktrace -Pjdk_home="$env:JAVA_HOME" -Pllvm_home="$env:LLVM_HOME" clean verify
cd ../
- 构建模组:
./gradlew build
你应该能在 src/main/java/com/github/cubiomes 中找到 Java 绑定代码。
最后,你也可以参考 GitHub Actions 工作流文件,其中包含了针对每个主要操作系统的完整构建说明。
Always use the latest (stable) version of SeedMapper! If you want to play on an older version of Minecraft, use ViaFabricPlus. This mod allows you to use the latest features of SeedMapper, while still being able to play on older Minecraft versions.
SeedMapper
In-game Minecraft Fabric mod that allows you to do various things with the world seed. For reference, have a look at the features this mod has. Keep in mind though, this mod requires you to have access to the seed. If the seed is not known, you could crack it using SeedCrackerX by 19MisterX98. For questions and support please head to my Discord.
Installation
- Install the Fabric Loader.
- Download the Fabric API and move it to your mods folder:
- Linux/Windows:
.minecraft/mods.
- Mac:
minecraft/mods.
- Download SeedMapper from the releases page and move it to your mods folder.
IMPORTANT FOR 1.21.11 AND BELOW
You need to have at least Java 23 installed to use this mod. I recommend to get Java 23 (or higher) from adoptium.net. Next, configure your Minecraft launcher to use this release of Java.
- Vanilla launcher: Go to
Installations -> Edit -> More options -> Java executable.
- MultiMC: Go to
Edit Instance -> Settings -> Java -> Java Installation.
- PrismLauncher: Go to
Settings -> Java -> Java Runtime -> Auto-Detect....
- Modrinth App: Go to
Instance settings -> Java and memory -> Custom Java installation -> Browse
Sometimes it may be necessary to click the option for skipping the Java compatibility check.
If you are on Windows, make sure to select javaw.exe, not java.exe.
If you run into issues, contact your launcher's support.
As of 26.1 this step is no longer necessary.
Features
Before using any of these commands, make sure the seed has been configured using /sm:config Seed set <seed>.
Seed map
Usage: /sm:seedmap.
Opens an explorable seed map based on the configured seed. You can move the map by dragging the mouse, and zoom in or out by using the scroll wheel. You can toggle what features are visible by clicking the feature toggles at the top of the screen. This command is especially useful in combination with the /sm:source command!
Seed minimap
Usage: /sm:minimap [show|hide].
Displays a minimap based on configured seed in the heads-up display (HUD). Depending on whether the RotateMinimap config is enabled, the minimap will rotate with the player. The minimap displays the same features as the seed map (see above). Changing dimension will automatically update the minimap. The configs MinimapOffsetX, MinimapOffsetY, MinimapWidth and MinimapHeight can be used to further customise the minimap.
Biome locating
Usage: /sm:locate biome <biome>.
Locates a given biome closest to the player. All biomes in all dimensions are supported.
Structure locating
Usage: /sm:locate feature <structure>[<pieces>]{<variants>}.
Locates a given structure closest to the player. All structures in all dimensions are supported. However, due to limitations in the underlying library, some structures (in particular desert pyramids, jungle temples and woodland mansions) may result in occasional false positives. For more advanced querying you can also use piece and variant data to further restrict the search. For example, the following command will search for end cities with ships: /sm:locate feature structure end_city[end_ship].
Ore vein locating
Usage: /sm:locate orevein (copper|iron).
Locates an ore vein closest to the player. The coordinates of the first ore vein block found will be returned. After this, you can use /sm:highlight orevein [<chunks>] to highlight the other ores.
Loot locating
Usage: /sm:locate loot <amount> <item> [<enchantment conditions>].
Locates chest loot closest to the player. All versions from 1.13 onwards are supported. SeedMapper will search through the chest loot of structures to find loot that matches the item and enchantment conditions. Note that queries for unobtainable loot and illegal enchantment combinations are not prevented by the command. If a search is taking too long, you should probably cancel it using /sm:stoptask.
Ore highlighting
Usage: /sm:highlight block <block> [<chunks>].
Highlights the specified block in the world. All versions from 1.13 onwards are supported. Due to high dependence on the OCEAN_FLOOR_WG heightmap, coal, copper and emerald ore locations may be off.
Ore vein highlighting
Usage: /sm:highlight orevein [<chunks>].
Highlights ore veins in the world. Raw ore blocks that generate as part of the ore vein are highlighted distinctly. Filler blocks are ignored.
Slime chunk locating
Usage: /sm:locate slimechunk.
Locates a slime chunk closest to the player. This will always be accurate.
Source mutation
Usage: /sm:source (run)|(as <entity>)|(positioned <position>)|(rotated <rotation>)|(in <dimension>)|(versioned <version>)|(seeded <seed>).
Executes a given command from a modified source. For example, modifying the source's position will execute the command as if you were in that position. This command is really powerful, use it!
Baritone integration
If Meteor's version of Baritone is present, SeedMapper's AutoMine config will be visible. When set to true, certain blocks highlighted by /sm:highlight will be automatically mined. You can stop Baritone by executing #stop as usual. Make sure #allowBreak is set to true in Baritone's configs, otherwise Baritone will get stuck forever and no blocks will be mined.
Building from source
This mod internally uses (a fork of) the C library cubiomes by Cubitect. Java bindings for this library were created with (also a fork of) jextract. The bindings use the Foreign Function & Memory API from Project Panama. See CreateJavaBindingsTask.java for the Gradle task that automates this.
To build the mod locally, follow these steps:
- Clone the repository:
git clone --recurse-submodules https://github.com/xpple/SeedMapper
cd SeedMapper
- Compile cubiomes to a shared library. MSVC cannot be used to build the project! The following is for Windows:
cd src/main/c/cubiomes
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
cp build/cubiomes.dll ../../resources/cubiomes.dll
cd ../../../../
- Install LLVM (version 13.0.0 is recommended) and set the environment variable
LLVM_HOME to the directory where LLVM was installed.
- Compile jextract. Again, the following is for Windows:
cd jextract
./gradlew --stacktrace -Pjdk_home="$env:JAVA_HOME" -Pllvm_home="$env:LLVM_HOME" clean verify
cd ../
- Build the mod:
./gradlew build
You should find the Java bindings in src/main/java/com/github/cubiomes.
Lastly, you can also consult the GitHub Actions workflow file, which contains complete build instructions for each major OS.
评论 0
登录后参与评分
还没有评论,来抢沙发吧