模组致谢界面
包含自定义诗歌!
此模组添加了一个风格类似于原版致谢/胜利界面的屏幕,但显示的是当前已安装的模组,并具备扩展功能以及一首简短的自定义诗歌。
自定义选项(适用于整合包开发者/用户,自版本 2.0.0 起可用)
配置文件位于 <游戏目录>/config/moehreag_modcredits.json。
目前,以下选项可用:
enable_poem_in_credits_button: 是否在从“Credits & Attribution”(致谢与归属)界面打开模组致谢界面时显示诗歌。enable_mod_links: 是否允许点击模组名称以跳转至其主页/源码/...。show_mod_icons: 是否在致谢界面中显示模组图标。请注意,模组作者可以覆盖默认行为,因此可能不会遵循此选项。compact_mode: 是否以更紧凑的形式显示列表。实现自定义条目的模组也可能不会遵循此选项(见下文)。
定制选项(面向模组开发者)
自定义 FMJ 属性(简单版)
示例:
{
/*...*/
"custom": {
"moehreag-modcredits:description": "您的自定义文本!"
}
}
**注意:**此属性不支持本地化。
示例(使用翻译键):
{
/*...*/
"custom": {
"moehreag-modcredits:description-keys": "modid.modcredits.description"
}
}
注意: 对于这两种选项,行长度限制为 256 个字符宽度,超出部分将自动换行。
自定义入口点(功能更强大,但需要更多手动操作,且可能因版本更新而失效)
{
/*...*/
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 坐标
本模组托管于 。此外,也可以使用 Modrinth Maven。
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")
}
你想在整合包中使用此模组,但它没有提供正确的选项?前往问题追踪器并告诉我们!
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 . 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
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mod Credits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mod Credits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mod Credits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mod Credits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mod Credits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mod Credits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mod Credits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Mod Credits
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
未指定更新日志。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧