填充地图坐标
一个小型模组,记录空地图被填充的位置,并据此显示该填充地图所覆盖区域的坐标。
截图
在禁用 高级工具提示 的情况下:

在启用 高级工具提示 的情况下:

配置
只有一个配置值,而且……如果你倾向于修改它,你甚至可以不安装这个模组:
# 如果启用,模组会在创建新的填充地图时将坐标数据存储到地图物品上
enabled: true
你可以使用命令 /mapcoordinates <config-value> true/false 在游戏中管理配置。
或者,你也可以手动编辑 config/FilledMapCoordinates/config.yml 文件。
用法
启用后,只需像往常一样使用地图即可。
每当创建新的填充地图时,Minecraft 现在会将精确的坐标存储在该地图物品本身的自定义组件数据中。然后,模组使用该数据计算此地图所覆盖区域的左上角和右下角的坐标。
它还会记录地图的缩放级别,并在你在制图台上放大地图时进行更新。你可以查阅 Wiki 了解缩放级别/比例如何影响地图所覆盖的坐标。
该模组需要同时存在于服务器(用于存储数据)和客户端(用于显示数据)。注意,已经存在的地图不会显示新的工具提示信息,因为它们缺少物品上所需的坐标元数据。如果稍后卸载该模组,由模组存储的元数据不应产生任何影响。
我能够完成这个模组,完全是建立在 somyk 的模组 Map Art Copyright 的基础之上。谢谢!
Filled Map Coordinates
A small mod that records where an empty map is filled and uses that to show coordinates of the area a filled map is covering.
Screenshots
With advanced tooltips disabled:

With advanced tooltips enabled:

Configuration
There's just a single config value, and… you could just not install the mod if you're inclined to change it:
# If enabled, the mod stores coordinate data on the map item when creating a new filled map
enabled: true
You can manage config in-game with the command /mapcoordinates <config-value> true/false.
Alternatively, you can edit it manually in config/FilledMapCoordinates/config.yml.
Usage
When enabled, simply use maps like you always would.
Whenever you create a new filled map, Minecraft will now store the exact coordinates where
you did so in custom component data on the map item itself. The mod then uses that data to
calculate the coordinates of the top-left and bottom-right corners of the area that this map
covers.
It will also record the scaling level of a map, and update it if you zoom the map out
on a cartography table. You can read up on the Wiki
zoom level / scale works with regard to the coordinates a map covers.
The mod needs to be present both on the server (for storing the data) and the client
(for showing the data). Note that already existing maps will not show the new tooltip
information as they do not have the required coordinates metadata present on the item.
If uninstalling the mod later, the metadata stored by the mod should not have any impact.
I was only able to get this mod done by building on somyk's mod Map Art Copyright. Thank you!
评论 0
登录后参与评分
还没有评论,来抢沙发吧