ModernTabs 是什么?
这是一个库类模组,它为 自定义任何创意模式标签页 提供了跨平台解决方案,其定制程度甚至超过了 NeoForge 和 Fabric 上目前所能实现的效果。
目前已实现的功能:
- 具有可配置横幅与叠加层的各个标签页分区
- 横幅和叠加层精灵动画可配置为持续播放、悬停时播放或完全不播放。
- 这些分区可配置为可折叠
- 可自定义的标签页背景精灵
- 可自定义的标签页按钮精灵(图标背后的纹理)
- 使用任意精灵作为标签页图标,无需其为已注册的物品
- 可自定义的标签页标题,且可以用精灵替换
- 可自定义的滚动条精灵
- 一个可配置的搜索栏
- 任何标签页纹理都可以着色为指定的颜色。
如果大多数情况下未定义纹理,则将使用默认纹理并着色。
- 支持部分标签页元素的自定义元素方向(左对齐、居中、右对齐)
- 自 v1.5.0 起支持 KubeJs
- 自 v1.8.0 起支持 资源包
创意模式标签页横幅的设计灵感来源于 Create Aeronautics/Simulated 模组,因此 ModernTabs 基于其原始代码构建。
展示 - 示例创意模式标签页
这只是众多选项中的一个示例

此示例创意模式标签页仅在开发环境中启用,因此仅用于展示。
这也意味着它不会出现在常规的整合包中。
Wiki
Wiki 现已位于链接的 wiki 上。
它将指导你如何在自己的模组中集成 ModernTabs,或作为整合包作者使用 KubeJs 进行配置。
常见问题解答 (FAQ)
为什么又要做一个添加创意模式标签页横幅的模组?
➔ 我创建这个库是为了在我即将推出的几个模组中使用它,因此我需要同时支持 NeoForge 和 Fabric 版本。
此外,它还包含许多其他功能,旨在使创意模式标签页的配置更加简便。
会支持 Minecraft 版本 x 吗?
➔ 我不会向后移植。如果有人计划这样做,请随意操作;如果需要,你可以在 GitHub 上提交拉取请求。我未来可能会将其更新到更高版本(但不保证一定会更新)。
错误报告与功能请求
请在链接的 GitHub 上报告你所遇到的任何错误或提出功能请求。
致谢
What is ModernTabs?
It is a library mod that adds a cross-platform solution for customizing any creative tab even further than what is currently possible on both NeoForge and Fabric.
Currently implemented features:
- individual tab sections with a configurable banner & overlay
- The banner and overlay sprite animation can be configured to animate continuously, on hover or even not animate at all.
- These sections can be configured to be collapsible
- customizable tab background sprite
- customizable tab button sprite (the texture behind the icon)
- Use any sprite as a tab icon without it having to be a registered item
- customizable tab title that can also be replaced by a sprite
- customizable scroll bar sprite
- a configurable search bar
- Any tab texture can be colored in a defined color.
If no texture is defined in most cases, the default texture will be used & colored.
- Support for custom element orientations (left, centered, right) for some tab elements
- KubeJs support since v1.5.0
- Resource Pack support since v1.8.0
The creative tab banners are inspired by the Create Aeronautics/Simulated mod and ModernTabs therefore based on its original code.
Showcase - Example Creative Tab
This is just one example of many options

This example creative tab is only enabled in the development enviroment and therefore exists for showcase only.
That also means that it won't show up in a regular modpack.
Wiki
The wiki is now located on the linked wiki.
It shows you how to either implement ModernTabs in your own mod or as a modpack creator with KubeJs.
FAQ
Why another such mod that adds creative tab banners?
➔ I created this library so I can use it for some upcoming mods by me and therefore, I need both a supported NeoForge and Fabric version.
Additionly, it already contains many other features with the goal of making the creative tab easier to configure.
Will the Minecraft version x be supported?
➔ I will not backport it. If anyone plans on doing it, feel free to do it and if you want, you can create a pull request on GitHub. I might update it to newer versions in the future (but I will not guarantee it).
Bugs & Feature Requests
Please report any bugs you encounter or feature requests on the linked GitHub.
Credits
评论 0
登录后参与评分
还没有评论,来抢沙发吧