DropHeads
DropHeads
Let the head hunt begin!
Using high quality textures 85% supplied by Minecraft-Heads.com ❤️
Highlights
- Super configurable
- Heads as a loot drop, or with a command
- Huge variety (e.g., snow fox, lime sheep, zombified swamp farmer villager, …)
- Behead messages and translation support
- Regularly updated heads from the latest Minecraft snapshots
- Complete API for other developers to hook into
Configuration
Default values picked to fit well on most servers,
However, if you like getting into configuration, here's just a taste of what you can do:
- Adjust drop rates based on mob type
- Adjust drop rates based on ticks-lived
- Adjust drop rates based on what weapon is used
- Adjust drop rates based on spawn conditions (Breeding, Spawners, /summon, ...)
- Require using specific weapon(s) to get heads to drop
- Enabling charged creeper head drops
- Change any head textures, or add your own
- Optionally require killed by a player (configurable what counts as 'killed by a player')
- Opt-in automatic updates
- ...and more! Check out config files in the GitHub repository
Permissions
For an always update-to-date list, check here.
dropheads.canlosehead: Can drop a head upon death
dropheads.canbehead.<mob_type>: Can get heads from killing the given mob
dropheads.alwaysbehead.<mob_type>: Get heads for 100% of kills (unless canlosehead is false)
dropheads.silentbehead: Avoid triggering a global behead message in chat *
dropheads.canplacehead: Can place a head as a block
dropheads.clickinfo: Can see the name of a head by clicking it *
dropheads.spawn: Can get heads with a command *
dropheads.droprate: Can check head drop rates with a command
* = has sub-permissions
Troubleshooting / F.A.Q.
Q: Heads are not dropping!
A: There a many possible causes; here is a quick checklist of things you should try:
* Check if another plugin is causing the issue (compatibility)
* Check if you have the dropheads.canbehead permission
* Check head-drop-rates and spawn-cause-modifiers configs (e.g. spawn egg rates are nerfed!)
* Keep in mind the time-alive, weapon-used, and looting modifiers.
* If killing a player, check if they have the dropheads.canlosehead permission
* If you have modified your config files, check them carefully for other causes
Q: Does this plugin cause lag?
A: It shouldn't! I hear it is much faster than Xisumavoid's datapack :)
Q: Can I edit the head textures (i.e., to match a resource pack)?
A: Yes! Look in the head-textures.txt file
Q: Migrating from another heads plugin?
A: It should be an easy drag-n-drop replacement, but if you have any issues let me know!
Q: How do I install on Forge/Fabric/Singleplayer?
A: DropHeads currently only works on Bukkit and its forks (Spigot, etc); try the MMH-Nano datapack
Q: Where do I get help / report a bug?
A: You can post a comment below, create a bug report, or DM me :)
Q: Older versions of Minecraft?
A: Currently, DropHeads runs on 1.13+. You can find older DropHead jars for 1.12 in the Files tab, otherwise seek out a plugin with support for legacy versions, such as PlayerHeads.
Planned
- Fabric support
- Improve existing textures
- Tropical Fish heads (have the 22 common ones, still need the 3104 rare varieties ☹️)
- Horse variants (for the different patterns)
- Carpeted llamas
Please reach out if you find bugs or have a texture suggestions!
What is the spawn-cause for allay duplication?
I would like set allay to have lower head drop rate if the allay is duplicated by being given an amethyst shard.
In reply to siulung201314:
Hmm, I checked here on Spigot's API for spawn-cause, and it seems allay duplication (and shulker duplication) both are in the same category as 'BREEDING' with the passive mobs
Is it possible to add a drop cooldown for each heads?
In reply to albert3691:
Not currently, but this is a great feature idea so I might add it later!
The closest approximation to what you want is probably the "time-alive-multipliers" in the config.yml, which you can use to modify the drop chance based on how long the victim has been alive.
One common use case would be to have a multiplier of 0 (zero) for players alive less than 5 minutes, which means killing them for heads would have a cooldown, although the killer has no cooldown for beheading other players/mobs
is it possible to adjust droprates for all mobs in one command?
In reply to chiken8743:
Unfortunately there isn't a command yet for setting the droprate -- but if you don't mind using the same droprate for all mobs, an easy way to do it is to delete every line in head-drop-rates.txt except "DEFAULT: x" and then set it to whatever you want
Have you thought about adding support for mythic mobs?
In reply to Valhallacraft:
I haven't heard of them, is it a mod or other plugin? If it doesn't use the vanilla mob types, it might be tricky to add native support for, but if you link it I'll see if it's feasible to create an add-on for it
Is there a way to make it so that players still drop their heads when keepinventory is on?
In reply to sprucestudios:
Yes, probably the best approach is to change the DropMode in the config, most likely you will want to use 'SPAWN'.
In reply to EvModder:
I did try that, however no matter what I set it to the head drops in the same way. Never mind, I'll reinstall and hope it works.
Thanks for helping me so much, by the way :D
In reply to sprucestudios:
np, if it still doesn't work let me know and I'll do some experimenting as well. If item drops are disabled in the world (e.g., /gamerule doMobDrops false), you can also do drop-mode 'GIVE' to put it directly into the inventory of the killer (assuming they have the space)
is it possible to increase drophead rates from specific enchant? because i have enchantment solution plugin and there's beheading enchant and i want to use that enchantment to this plugin and i don't know how to code or how to add that in the plugin. good plugin anyway!
In reply to mrPawtato:
You could set up a system with command blocks to auto move a player through LP groups based on the items they're holding?
In reply to mrPawtato:
There is no way to do this natively in DropHeads at the moment sorry.
DropHeads does have an API for BeheadEvents that other plugins can use to modify drop chance based on any arbitrary reason; I'm a bit busy IRL lately but maybe someone else with a coding background or similar goal could make an add-on for configuring droprate based on item nbt, and if so I'll link it here, otherwise the command block approach suggested by sprucestudios (using droprate-multiplier permission nodes) could be an option
Is it possible to change the head of an existing playerhead? Because i got a playerhead with specific NBT Tags and is need to change it to a Salmon Head.
Overall its a great Plugin! :)
In reply to lepokemaxi:
Not sure what exactly your situation is, but the answer is probably it depends.
If you just want to change the appearance of Salmon heads, you can edit the head-textures.txt file (and then the heads will update when dropped or mined).
If you want to convert a non-DropHeads head to a DropHeads mob head, that might be a bit trickier, but in theory if they used the same texture it will be able to convert automatically. If they are different textures, that might require manual conversion or perhaps an add-on plugin -- if that's what you are asking for maybe we can work something out in DMs
I've been using dropheads for one week now (the latest version).
When I restart my server, I get this error message:
05.08 01:43:06 [Server] INFO Enabling DropHeads v3.7.6 05.08 01:43:06 [Server] WARN Relocating data in ./plugins/DropHeads/, this might take a minute.. 05.08 01:43:07 [Server] ERROR Error occurred while enabling DropHeads v3.7.6 (Is it up to date?) 05.08 01:43:07 [Server] INFO java.lang.UnsupportedOperationException: Unsupported copy option 05.08 01:43:07 [Server] INFO at sun.nio.fs.UnixCopyFile$Flags.fromMoveOptions(UnixCopyFile.java:116) ~[?:?] 05.08 01:43:07 [Server] INFO at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:403) ~[?:?] 05.08 01:43:07 [Server] INFO at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:267) ~[?:?] 05.08 01:43:07 [Server] INFO at java.nio.file.Files.move(Files.java:1432) ~[?:?] 05.08 01:43:07 [Server] INFO at net.evmodder.EvLib.FileIO.moveDirectoryContents(FileIO.java:37) ~[DropHeads.jar:?] 05.08 01:43:07 [Server] INFO at net.evmodder.EvLib.FileIO.verifyDir(FileIO.java:75) ~[DropHeads.jar:?] 05.08 01:43:07 [Server] INFO at net.evmodder.EvLib.EvPlugin.reloadConfig(EvPlugin.java:20) ~[DropHeads.jar:?] 05.08 01:43:07 [Server] INFO at net.evmodder.EvLib.EvPlugin.onEnable(EvPlugin.java:28) ~[DropHeads.jar:?] 05.08 01:43:07 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:264) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] 05.08 01:43:07 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:370) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] 05.08 01:43:07 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:542) ~[paper-api-1.19-R0.1-SNAPSHOT.jar:?] 05.08 01:43:07 [Server] INFO at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugin(CraftServer.java:563) ~[paper-1.19.jar:git-Paper-81] 05.08 01:43:07 [Server] INFO at org.bukkit.craftbukkit.v1_19_R1.CraftServer.enablePlugins(CraftServer.java:477) ~[paper-1.19.jar:git-Paper-81] 05.08 01:43:07 [Server] INFO at net.minecraft.server.MinecraftServer.loadWorld0(MinecraftServer.java:634) ~[paper-1.19.jar:git-Paper-81] 05.08 01:43:07 [Server] INFO at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:420) ~[paper-1.19.jar:git-Paper-81] 05.08 01:43:07 [Server] INFO at net.minecraft.server.dedicated.DedicatedServer.initServer(DedicatedServer.java:306) ~[paper-1.19.jar:git-Paper-81] 05.08 01:43:07 [Server] INFO at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1122) ~[paper-1.19.jar:git-Paper-81] 05.08 01:43:07 [Server] INFO at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:303) ~[paper-1.19.jar:git-Paper-81] 05.08 01:43:07 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?] 05.08 01:43:07 [Server] INFO Disabling DropHeads v3.7.6
None of the commands work, and mobs won't drop their heads. Please help, this is one of the main features of my server!
In reply to sprucestudios:
Oh... this is a rare issue but I think I might know what's causing it. It might be possible you are using another one of my old plugins which is outdated, and it generated a folder called "EvFolder". If that is the case, you will need to delete that folder and potentially the other plugin as well (although updating it might also help)
Sorry about this -- many years ago I thought it would be a smart idea to have all my plugins put their configuration files into a single folder, and sometimes those old plugins with that code still come back to bite me
In reply to EvModder:
Ah yes, I'm also using ChatManager.
Would it be possible to fix this while also being able to
keep both plugins?
If not, that's okay, but kind of inconvenient. Sorry about this :(