Advertisement
Creepinson

Untitled

Apr 24th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. @Override
  2. public void update() {
  3.  
  4. if(BlockMeepino.isActivated){
  5.  
  6. BlockPos frontC = new BlockPos(this.getPos().getX(), this.getPos().getY(), this.getPos().getZ() + 1);
  7. BlockPos backC = new BlockPos(this.getPos().getX(), this.getPos().getY(), this.getPos().getZ() - 1);
  8. BlockPos veryCenterBlock = new BlockPos(this.getPos().getX(), this.getPos().getY(), this.getPos().getZ());
  9.  
  10. world.setBlockState(veryCenterBlock, Blocks.AIR.getDefaultState());
  11. world.setBlockState(backC, Blocks.LAPIS_BLOCK.getDefaultState());
  12. world.setBlockState(frontC, Blocks.LAPIS_BLOCK.getDefaultState());
  13. BlockMeepino.isActivated = false;
  14. }
  15.  
  16.  
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement