title: Minecraft style ID Grouping
body: <p>I am currently in the works of making a Calculator for a game called ECO Global Survival, I want this calculator to not only calculate the resource requirements for X amount of Y item but also to factor in its &quot;selling&quot; price. ECO has it so Selling Prices are what the user wishes to set them for however on our server we follow a formula that way not all professions will get messed over.</p>
  <p>The issue comes to items such as Logs. There is Log, Birch Log, Oak Log and so on. What I am wanting to do is &quot;group&quot; these in a way that minecraft does it - Dirt is ID 1 and everything else that is Dirt Related, grass podzol etc, becomes a :x</p>
  <p>However I can not seem to find a way to do this. Would anyone here know how to do this or know of some resource that I could look at to possible find a way?</p>
  <p><em>(Coding in both Python and Typescript - Python for a Program version and Typescript for web version)</em></p>