Mod Credits Screen
Now with a custom poem!
This modification adds a specialized screen to the game, designed in the style of Minecraft's standard credits. Instead of displaying the usual game developers, it shows information about all installed mods, offering enhanced functionality and an original poem.
Configuration for Mod Developers
Simple Method via FMJ Properties
Example of mod description configuration:
{
/.../
"custom": {
"moehreag-modcredits:description": "Your custom text!"
}
}
Important: This method does not support text localization.
Alternative approach using translation keys:
{
/.../
"custom": {
"moehreag-modcredits:description-keys": "modid.modcredits.description"
}
}
Note: Both options limit line length to a width of 256 characters with automatic wrapping.
Advanced Method via Entry Point
(More flexible but requires manual setup and may need updates with version changes)
{
/.../
entrypoints: {
"moehreag-modcredits": [
"com.example.modid.modcredits.ModCreditsImpl"
]
},
/.../
}
Example Java code:
package com.example.modid.modcredits;
import io.github.moehreag.modcredits.ModCreditsApi;
import io.github.moehreag.modcredits.entries.Entry;
import net.fabricmc.loader.api.ModContainer;
public class ModCreditsImpl implements ModCreditsApi {
@Override
public Entry createEntry(ModContainer self, boolean rightText) {
/ Your code here! /
}
}