A Litematica addon that expands the material list into raw materials.

Litematica's material list shows what a schematic is made of, but anything you'd normally craft (a block of redstone, a hopper, a chest) is listed as-is. RawMaterials follows the crafting recipes and shows the total raw materials you need to gather, minus what's already in your inventory.
Crafted items are broken down into their ingredients, recursively, down to raw materials.
Items already in your inventory are subtracted, so the list shows what's actually left to gather. Fully covered branches stop expanding and turn green.
Open or collapse individual rows, or the whole list at once.
When a recipe accepts a tag (any planks, any log), you choose which item to count toward it.
Open a material list in Litematica first; RawMaterials uses the most recently opened one. Then press M + K to open it as a raw-material list.
Inside the list:
Press M + J to open the settings screen, where you can rebind both keys.
Recipes come from your client's recipe book, the same source Litematica uses. On a vanilla multiplayer server, recipes you haven't unlocked won't expand, so some totals may not be fully broken down until you've unlocked them.
./gradlew build
The mod jar is written to build/libs/ (e.g. rawmats-fabric-26.2-0.1.0.jar). Put it in your mods folder along with malilib and Litematica for the same Minecraft version.