Horseshoes and rocks now break pots. Closes #512

This commit is contained in:
Sollace 2024-11-01 14:19:28 +00:00
parent 5d8f9e37b4
commit 58338090b2
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
2 changed files with 6 additions and 0 deletions

View file

@ -42,5 +42,6 @@ public class UEntityTypeTagProvider extends FabricTagProvider<EntityType<?>> {
EntityType.FROG EntityType.FROG
); );
getOrCreateTagBuilder(EntityTypeTags.CAN_BREATHE_UNDER_WATER).add(UEntities.MIMIC); getOrCreateTagBuilder(EntityTypeTags.CAN_BREATHE_UNDER_WATER).add(UEntities.MIMIC);
getOrCreateTagBuilder(EntityTypeTags.IMPACT_PROJECTILES).add(UEntities.MUFFIN);
} }
} }

View file

@ -287,6 +287,11 @@ public class PhysicsBodyProjectileEntity extends PersistentProjectileEntity impl
} }
} }
@Override
public boolean canBreakBlocks(World world) {
return !isBouncy() && super.canBreakBlocks(world);
}
@Override @Override
protected SoundEvent getHitSound() { protected SoundEvent getHitSound() {
if (getStack().isIn(UTags.Items.HORSE_SHOES)) { if (getStack().isIn(UTags.Items.HORSE_SHOES)) {