Compass3D
此模组会在物品栏或快捷栏中的指南针上方渲染一个箭头。该箭头指向上方或下方,指示你需要沿 Y 轴(垂直方向)移动的方向以到达指定坐标。
从 v2.0.0 版本开始,此功能也适用于放置在物品展示框中的指南针。这些箭头的显示位置拥有独立的配置选项。默认情况下,此功能适用于所有指南针,但恢复指南针除外。你可以安装另一个模组 Framed Recovery Compass Fix 来使其生效。
我产生这个模组的想法时,正在为我自己的 Server Side Commands 模组开发追踪指南针功能。 我意识到当时没有任何方法可以确定指南针坐标的 Y 值。 于是,我做了一些研究,发现了模组 Simple Shulker Preview,它实现了类似我想要功能的东西,我便对其进行了分支开发。该项目采用 LGPL-3.0 许可证,因此点击 此处 查看我所做的更改列表。
此模组还支持多种模组添加的指南针。请参阅 模组支持列表 获取已支持的模组列表,或建议需要支持的新模组。
配置
此模组允许你配置箭头的大小、位置以及每种受支持指南针的箭头类型。配置菜单相当直观易懂,因此我不在此赘述。
此模组内置了 Cloth Config API 以实现配置功能(你无需自行下载它)。 你必须安装 Cloth Config API 才能使此模组正常工作。 不过,如果你确实想使用配置功能,我建议同时安装 ModMenu,因为我不想为一个如此简单的模组再创建一个额外的配置映射界面。
资源包
如果你愿意,我还制作了几个带有备用图标的资源包。你可以在 这里 下载它们。
如果不喜欢当前纹理并希望制作资源包进行替换,以下是纹理文件的路径。 如果你制作了此类资源包,请通过 GitHub Issue 告知我,以便我在此处链接你的作品。
assets/compass3d/textures/item/up_arrow.pngassets/compass3d/textures/item/down_arrow.pngassets/compass3d/textures/item/recovery_up_arrow.pngassets/compass3d/textures/item/recovery_down_arrow.png
此外,还有针对模组指南针的其他箭头图标。请在 GitHub 目录中查看所有内容。
物品 compass3d:*_arrow 是什么?
为了添加箭头覆盖层,我必须在客户端注册一个不存在的物品。
然而,我在测试中发现,在执行 /give 命令时,该物品会出现在自动补全列表中。
这在多人游戏中使用时会产生错误提示,但由于该物品实际上并不存在,你无需担心此问题。
Compass3D
This mod renders an arrow over compasses in the inventory/hotbar. This arrow points up or down, showing you which direction (on the Y axis) you need to travel to reach the coordinate.
As of v2.0.0, this also applies to compasses placed in Item Frames. These arrows have their own configs for placement. This features works by default with all compasses except the Recovery Compass. You can install another mod Framed Recovery Compass Fix to make it work.
I had the idea for this mod when working on the tracking compass for my Server Side Commands mod. I realized that you had no way to determine the Y value of the coordinates of a compass. So, I did some research, and found the mod Simple Shulker Preview, which did something similar to what I wanted, and forked it. That project was under the LGPL-3.0 license so click here for a list of the changes I made.
This mod also supports several modded compasses. See the Mod Support List for a list of supported mods, or to suggest new mods to support.
Configs
This mod gives you the ability to configure the size and placement of arrows, as well as the arrow type for each supported compass. The config menu is fairly self-explanatory, so I will not elaborate on that further here.
This mod comes with the Cloth Config API built in to
implement configs (there should be no need to download it yourself). You need to install Cloth Config API in order for this project to work. I would recommend installing ModMenu alongside it if you actually want to use them though, because I didn't want to create yet another config mapping for such a simple mod.
Resource Pack
I made a couple resource packs with alternate icons if you want. You can download them here.
If you don't like the textures and want to make a resource pack to change them, here are the paths to the textures. Please let me know if you do (via a GitHub issue) so I can link them there.
assets/compass3d/textures/item/up_arrow.pngassets/compass3d/textures/item/down_arrow.pngassets/compass3d/textures/item/recovery_up_arrow.pngassets/compass3d/textures/item/recovery_down_arrow.png
There are also other arrows for modded compasses. Check the directory on GitHub to see them all.
What is the item compass3d:*_arrow?
So to add the arrow overlays, I had to register a nonexistent item on the client side.
However, I discovered in testing that it shows up in autocomplete when doing /give.
This generates an error when used in multiplayer, but as the item doesn't exist you shouldn't worry about it.
下载 Compass3D
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Compass3D
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Compass3D
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Compass3D
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Compass3D
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Compass3D
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Compass3D
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Compass3D
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Compass3D
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Compass3D
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
支持 1.20.5。同时修复了在“图标样式”设置中未显示传送门链接罗盘标签的问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧