The bug
Foxes don't get damage inside sweet berry bush unlike other entities.
Attachments
Comments 6
@Nathan Dumontier Source that says that it's intended?
@TheBoy358 Sweet berry bushes only hurt you when you move in them, and that fox isn't moving; it's sitting down.
@Urielsalis Why wouldn't it make sense for foxes to get hurt in sweet berry bushes? The berries aren't the same thing as thorns.
From decompiled snapshot
@Override
public void onEntityCollision(final BlockState state, final World world, final BlockPos pos, final Entity entity) {
if (!(entity instanceof LivingEntity) || entity.getType() == EntityType.FOX) {
return;
}
entity.slowMovement(state, new Vec3d(0.800000011920929, 0.75, 0.800000011920929));
if (!world.isClient && state.<Integer>get((Property<Integer>)SweetBerryBushBlock.AGE) > 0 && (entity.prevRenderX != entity.x || entity.prevRenderZ != entity.z)) {
final double double6 = Math.abs(entity.x - entity.prevRenderX);
final double double8 = Math.abs(entity.z - entity.prevRenderZ);
if (double6 >= 0.003000000026077032 || double8 >= 0.003000000026077032) {
entity.damage(DamageSource.SWEET_BERRY_BUSH, 1.0f);
}
}
}
Sweet Berry Bushes explicitly check that the entity is not a Fox before doing damage
i don't think its a bug , its intended that the foxes can go inside bushes without taking damages.