Difficulty searching the source code for Ore blocks

Difficulty searching the source code for Ore blocks
0

Hi, I’m writing a Prospector’s Journal mod - in order to take the burden of tracking sample rocks off of Journeymap into something based heavily on TCNodeTracker.

While I can find Rocks and Flowers easy enough, the actual code check for ‘player just clicked on an Ore block’ is eluding me.
If it was an item, in minetweaker, I’d be looking for ‘gt.meta.ore.normal.’ and 'gt.meta.ore..bedrock’.

Any assistance would be appreciated.

2 Likes

https://git.gregtech.overminddl1.com/GregTech-6/GT6/src/branch/master/src/main/java/gregapi/block/ToolCompat.java#L363-L376

That should do it.

2 Likes

Of course, the Hammer has been doing a similar check.

I shall have to spend some time reading the underlying implementation when I get the chance.

2 Likes