The Head Drops mechanic adds a player or mobs head to drop when they die. This can be configured to only drop the head when they are actually killed by a player, allowing for an interesting PvP reward. The drop chance can be configured in the config, and a 'looting modifier' can be set, that will be added to the chance for every looting level on the weapon. (Eg, a looting chance of 0.05 on a looting 3 sword will add 0.15 to the chance to drop a skull).
These heads can be placed, and if configured to allow so, broken and picked up again. It is possible to turn off either mob or player heads, to only have one of the two.
- Wither Skeletons
- Cave Spider
- Magma Cube
- Zombie Pigman
- Iron Golem
- Ender Dragon
- More can be added through the configuration, and you can modify existing skins.
Kill a supported entity, and you will have a chance of collecting a head from that entity. You can then place it at your leisure.
A few mob heads from Head Drops.
If a mobs head is no longer that mobs skin, try breaking and placing it again. If that does not fix the skin, please report it to a developer (We may need to find a new player with that skin).
|craftbook.mech.headdrops.kill||Allows the player to receive head drops as loot.|
|craftbook.mech.headdrops.break||Allows the player to receive the correct head when they break it.|
|Configuration Node and Path||Default Value||Effect|
|mechanics.head-drops.enable||false||Enable head drops.|
|mechanics.head-drops.drop-mob-heads||true||Allow head drops to drop mob heads.|
|mechanics.head-drops.drop-player-heads||true||Allow head drops to drop player heads.|
|mechanics.head-drops.require-player-killed||true||Only drop heads when killed by a player. Otherwise they will drop heads on any death.|
|mechanics.head-drops.drop-head-when-mined||true||When enabled, heads keep their current skin when mined and are dropped accordingly.|
|mechanics.head-drops.override-natural-head-drops||false||Override natural head drops, this will cause natural head drops to use the chances provided by CraftBook. (Eg, Wither Skeleton Heads)|
|mechanics.head-drops.drop-rate||0.05||A value between 1 and 0 which dictates the global chance of heads being dropped. This can be overridden per-entity type.|
|mechanics.head-drops.looting-rate-modifier||0.05||This amount is added to the chance for every looting level on an item. Eg, a chance of 0.05(5%) and a looting mod of 0.05(5%) on a looting 3 sword, would give a 0.20 chance (20%).|
Per-Entity Type Drop Rates
In the configuration, if a section called drop-rates: is created inside the configuration, you can set custom drop rates per specific entities. This is done by having the entities name in a String, followed by the chance. For example, PIG: 0.5, would give a pig a 50% chance to drop a head.
drop-rates: PIG: 0.5 COW: 0.1
Custom Mob Heads/Extra Mob Heads
In the configuration, if a section called custom-mob-skins: is created inside the configuration, you can set custom skins to be used for certain mobs, allowing you to change a mobs skin.. Or add your own mob heads. This is done by having the entities name in a String, followed by the player name you wish it to use the skin of. For example, PIG: "me4502", would give a pig Me4502's head.
custom-mob-skins: PIG: "ironshotgun2" COW: "wizjany" SLIME: "md_5"