Difficulty searching the source code for Ore blocks


(Alexander James) #1

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.


(Gregorius Techneticies) #2

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

That should do it.


(Alexander James) #3

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.