为 Minecraft 引入了一种新物品:魔法毛线球。
其合成方法是用任意种类的羊毛围绕指南针制作。
注意:
在多人游戏中,你无法合成此物品。此时应使用按钮代替鼠标操作,默认按键为“J”。该按键可在 mods/MagicYarn.txt 下自动生成的文件中进行自定义。
该物品用作寻路工具,并用于追踪你的移动轨迹。换句话说,你将不再会在探索下界或复杂的洞穴系统时迷路,也无需留下大量火把来标记路径。
合成后的使用方法 [多人游戏中使用按钮代替鼠标]:
[未设置任何内容]
右键点击:将当前位置设为起点(原点)。
[已设置起点,无路径]
右键点击:将当前位置设为途经点。计算到起点的最短(曼哈顿)可通行路径并显示出来。
[路径可见]
右键点击:使路径消失。如果你在右键点击时站在某条路径上,从你所站位置之后的路径部分将被切断并删除(适用于绕圈行走的情况)。
只有在手持魔法毛线球时,你才能始终看到路径。
[路径不可见]
短按右键:将当前位置设为途经点。计算到最后一次设置的途经点之间的最短(曼哈顿)可通行路径并显示出来。
长按右键(超过0.5秒):将当前位置设为途经点。计算到起点的最短(曼哈顿)可通行路径并显示出来。如果失败,则回退到最后一次设置的途经点。
[在任何状态下]
长按右键(超过2.5秒):将魔法毛线球重置为 [未设置任何内容] 状态。
供感兴趣的技术人员参考的信息:
实现了 A* 寻路算法。
A* 是一种启发式算法(这意味着它在开阔空间中非常高效),我的实现还采用了二叉堆排序方法,这似乎是完成此任务的最佳方法。
寻路在一个独立的 Java 线程中执行,因此能够利用多核 CPU,并且不会导致 Minecraft 卡死。
Introduces a new Item to Minecraft, the Ball of Magic Yarn.
It is crafted by surrounding a Compass with Wool (any kind).
NOTE:
In Multiplayer, you can't craft this Item. You use a button instead, by default "J". Button can be customized in auto-created file under mods/MagicYarn.txt
The Item serves as pathfinding Tool and to keep track of your movements. In other words, you should never again get lost exploring the Nether or some complex cave system, and without leaving a ridiculous amount of Torches to mark your trail.
Usage once crafted [button instead mouse in multiplayer]:
[Nothing set]
Rightclick: Specifies your current location as point of origin.
[Origin set, no path]
Rightclick: Sets your current location as waypoint. Computes the shortest (Manhattan) walkable path to the origin and displays it.
[Path visible]
Rightclick: Makes the path disappear. If you stand in a path while right clicking, any path after the point you stand in will be cut off and deleted (for circling around).
You can only see the Path at all times while holding the Magic Yarn.
[Path invisible]
Rightclick, short: Sets your current location as waypoint. Computes the shortest (Manhattan) walkable path to the LAST WAYPOINT and displays it.
Rightclick, >0.5s: Sets your current location as waypoint. Computes the shortest (Manhattan) walkable path to the ORIGIN and displays it. If that fails, it falls back to the LAST WAYPOINT.
[At any point]
Rightclick, >2.5s: Resets the Magic Yarn to the [Nothing set] status.
Technical Information for the interested:
Features implementation of A* pathing Algorithm.
A* is heuristic (that means its very efficient in open spaces) and my implementation has a binary heap sorting method aswell, which apparently is the best method for this task.
Pathfinding is done in a seperate java Thread, so this uses Multicore CPUs and should never lock up your Minecraft.
下载 AtomicStryker's Magic Yarn
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AtomicStryker's Magic Yarn
下载 AtomicStryker's Magic Yarn
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AtomicStryker's Magic Yarn
下载 AtomicStryker's Magic Yarn
下载 AtomicStryker's Magic Yarn
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧