Got a question that the wiki doesn't answer? Ask on the forum (preferred), or join us on IRC.

BeastNode MC-Market.org
About the ads

CraftBook/Head Drops

From EngineHub.org Wiki
Jump to: navigation, search

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.

Contents

Supported Mobs

  • Players
  • Creepers
  • Zombies
  • Skeletons
  • Wither Skeletons
  • Blaze
  • Cave Spider
  • Chicken
  • Cow
  • Enderman
  • Ghast
  • Magma Cube
  • Mooshroom
  • Pig
  • Zombie Pigman
  • Sheep
  • Slime
  • Spider
  • Villager
  • Iron Golem
  • Squid
  • Ocelot
  • Bat
  • Ender Dragon
  • Silverfish
  • Snowman
  • Horse
  • Wolf
  • Witch
  • More can be added through the configuration, and you can modify existing skins.

Usage

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.

Image

A few mob heads from Head Drops.

CraftBookHeadDrops.png

Video Tutorial

Troubleshooting

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).

Permissions

Permission Node Effect
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

Configuration Node and Path Default Value Effect
mechanics.head-drops.enable false Enables the Head Drops mechanic.
mechanics.head-drops.drop-mob-heads true Allow the Head Drops mechanic to drop mob heads.
mechanics.head-drops.drop-player-heads true Allow the Head Drops mechanic 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%).
mechanics.head-drops.show-name-right-click true When enabled, right clicking a placed head will say the owner of the head's skin.


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.

For example:

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.

For example:

custom-mob-skins:
  PIG: "ironshotgun2"
  COW: "wizjany"
  SLIME: "md_5"


Namespaces

Variants
Actions