Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int distance = 7;
- BlockState downNorth = worldIn.getBlockState(pos.down().north());
- BlockState downEast = worldIn.getBlockState(pos.down().east());
- BlockState downSouth = worldIn.getBlockState(pos.down().south());
- BlockState downWest = worldIn.getBlockState(pos.down().west());
- BlockState upNorth = worldIn.getBlockState(pos.up().north());
- BlockState upEast = worldIn.getBlockState(pos.up().east());
- BlockState upSouth = worldIn.getBlockState(pos.up().south());
- BlockState upWest = worldIn.getBlockState(pos.up().west());
- if (( !state.get(PERSISTENT) && state.get(DISTANCE) == distance ) &&
- ( downNorth.getBlock() == this && !downNorth.get(PERSISTENT) && downNorth.get(DISTANCE) == distance ) &&
- ( downEast.getBlock() == this && !downEast.get(PERSISTENT) && downEast.get(DISTANCE) == distance ) &&
- ( downSouth.getBlock() == this && !downSouth.get(PERSISTENT) && downSouth.get(DISTANCE) == distance ) &&
- ( downWest.getBlock() == this && !downWest.get(PERSISTENT) && downWest.get(DISTANCE) == distance ) &&
- ( upNorth.getBlock() == this && !upNorth.get(PERSISTENT) && upNorth.get(DISTANCE) == distance ) &&
- ( upEast.getBlock() == this && !upEast.get(PERSISTENT) && upEast.get(DISTANCE) == distance ) &&
- ( upSouth.getBlock() == this && !upSouth.get(PERSISTENT) && upSouth.get(DISTANCE) == distance ) &&
- ( upWest.getBlock() == this && !upWest.get(PERSISTENT) && upWest.get(DISTANCE) == distance )
- ){
- spawnDrops(state, worldIn, pos);
- worldIn.removeBlock(pos, false);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement