LibGatheringNodes

LibGatheringNodes

951 Downloads

Contains a database of local names of mining and herbalism gathering nodes, with the item IDs of all the ores/stones/herbs gathered from it.

Embed LibGatheringNodes.xml in your .toc file or from another .xml file, then a typical way to use it is when mousing over a gathering node, call it like:

local drops = {LibStub("LibGatheringNodes-1.0").getItemID( _G["GameTooltipTextLeft1"]:GetText())}

Then you can loop them like:

for _, itemID in pairs(drops) do