Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void update() {
- if(BlockMeepino.isActivated){
- BlockPos frontC = new BlockPos(this.getPos().getX(), this.getPos().getY(), this.getPos().getZ() + 1);
- BlockPos backC = new BlockPos(this.getPos().getX(), this.getPos().getY(), this.getPos().getZ() - 1);
- BlockPos veryCenterBlock = new BlockPos(this.getPos().getX(), this.getPos().getY(), this.getPos().getZ());
- world.setBlockState(veryCenterBlock, Blocks.AIR.getDefaultState());
- world.setBlockState(backC, Blocks.LAPIS_BLOCK.getDefaultState());
- world.setBlockState(frontC, Blocks.LAPIS_BLOCK.getDefaultState());
- BlockMeepino.isActivated = false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement