Nbt data of ore detector is {selectedBlock:blockid as int} There should be a string to represent a block id instead of int. Another, there should be a config to control which blocks will be considered as ore and can be searched.