Entropy makes sounds for all entities

This commit is contained in:
Vos
2025-11-11 11:27:21 -06:00
parent 11909da2db
commit ce65339a04
@@ -62,9 +62,7 @@ public class EntropyBlock extends Block {
// 1d is roughly 4.5 blocks worth of upward velocity // 1d is roughly 4.5 blocks worth of upward velocity
entity.addVelocity(randomVelocityX, randomVelocityY, randomVelocityZ); entity.addVelocity(randomVelocityX, randomVelocityY, randomVelocityZ);
if(entity instanceof PlayerEntity){
world.playSound(entity, pos, SoundEvents.ENTITY_ENDERMAN_HURT, SoundCategory.BLOCKS, 10f, 0.4f); world.playSound(entity, pos, SoundEvents.ENTITY_ENDERMAN_HURT, SoundCategory.BLOCKS, 10f, 0.4f);
}
super.onSteppedOn(world, pos, state, entity); super.onSteppedOn(world, pos, state, entity);
} }