Okay. That actually was the problem. It works now.
One more question. Do I update/set the block state with regular
world.setBlockState(pos, world.getBlockState(pos).withProperty(VALUE, Integer.valueOf(4)), 2);
Or do I do it somehow different? because this is happening (values should be the same as Val in the console)
Image