TrophyHeads
About TrophyHeads
A plugin that causes players (and or mobs) to drop their heads when they die.
Features
- Players can drop their heads when they die based on configuration settings.
- Players can spawn head with the /headspawn command. (Requires permissions.)
- Players can rename heads using a named piece of paper plus a head in a craftbox.
- Mobs optionally drop heads.
- Right click a skull to see who it belonged to.
How to install
- Just drop the jar file in your plugins directory and restart your server.
- Update config.yml as needed.
- Update permissions.
Permissions
trophyheads.spawn - Allow player to run /headspawn command. (Default: op)
trophyheads.give - Allow player to run /headgive command. (Default: op)
trophyheads.drop - Allows players to drop heads. (Default: true)
trophyheads.info - Allows players to sneak punch a skull to see the owner. (Default: true)
trophyheads.reload - Allows players to use /trophyreload command. (Default: op)
Configuration
See config.yml
drop-chance - The percentage chance of player dropping a head. A whole number between 0 and 100.
death-types - A list containing any of the following.
- ALL
- PVP
- CONTACT
- ENTITY_ATTACK
- PROJECTILE
- SUFFOCATION
- FALL
- FIRE
- FIRE_TICK
- MELTING
- LAVA
- DROWNING
- BLOCK_EXPLOSION
- ENTITY_EXPLOSION
- VOID
- LIGHTNING
- SUICIDE
- STARVATION
- POISON
- MAGIC
- WITHER
- FALLING_BLOCK
- THORNS
- CUSTOM
player-skin - Set to true or false. If true then a placed head will display the correct skin.
Commands
Spawn a player head.
/headspawn ([player]) ([count])
Aliases: /head
/headgive [player] [skull name] ([count])
Aliases: /headg
Reload configuration
/trophyreload
Aliases: /threload, /thr
Addons
Development
Known Issues
- Placing the head causes it to lose part of its meta data.
@ZoefyC
I will add the elder guardians.
This plugin is totally awesome! I love the fact that you can change the skulls for every mob type :) One question though, is it possible to add a skull to elder guardians? They seem to drop the same skull as guardians so far.
Is ender_dragon head fine if I set it to default since 1.9? On the console it says no enum for Enderdragon, but I've looked up on javadocs and its Ender_dragon, but I haven' tried killing one
Btw best plugin ever
When I set down a head and pick it back up, the lore with the death message is no longer there. Is there a way to fix this? Having the death messages on the head is very important to my server. Thanks.
@cnaude
Thanks man, great Dev, always responsive.
@marubal21
Added lore option to headgive command: http://h.cnaude.org:8081/job/TrophyHeads/23/ Example: /headgive cnaude notch 1 This is a lore message.
Would you be able to add a way to give a custom message/lore to heads retrieved using the /headgive command?
I was thinking just another role in the config just for when the /headgive command is used, or maybe add an extra argument to the command itself..
Ex.
give_command:
skin: [skull name]
message: '&ecustom message for givehead command &c%%NAME%%&e.'
or
/headgive [player] [skull name] ([count]) ([message/lore])
Any chance of a command to give a head to a player other than yourself? I'd like to get console to give heads to people or also as a perk
could you add a feature that you only can get a head in a pre-made area (by worldedit or worldgard)
@marubal21
Done. :)
@cnaude
Great work on this plugin!
You should update the plugin info page add the new command, and any other that might be hidden. :)
@cnaude
Flawless as the rest of the plugin! :) Thank you!
@marubal21
Try the headgive command in http://h.cnaude.org:8081/job/TrophyHeads/21/
I know there is the "/headspawn ([player]) ([count])" command to give yourself a player head.
Is there a command/console command to give a head to a player? something along the lines of /give <player> <players head> <count> which would let me give player xyz a set amount of player abc's head?
i hope that made sense...
@marubal21
I had this issue too. Just went into the config, scrolled down to the EnderDragon section and placed an underscore like this: Ender_dragon and it seems to have cured this issue.
i'm getting the following error on server start:
[INFO]: [TrophyHeads] Enabling TrophyHeads v1.12.7-19 [ERROR]: [TrophyHeads] Invalid entity type: Enderdragon[No enum constant org.bukkit.entity.EntityType.ENDERDRAGON]
TrophyHeads; v1.12.7-19 Spigot: git-Spigot-fdc1440-880a532 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT) <-Latest build available as of this post.
@Flarupspige
Link removed.
https://gyazo.com/3d443a87de802f872d61a433c6268a17 i cant open this link "trophy heads"
@cnaude
sorry my mistake i forgot that i havent update to 1.8.8, it works fine now :D
@Flarupspige
Any errors in the logs? What version of CraftBukkit or Spigot?