Head-Drops
HeadDrops by X1machinemaker1X for MC 1.12
**earlier versions are available below**
originally by pizzafreak08
This plugin will make all Monsters and even Players drop their Head.
Plugin Spotlights:
(None ATM, if you want to do one, send me the link and I'll post it here.)
**If you want this plugin for MC 1.11.2 click here.**
**If you want this plugin for MC 1.10.2 click here.**
**If you want this plugin for MC 1.9.4 click here.**
**If you want this plugin for MC 1.8.8 click here.**
Features:
- All mobs in Minecraft 1.12 will drop their heads when killed by a player (has a permission)
- Players drop their Head when killed with a sword (has permission)
- Adjustable chance how often Heads will drop
- Get heads via commands
- You can decide if only players with certain permissions should get the mob or player heads
IF YOU UPDATE TO 1.12 DELETE YOUR config.yml FILE
Commands:
- /hd mobhead <mobname> - Gives you a specific mob head. Click HERE for a full listing
- /hd head [player] <playerhead> - Gives [player] a specific head or if left blank, you.
- /hd myhead - Gives you your head
- /hd info [player] - With info toggled on, clicking a player head, will give you the name of the player. if [player is specified, info mode will be toggled for them.
- /hd reload - Reloads the config
Permissions:
- headdrops.help: Use /hd command
- headdrops.head: Use /hd head <playerhead>
- headdrops.head.other: Use /hd head <player> <playerhead>
- headdrops.mobhead: Use /hd mobhead <mobname>
- headdrops.info: Use /hd info
- headdrops.info.other: Use /hd info <player>
- headdrops.reload: Use /hd reload
- headdrops.mobheaddrops: Drops mobhead for that player if config option "permissionCheckMob" is true
- headdrops.playerheaddrops: Drops playerhead for that player if config option "permissionCheckPlayer" is true
@LaoTheLizard
o.0 What? xD You changed 20 minecraft_src Files? If that fixed the Bugs to your wishes respect :D
I see, but my server has russian localization. Craftbukkit 1.4.6 ru nor ready yet, I think.
By the way, I set up 1.4.5. I'm building client and, you know, heads has default skin now. But their name's right, as "head of <nickname>". I'm discouraged...
Update: I fixed this feature. How? I don't know. I just changed about 20 files, which found in old, 1.4.2 minecraft.jar...
@LaoTheLizard
my server is already on 1.4.6 dev-build and it works fine :D
Ok, at least, thanks a lot, man. I think, I'll change my 1.4.2 to 1.4.5 for this compatibility. My players very like your plugin - it is really costs that.
@LaoTheLizard
1.31 doesn't work because it uses the new NBT-System which was added in 1.4.5 Recommended Build. I don't know how to fix the bug but fortunately mojang itself fixed it!
I tried to use old version (1.2.1) in 1.4.5 and here is the feature: heads, which we breaking from the wall/floor - do not lose its unique. That is so: I killed player 123 and got the "head of 123", I set it on the fwall - it has skin of player 123. If I break this head from the wall - I will take "head of 123" again. As for 1.4.2 - it has bug, which makes just "head" (not the "head of 123") when I break it from the wall.
I downloaded new version - 1.31 (1.3.1 ?) - but in 1.4.2 it is not start at all.
Can you explain me the substance of this bug, man? I am really want to fix it, but in 1.4.2...
@GarretSidzaka
yeah thats that what i talked about. please update to 1.31 and it should be gone
@GarretSidzaka
had to do an bugfix for 1.4.6:
http://dev.bukkit.org/media/files/658/779/HeadDrops.jar
wowwa weewa look at you go dmulloy. you fuxxing posting that stack trace before i could. you da man
@pizzafreak08
Works thanks :D
@pizzafreak08
Can you put a link in the comments?
@dmulloy2
fixed it. file is already uploaded but needs to be approved
@dmulloy2
will look into it right now
Error on startup: http://pastie.org/5558362 The plugin does not work with the newest recommended build for craftbukkit. Seems to be a class not found error.
I downloaded source files and fixed this plugin for myself. In my edition it has some more parameters in config. Now it looks so:
Now we can get the head by lopping it by swords and axes (stone/iron/diamond). Also, I can turn off this feature for each of monsters. Such settings complies to my requirements.
As for problem with BlockBreakEvent, when player-head becomes standard player-head - it's not beyond my reaches. :)
@pizzafreak08
I will wait for you. I promise "Like" to you then.
You can associate breaking of the head within SilkTouch. Player sets head on the floor/wall and can get it back by the SilkTouch only.
Update: Heads not stacks, I am not right here. This error has place in command /head <nick>. If I have somebody's head in my inventory - new head stacks with it and become head of player, which head a was in inventory already. Also, error, when I break the head from the wall/floor/etc and it becomes standard head, really exists.
@LaoTheLizard
I will look into that
@sw33td3vil
No it doesnt seem like it. Thats very strange...
Really fun plugin! :) But if I pick two (or more) different or equal heads - they stacks and lose their owner's information. It becomes standard player's head. This problem appears at break head, which was set on the wall/floor earlier, also. Can you fix it or it's not a bug - it's a feature? Can it be unstackable and each unique in my inventory?