So im trying to make a pickaxe that tells you when there is ore near the block you have mined. The 2 classes above are my current attempts to make this work (and yes i put the event in the oninitialize) but i cant find a way to make it check for the blockstates of each block in the position.
Any help would be appreciated!