Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public void neighborChanged(IBlockState state, World world, BlockPos pos, Block blockIn) {
  2. int powered = world.isBlockIndirectlyGettingPowered(pos);
  3. world.setBlockState(pos, state.withProperty(ENABLED, powered > 0), 3);
  4. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement