Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
CoalGrades
Charcoal kilns bake graded coal from every kind of wood, and coal-fired smelting facilities accept the graded coal as proportionally stronger fuel. English/Korean.
By MM94
CHANGELOG
Changelog
0.1.4
- Fixed drop-model (ground-dropped item) still rendering dark despite correctly-recolored textures: the renderer's vertex colors and/or material
_Colorwere multiplying the texture toward black. Each clone prefab's drop-model renderer now gets its own mesh copy (never modifies the mesh shared with vanilla Coal) with vertex colors whitened (alpha preserved), and each material clone's_Coloris whitened as well (alpha preserved) — the recolored texture is now the sole color source. - Added per-renderer/per-material-slot diagnostic logging (shader name,
_Colorpresence/original value, vertex color count and original RGB min/max) to confirm the root cause, plus a fallback that enumerates all Color-type shader properties when neither vertex colors nor_Colorexplain the darkening.
0.1.3
- Fixed drop-model (ground-dropped item) recoloring: shadow/highlight normalization was computed over the entire shared texture atlas instead of just the region the coal mesh actually samples, so every grade's drop model showed only its shadow color. Normalization and recoloring now use the mesh's UV bounding box in texture space (inventory icons were already correct and are unaffected).
- Fixed a NullReferenceException when adding fuel to a smelter while the inventory contained an item with no
m_dropPrefab(e.g. a crafted item) —FindAvailableFuelno longer calls vanillaInventory.GetItem(isPrefabName:true)and instead does a null-safe scan overGetAllItems().
0.1.2
- Added runtime-recolored inventory icons and drop-model textures for all 5 coal grades (no new image assets — vanilla Coal's icon and drop texture are copied and recolored in-memory based on each grade's shadow/highlight/gamma).