getOwner().add(DeathDrops.class).addDrop(new ItemStack(VanillaMaterials.NETHER_STAR, 1)).addXpDrop((short) 50);
if (getAttachedCount() == 1) {
getOwner().add(Health.class).setSpawnHealth(300);
}
Damage damage = getOwner().add(Damage.class);
damage.getDamageLevel(Difficulty.EASY).setAmount(3);
//TODO: Check the values
damage.getDamageLevel(Difficulty.NORMAL).setEffect(new EntityEffect(EntityEffectType.WITHER, 5));
damage.getDamageLevel(Difficulty.HARD).setEffect(new EntityEffect(EntityEffectType.WITHER, 7));
damage.getDamageLevel(Difficulty.HARDCORE).setEffect(damage.getDamageLevel(Difficulty.HARD).getEffect());
// Add metadata for Wither health
getOwner().add(MetadataComponent.class).addMeta(new Metadata<Float>(Metadata.TYPE_FLOAT, 16) {
@Override
public Float getValue() {