illusivesoulworks / consecration

Minecraft Mod: Makes the undead more resilent except against fire and holy damage, and adds new features to help you slay them
https://www.curseforge.com/minecraft/mc-mods/consecration
Other
4 stars 6 forks source link

[SUGGESTION] Command to dump all available materials #46

Closed Sunconure11 closed 4 years ago

Sunconure11 commented 4 years ago

This would be useful for modpack devs, so they can define certain materials a bit better, for the purposes of smiting mobs.

TheIllusiveC4 commented 4 years ago

I don't keep any sort of registry of available materials, especially since many mods have different ways of implementing the idea of a "material". All Consecration does is take the material names listed in its config and use that to test against a particular mod's materials, which often times needs special parsing in itself and is evaluated at the time of smiting. For example, some mods require that I dig through their tools/weapons' NBT data to find the right material name.

To figure out these names, modpack devs will need to look into each mod's source code or ask their devs for the material names.