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.
@jwkilo
The meta won't affect the look of the head. It's just the custom description that gets lost. Sometimes if the Mojang skin server is acting up heads will display incorrectly. It should clear up on its own.
I'm having an issue with placing heads. Every mob had i try to place just places a steve head. Player heads seem to work. I saw the line above
Known Issues
Placing the head causes it to lose part of its meta data.
just wondering when this will be fixed.
@cnaude
Oh it does work but it does not say it loaded in the console! Ok thanks for making this awesome plugin!
@BlackFing85
Are there errors in your startup log?
Edit: You should be able to run both plugins at the same time. I just tested it on my server.
@cnaude
Yeah when I download TrophyHeads it just loads that one and not SpecialHeads :(
@BlackFing85
Try it and let us know. I have never tried SpecialHeads. They should play nice together. If you run into issues let me know.
@cnaude
Does this work with another head plugin? I have SpecialHeads but I want this plugin for the dropping and I want the SpecialHeads plugin for the spawning in heads. Can you tell me if this would work with SpecialHeads?
@TNTUP
You should be able to sell heads using one of the various shop plugins. I haven't tried it myself though.
How would i disable this for certain groups? i tried -trophyheads.drop and it didn't work.
I dont know any plugins that can do that, like a NPC (Citizens) selling a player head.. The player pays X money for his head. I guess it requires an addon for this...
@Sudding123
Yes it does.
@Sudding123
Good question. I'll test it.
Does this work in 1.7.2?
@TNTUP
@InsomniaCraft
Fix in 1.12.5.
@InsomniaCraft
It might be related to the priority of the block breaking event. I have a test version with a different priority available for anyone that wants to try it.
I think I've seen bug reports of this before, but players can break heads in protected regions like safe zones in factions or worldguard regions.
@TNTUP
I have an idea. Ill get a test version for you to try.
@cnaude
My comment got ignored, I'll link it here Comment
Please read it, I consider it serious cause anyone can break heads in protected regions.
@GreenGrizzlyBear
It does not affect mob drops.
@cnaude
Would only having pvp on there disable mobs from dropping to?