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


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.