Mod Credits
Adds a credit screen for the installed mods in the style of the game credits, but with improved functionality and a custom poem.
截图
介绍
Mod Credits screen
With custom poem!
This mod adds a screen in the style of the vanilla credits/win screen, but for the
currently installed mods and with expanded functionality as well as a small custom poem.
Customization options (for modpack devs/users, available starting from version 2.0.0)
The config file is located at <game dir>/config/moehreag_modcredits.json.
Currently, the following options are available:
enable_poem_in_credits_button: Whether to display the poem when the mod credits screen is opened from the “Credits & Attribution” screen.enable_mod_links: Whether to allow clicking on mod names to go to their homepage/sources/…show_mod_icons: Whether to display mod icons in the credits screen. Note that mod authors are able to override the default behavior and may not respect this option.compact_mode: Whether to display the list in a more compact form. This option may also not be respected by mods that implement their own entries (see below).
Customization options (for mod devs)
Custom FMJ property (simple)
Example:
{
/*...*/
"custom": {
"moehreag-modcredits:description": "Your custom text!"
}
}
Note: This property does not support localization.
Example (using translation keys):
{
/*...*/
"custom": {
"moehreag-modcredits:description-keys": "modid.modcredits.description"
}
}
Note: For both options, the line length is limited to a width of 256 and will be wrapped.
Custom Entrypoint (more powerful, but also more manual work and likely to break with version updates)
{
/*...*/
entrypoints: {
"moehreag-modcredits": [
"com.example.modid.modcredits.ModCreditsImpl"
]
},
/*...*/
}
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! */
}
}
Maven coordinates
This mod can be found on https://maven.axolotlclient.com/. Alternatively, the modrinth maven can be used.
build.gradle.kts
repositories {
maven("https://maven.axolotlclient.com/releases")
}
dependencies {
modImplementation("io.github.moehreag:modcredits:$VERSION")
}
build.gradle
repositories {
maven { url = "https://maven.axolotlclient.com/releases" }
}
dependencies {
modImplementation("io.github.moehreag:modcredits:$VERSION")
}
You want to use this mod in a modpack but it doesn’t offer the correct options? Head to the issue tracker and let us know!
常见问题
Mod Credits 支持哪些 Minecraft 版本?
Mod Credits 支持 Minecraft Java 版 1.21.4–26.3,共 12 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。
Mod Credits 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
moehreag 的其他作品
查看全部 →
Ornithe Standard Libraries
A set of libraries for modding with Ornithe.
AxolotlClient (Modpack)
Modpack for AxolotlClient
Realistic Rowing
Makes rowing more realistic. May or may not improve your boating experience.
Mod Menu Ornithe
A mod menu for legacy Minecraft versions through Ornithe.
评论
登录后评论和评分