Compatibility
Minecraft: Java Edition
Platforms
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Links
Creators
Details
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
.
Showcase Video
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