mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 08:18:00 +01:00
Horseshoes and rocks now break pots. Closes #512
This commit is contained in:
parent
5d8f9e37b4
commit
58338090b2
2 changed files with 6 additions and 0 deletions
|
@ -42,5 +42,6 @@ public class UEntityTypeTagProvider extends FabricTagProvider<EntityType<?>> {
|
|||
EntityType.FROG
|
||||
);
|
||||
getOrCreateTagBuilder(EntityTypeTags.CAN_BREATHE_UNDER_WATER).add(UEntities.MIMIC);
|
||||
getOrCreateTagBuilder(EntityTypeTags.IMPACT_PROJECTILES).add(UEntities.MUFFIN);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -287,6 +287,11 @@ public class PhysicsBodyProjectileEntity extends PersistentProjectileEntity impl
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canBreakBlocks(World world) {
|
||||
return !isBouncy() && super.canBreakBlocks(world);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SoundEvent getHitSound() {
|
||||
if (getStack().isIn(UTags.Items.HORSE_SHOES)) {
|
||||
|
|
Loading…
Reference in a new issue