Advertisement
SirPuli

Untitled

May 29th, 2020
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.51 KB | None | 0 0
  1. int distance = 7;
  2.  
  3.         BlockState downNorth = worldIn.getBlockState(pos.down().north());
  4.         BlockState downEast = worldIn.getBlockState(pos.down().east());
  5.         BlockState downSouth = worldIn.getBlockState(pos.down().south());
  6.         BlockState downWest = worldIn.getBlockState(pos.down().west());
  7.  
  8.         BlockState upNorth = worldIn.getBlockState(pos.up().north());
  9.         BlockState upEast = worldIn.getBlockState(pos.up().east());
  10.         BlockState upSouth = worldIn.getBlockState(pos.up().south());
  11.         BlockState upWest = worldIn.getBlockState(pos.up().west());
  12.  
  13.         if (( !state.get(PERSISTENT) && state.get(DISTANCE) == distance ) &&
  14.                 ( downNorth.getBlock() == this && !downNorth.get(PERSISTENT) && downNorth.get(DISTANCE) == distance ) &&
  15.                 ( downEast.getBlock() == this && !downEast.get(PERSISTENT) && downEast.get(DISTANCE) == distance ) &&
  16.                 ( downSouth.getBlock() == this && !downSouth.get(PERSISTENT) && downSouth.get(DISTANCE) == distance ) &&
  17.                 ( downWest.getBlock() == this && !downWest.get(PERSISTENT) && downWest.get(DISTANCE) == distance ) &&
  18.  
  19.                 ( upNorth.getBlock() == this && !upNorth.get(PERSISTENT) && upNorth.get(DISTANCE) == distance ) &&
  20.                 ( upEast.getBlock() == this && !upEast.get(PERSISTENT) && upEast.get(DISTANCE) == distance ) &&
  21.                 ( upSouth.getBlock() == this && !upSouth.get(PERSISTENT) && upSouth.get(DISTANCE) == distance ) &&
  22.                 ( upWest.getBlock() == this && !upWest.get(PERSISTENT) && upWest.get(DISTANCE) == distance )
  23.         ){
  24.             spawnDrops(state, worldIn, pos);
  25.             worldIn.removeBlock(pos, false);
  26.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement