Me again.
I've tried adding a new withered bones for wither skeletons. For the most part this works just fine but I can't remove just bones from their drops.
if(event.entity instanceof EntitySkeleton) {
Random random = new Random();
int j = random.nextInt(4) + 1;
ItemStack itemDrop = new ItemStack(VanillaEnhanced.itemWitheredBone, j);
if (((EntitySkeleton)event.entityLiving).getSkeletonType() == 1){
event.drops.remove(Items.bone); // LINE THAT WON'T WORK
}
if (((EntitySkeleton)event.entityLiving).getSkeletonType() == 1 && random.nextInt(100) <= 75){
event.drops.add(new EntityItem(event.entity.worldObj, event.entity.posX, event.entity.posY, event.entity.posZ, itemDrop));
}
}
I've wrote a comment on the line that's SUPPOSED to make it not drop bones, but it doesn't seem to work.
Me again.
I've tried adding a new withered bones for wither skeletons. For the most part this works just fine but I can't remove just bones from their drops.
I've wrote a comment on the line that's SUPPOSED to make it not drop bones, but it doesn't seem to work.