Geyser prototype

This commit is contained in:
paulevsGitch 2020-12-04 14:30:21 +03:00
parent 9504432cdd
commit bf47e9a2b5
9 changed files with 254 additions and 5 deletions

View file

@ -43,7 +43,7 @@ public class BlockBrimstone extends BlockBase {
if (deactivate) {
world.setBlockState(pos, getDefaultState().with(ACTIVATED, false));
}
else if (state.get(ACTIVATED)) {
else if (state.get(ACTIVATED) && random.nextInt(16) == 0) {
Direction dir = BlocksHelper.randomDirection(random);
BlockPos side = pos.offset(dir);
BlockState sideState = world.getBlockState(side);