made blockDetector directional
TODO: fix NBT read