setEntityProtocol(new CreatureProtocol(CreatureType.CAVE_SPIDER));
DeathDrops dropComponent = getOwner().add(DeathDrops.class);
Random random = getRandom();
dropComponent.addDrop(new ItemStack(VanillaMaterials.STRING, random.nextInt(2)));
dropComponent.addDrop(new ItemStack(VanillaMaterials.SPIDER_EYE, random.nextInt(1)));
dropComponent.addXpDrop((short) 3);
if (getAttachedCount() == 1) {
getOwner().add(Health.class).setSpawnHealth(12);
}
Damage damage = getOwner().add(Damage.class);
damage.getDamageLevel(Difficulty.EASY).setAmount(2);