Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void neighborChanged(IBlockState state, World world, BlockPos pos, Block blockIn) {
- int powered = world.isBlockIndirectlyGettingPowered(pos);
- world.setBlockState(pos, state.withProperty(ENABLED, powered > 0), 3);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement