Add the insolator #17
@ -127,12 +127,12 @@ public class InsolatorBlock extends BaseEntityBlock {
|
||||
|
||||
@Override
|
||||
public void animateTick(BlockState pState, Level pLevel, BlockPos pPos, RandomSource pRandom) {
|
||||
// if (pState.getValue(ACTIVE)) {
|
||||
// if (pRandom.nextInt(100) == 0) {
|
||||
// pLevel.playLocalSound(
|
||||
// pPos.getX() + 0.5, pPos.getY() + 0.5, pPos.getZ() + 0.5,
|
||||
// ModSounds.INSOLATOR.get(), SoundSource.BLOCKS, 0.5f, pRandom.nextFloat() * 0.4F + 0.8F, false);
|
||||
// }
|
||||
// }
|
||||
if (pState.getValue(ACTIVE)) {
|
||||
if (pRandom.nextDouble() < 1.0d) {
|
||||
pLevel.playLocalSound(
|
||||
pPos.getX() + 0.5, pPos.getY() + 0.5, pPos.getZ() + 0.5,
|
||||
ModSounds.INSOLATOR.get(), SoundSource.BLOCKS, 0.1f, 1.0f, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user