public void onAttached() {
super.onAttached();
setEntityProtocol(new CreatureProtocol(CreatureType.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) 5);
if (getAttachedCount() == 1) {
getOwner().add(Health.class).setSpawnHealth(16);
}
Damage damage = getOwner().add(Damage.class);