Compasses+
如果你想在视频中使用此内容,请在描述中注明我的名字并链接到本页!
该数据包目前处于开发阶段!你可能会遇到 bug。请在我的 问题追踪器 上报告任何 bug。
本包(目前)添加了一个名为赏金罗盘(Bounty Compass)的罗盘,其功能类似于追猎罗盘(Manhunt Compass),并带有大量额外功能。详情请见 新增罗盘 部分。
未来更新还将推出更多罗盘!
服务器所有者重要提示
请确保将游戏规则 doMobLoot 设置为 true。这对于检测玩家是否击杀了赏金目标至关重要。
对于 Bukkit 服务器,请确保 allow-non-player-entities-on-scoreboards 设置为 true。
新增罗盘
赏金罗盘 (Bounty Compass)
这是一种可以追踪生物和玩家的罗盘!它也可用于更具动态性的 Minecraft 追猎游戏。
获取方法
你可以在合成台中通过合成获得赏金罗盘。

或者,你可以运行以下命令来获取赏金罗盘:
/loot give @s loot hunters:item/bounty_compass
使用方法
获得新罗盘后,你可以通过攻击某个生物或玩家将其绑定到该实体上。当在主手持有该罗盘时,指针会指向被绑定的实体。(注意:如果不在主手持有,指针会无目的地旋转)

如果目标死亡(或被击杀),之前绑定到该目标的任何罗盘都将失效。因此,如果你将一个罗盘绑定到一名玩家身上,而该玩家召唤了 Luxintrus 并因跌落伤害死亡,罗盘将会失效(即使玩家重生)。

在追踪玩家方面,你只能追踪在线的玩家。如果玩家已退出游戏,你就没办法了。

复制
你可以通过将已绑定的罗盘(无论是否有赏金)和一个未绑定的罗盘一起放入合成台来复制现有的罗盘。这会将已绑定罗盘的所有数据复制到未绑定的罗盘上。


赏金
你可以通过将罗盘与装满奖励的束口袋一起放入合成台,为已绑定的罗盘添加赏金/奖励。带有赏金的罗盘也可以被复制。

此外,还与 MiniHUD 兼容!如果你启用了 shulkerBoxPreview,你将能够看到赏金罗盘中的所有物品。

击杀赏金罗盘的目标后,当你手持该罗盘时即可领取赏金。如果多人拥有匹配的赏金罗盘,只有其中一人能领取奖励。请注意,要领取奖励,你必须满足以下条件:
- 你的背包中有带有赏金的罗盘。
- 必须获得此次击杀的击杀统计。

可选资源包
还有一个可选的资源包!它根据罗盘的不同状态提供不同的纹理。
[Modrinth 页面]
[Github 仓库]
备注与致谢
已知问题
赏金罗盘可能导致幽灵物品
这是由于罗盘获取目标位置数据的方法所致。我个人不知道修复方法,但避免幽灵物品的方法是不要在丢弃罗盘或在背包间移动罗盘时将其放在主手中。
致谢
本项目使用的任何库、代码等
- Simple-UUID by @Skubiak0903
- Item Name to NBT by @DorkOrc
灵感来源
Compasses+
If you want to use this in your video, please credit me and link this page in the description!
This datapack is currently in development! You may encounter bugs. Please report any bugs on my issue tracker.
This pack (currently) adds a compass called the Bounty Compass and works like a Manhunt Compass with loads of extra features. See the Compasses Added section for more details.
More compasses to come in future updates!
IMPORTANT FOR SERVER OWNERS
Make sure to have gamerule doMobLoot set to true. This is critical for detecting when a player kills a bountied mob.
For Bukkit servers, make sure allow-non-player-entities-on-scoreboards is set to true.
Compasses Added
Bounty Compass
This is a compass that tracks mobs and players! This could also be used for more dynamic Minecraft Manhunts.
Obtaining
You can obtain a Bounty Compass by crafting it in a crafting table.

Alternatively, you can get yourself a Bounty Compass by running this command:
/loot give @s loot hunters:item/bounty_compass
Usage
Once you have your new compass, you can punch a mob or player to bind it to them. The compass will point to the entity when held in your main hand. (Note: when not held in your main hand, the needle will spin around aimlessly)

If a target dies (or gets killed) any compasses bound to that target before then will deactivate. So if you bind a compass to a player and that pulls a Luxintrus and dies of fall damage, the compass will deactivate (even if the player respawns).

When it comes to tracking players, you can only track players that are ONLINE. If the player has left the game, you're outta luck.

Cloning
You can clone existing compasses by throwing a bound compass (bounty or not) and an unbound compass onto a crafting table. This will copy all the data from the bound compass onto the unbound one.


Bounties
You can add a bounty/reward to a bound compass by throwing the compass onto a crafting table along with a bundle filled with the reward. Bountied compasses can also be cloned.

There is also compatability with MiniHUD! If you have shulkerBoxPreview enabled, you to see all contents of a bountied compass.

Killing the target of the bounty compass will allow you to claim the bounty when holding the compass. If multiple people have matching bounty compasses, only one will be able to claim the reward. Note that to claim the reward, you must:
- Have the bountied compass in your inventory.
- Must recieve kill credit for the kill.

Optional Resource Pack
There is an optional resource pack as well! It gives the bounty compass different textures depending on it's state.
[Modrinth Page]
[Github Repo]
Notes & Credits
Known Issues
Bounty Compasses can cause ghost items
This is due to the method the compass gets the location data of its target. I don't know a fix personally, but a way to avoid the ghost items is to not have the compass in your main hand when dropping it or moving it around inventories.
Credits
Any libraries, code, etc used in this project
- Simple-UUID by @Skubiak0903
- Item Name to NBT by @DorkOrc
Inspiration
- Dream's Minecraft Manhunts
评论 0
登录后参与评分
还没有评论,来抢沙发吧