The mod_loaded condition is set up to display a tooltip, but that string was missing from the lang file. I added and ran datagen to add it.
Raw mods.mod_id.name?
The tooltip was set up to resolve as Component.translatable(Tooltips.CONDITION_MOD_LOADED, "mods." + modId + ".name");.
I am not entirely sure what the "mods." + modId + ".name" part is about. It it a convention in forge to add "mod." + mod_id + ".name" to ones lang file? In that case it should probably have been Component.translatable(Tooltips.CONDITION_MOD_LOADED).append(Component.translatable("mod." + mod_id + ".name")) to display correctly.
But when the mod is not present, there is a 99.9% chance that the "mods." + modId + ".name" translation lookup fails to resolve in the first place, so I opted to just display the mod id instead.
Missing translation
The
mod_loaded
condition is set up to display a tooltip, but that string was missing from the lang file. I added and ran datagen to add it.Raw
mods.mod_id.name
?The tooltip was set up to resolve as
Component.translatable(Tooltips.CONDITION_MOD_LOADED, "mods." + modId + ".name");
. I am not entirely sure what the"mods." + modId + ".name"
part is about. It it a convention in forge to add"mod." + mod_id + ".name"
to ones lang file? In that case it should probably have beenComponent.translatable(Tooltips.CONDITION_MOD_LOADED).append(Component.translatable("mod." + mod_id + ".name"))
to display correctly.But when the mod is not present, there is a 99.9% chance that the
"mods." + modId + ".name"
translation lookup fails to resolve in the first place, so I opted to just display the mod id instead.Screenshots
Before:![image](https://github.com/klikli-dev/modonomicon/assets/26429514/46a6d583-921a-4336-8a9c-7be60444da91)
After:![image](https://github.com/klikli-dev/modonomicon/assets/26429514/e50e0280-c337-4026-805e-e9bfdcf065b6)