FTB Library 是 FTB Mods 的基础组件。它旨在简化并提升模组开发体验,为 Feed the Beast 生态中的模组开发流程提供便利。虽然主要供 FTB Mods(如 FTB Chunks 和 FTB Quests)使用,但并未明确禁止将其集成到非 FTB 模组中。不过请注意,在非 FTB 模组中使用可能会带来挑战,由此产生的任何问题均由模组开发者自行负责解决。
主要功能
- 简化的 GUI 开发:FTB Library 提供了结构化的 GUI 创建框架,使我们能够增强 FTB Mods Suite 内的用户体验。
- 侧边栏系统:FTB Library 在背包屏幕左上角引入了便捷的侧边栏系统,方便快速访问重要功能。
- 配置库:通过 FTB Library 内置的配置库轻松管理模组的配置和设置,使自定义游戏体验变得简单。
- SNBT 系统:FTB Library 包含 SNBT(字符串命名二进制标签)系统,简化了模组内的数据存储与操作,确保无缝集成与兼容性。
- 基于 SNBT 的配置系统:利用基于 SNBT 的配置系统来简化模组的配置,实现对模组行为和外观的快速调整。
- NBT 编辑器:通过命令 "/ftblibrary nbtedit" 访问强大的 NBT 编辑器。该工具允许您通过用户友好的 GUI 直接修改方块实体、实体或玩家的 NBT 数据。
- 实用命令:FTB Library 提供了实用的命令,例如用于控制游戏内时间的 "/ftblibrary night" 和 "/ftblibrary day",以及用于开始或停止降雨的 "/ftblibrary rain",从而简化您的游戏体验。
GUI 示例

可扩展的侧边栏按钮
FTB Library 引入了其他模组通过 JSON 文件创建侧边栏按钮的功能,增强了 FTB Mods 的整体功能和灵活性。

注意:虽然 FTB Library 并非专为非 FTB 模组设计使用,但也未明确限制。选择将其集成到此类项目中的开发者应做好应对潜在挑战的准备。
请谨慎操作,并对可能出现的任何兼容性或集成问题承担全部责任。您可以在我们的 GitHub Issues 页面报告错误或提交功能请求。
支持
- 关于 整合包 的问题,请访问:
- 关于 模组 的问题,请访问:
- 如有疑问?欢迎加入我们的 Discord:
保持更新
FTB Library serves as a foundational component for FTB Mods. It's designed to simplify and enhance the modding experience for our developers, streamlining the development process for mods within the Feed the Beast ecosystem. While primarily intended for use by FTB Mods such as FTB Chunks and FTB Quests, it is not explicitly prohibited for integration into non-FTB mods. However, please note that using it in such contexts may pose challenges, and the responsibility for resolving any resulting issues falls upon the mod developer.
Key Features
- Streamlined GUI Development: FTB Library offers a structured framework for GUI creation, allowing us to enhance the user experience within the FTB Mods Suite.
- Sidebar System: FTB Library introduces a convenient sidebar system located at the top left of your inventory screen, providing quick access to essential features.
- Config Library: Easily manage configurations and settings for your mods with FTB Library's built-in config library, making it simple to customize your gaming experience.
- SNBT System: FTB Library includes an SNBT (String Named Binary Tag) system, which simplifies data storage and manipulation within your mod, ensuring smooth integration and compatibility.
- SNBT-Based Config System: Utilize the SNBT-based config system to streamline the configuration of your mod, enabling quick adjustments to its behavior and appearance.
- NBT Editor: Access a powerful NBT editor through the "/ftblibrary nbtedit" command. This tool allows you to modify the NBT data of block entities, entities, or players directly from a user-friendly GUI.
- Utility Commands: FTB Library provides handy utility commands, such as "/ftblibrary night" and "/ftblibrary day" to control the in-game time and "/ftblibrary rain" to start or stop rain, simplifying your gameplay experience.
Example GUI's

Extensible Sidebar Buttons
FTB Library introduces the capability for other mods to create sidebar buttons via JSON files, enhancing the overall functionality and versatility of FTB Mods.

Note: While FTB Library is not designed for use in non-FTB mods, it is not explicitly restricted. Developers choosing to integrate it into such projects should be prepared for potential challenges.
Please proceed with caution and take full responsibility for any compatibility or integration issues that may arise. You can report bugs or feature requests on our GitHub issues page.
Support
- For Modpack issues, please go here:
- For Mod issues, please go here:
- Just got a question? Check out our Discord:
Keep up to date
下载 FTB Library (NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FTB Library (NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FTB Library (NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FTB Library (NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FTB Library (NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FTB Library (NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FTB Library (NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FTB Library (NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FTB Library (NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 FTB Library (NeoForge)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
[2101.1.40]
新增
- 支持 WebP 图像格式,包括动态 .webp 文件
- 添加了
WebPIcon类用于静态 WebP 图像显示 - 添加了
AnimatedImageWidget类,允许将动态 WebP 文件嵌入到 GUI 中
- 添加了
- 添加了
Icon#isAspectRatioResolved方法,以处理异步加载的图标(例如新的WebPIcon) - 添加了“调整大小”和“暂停”图标
- 添加了
BaseValue#fromFileOnly方法- 可应用于那些可能无法在客户端通过 GUI 编辑的配置值
- 此类值只能从配置文件中读取
- 虽然客户端配置同步需要玩家权限等级 4,但这是额外的防御层
更改
- 重构了图像发现机制,使其正确感知纹理图集
- 这样的好处是所有纹理图集都会被正确扫描,并且可以获取有用的信息,如图像宽高比
- 这对 FTB Quests 特别有用
修复
- 调整了
BaseScreen中模态面板的绘制方式,使其再次安全地覆盖drawForeground而无需调用super()
支持
如果您在使用此模组时遇到任何问题,请通过我们的 问题追踪器 报告
[2101.1.38]
新增
- 添加了
AbstractButtonListScreen#ExtendedSearch接口- 允许实现类为列表中的组件添加自定义搜索行为,除了标准的组件标题搜索之外
- 添加了用于颜色配置的
ColorValue类,以及SNBTConfig#addColor方法 - 添加了新的
Button.Builder类,在创建按钮组件时提供更高的灵活性 - 添加了物品和流体选择器屏幕的模态面板版本
- 旨在与基于菜单的屏幕配合使用,避免切换屏幕导致菜单被关闭
- 添加了
TextComponentUtils#isComponentEmpty方法 - 添加了
TooltipList#addAll方法,接受Component...参数 - 添加了
Panel#addAll方法,接受Widget...参数
更改
CurrencyProvider抽象层现在使用 long 类型而非 int- 这是一个 API 破坏性变更!需要 FTB XMod Compat 21.1.13 或更高版本才能与此兼容
- 将
AbstractThreePanelScreen.BottomPanel提取到独立的LowerButtonPanel类中以提高可复用性
修复
- 修复了多个
MenuScreenWrapper渲染问题 - 修复了与基于菜单的屏幕配合使用时出现的部分模态面板绘制问题
支持
如果您在使用本模组时遇到任何问题,请在我们的 问题追踪器 上报告。
[26.1.2.10]
新增
- 添加了
AbstractButtonListScreen#ExtendedSearch接口- 允许实现类为列表中的小部件添加自定义搜索行为,除了标准的小部件标题搜索之外
修复
- 修复了一个导致可滚动面板中不可见区域外的小部件被不必要地绘制的问题,这可能导致严重的帧率问题
支持
如果您在使用此模组时遇到任何问题,请在我们的问题追踪器上报告
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
那是什么?一个 Waila/Hwyla 的分支。







评论 0
登录后参与评分
还没有评论,来抢沙发吧