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