Beanzilla / OreTracker

A highly advanced Minetest mod, which displays ore locations per player.
MIT License
1 stars 2 forks source link

only detect few ores #8

Open quenenni opened 8 months ago

quenenni commented 8 months ago

Hello,

Nice mods.

I have several mods adding ores, but they are'nt detected by the mod.

I.e, I'm using :

All of these added few more ores that aren't in big cluster, so they shouldn't make the surrounding with too many names averywhere.. I think.

Isn't there a way for a mod to loop around all the registered ores the mods are adding to the game? Like loading as the last mod and then ask the game to give all the ores it knows. Or is the only way to add them manually?

Thanks

Beanzilla commented 2 months ago

Hi there, sorry for the delay in responding.

I think I know how to get all the registered ores, I'd just grab maybe their names. (This would loose the different colors for the different ores, but it would give 100% ore coverage, and for any game)

https://github.com/pl608/rand_cool/blob/main/init.lua#L9

I was in the process of building a separate Xray mod, but I never got it done due to life.

Currently as the code stands, it's all 100% manually being added via code.