Lib39 是一组源自我们内容模组 Yttr 的工具、Mixin、事件等的松散集合——由于 Yttr 包含许多随机且有用的东西,人们经常谈论从 Yttr 中“窃取” Mixin,因此我们决定将其拆分成一个库。
39 是镥(Yttrium)的原子序数。你可以将其读作 "lib thirty nine"、"lib three nine"、"lib miku",或者任何你喜欢的读音。
快速上手
Lib39 通过 Sleeping Town Maven 分发。将以下内容合并到你的 build.gradle 中:
repositories {
maven {
url 'https://repo.sleeping.town'
content {
includeGroup 'com.unascribed'
}
}
}
dependencies {
modApi include("com.unascribed:lib39-core:2.0.7+1.20.1")
// 在此处添加你需要的其他模块
// loom 不会自动 JiJ 传递依赖项,因此你需要手动包含所有相关依赖
}
Lib39 也发布在 Modrinth 上,但我们强烈建议你使用 JiJ(Jar-in-Jar)方式加载模块。它们很小。
如果你在意,这里是 JiJ 时各模块的确切大小
| Module | Size |
|---|---|
| Lockpick | 4.38KiB |
| AQI | 5.20KiB |
| Util | 5.58KiB |
| Ripple | 6.06KiB |
| Sandman | 6.56KiB |
| Deferral | 6.57KiB |
| Crowbar | 6.83KiB |
| Dessicant | 9.23KiB |
| Wrangle | 9.62KiB |
| Recoil | 9.79KiB |
| Phantom | 12.10KiB |
| Mesh | 13.99KiB |
| Weld | 16.69KiB |
| Waypoint | 22.33KiB |
| Core | 26.12KiB |
| Tunnel | 27.85KiB |
| Machination | 33.06KiB |
| Keygen | 34.88KiB |
| Total | 257KiB |
将 core 替换为你想要使用的模块(或模块s)。
Lib39 1.4 及更早版本仅支持 1.19-1.19.2。Lib39 1.5 增加了对 1.18.2 和 1.19.3 的支持,而一系列“实验性”构建版提供对 1.20.1 的支持。Lib39 2.0 与 1.x 系列 API 兼容,目前仅提供 1.20.1 版本,并与 Yttr 同步开发。
模块
- Core
包含各种实用工具类,如 AutoRegistry、AutoMixin,以及与其他模块共享的类。 还包含一些零碎的小功能,例如合成音效。 - Lockpick
通过 Mixin 移除人为限制,例如模型旋转角度、合成配方尺寸等。 还提供各种其他相关工具,例如从父模型继承元素的能力。 - Ripple
允许自定义游戏标题画面文字(splash texts)。 - Tunnel
基于 1.12 版本的 Concrete Network 添加了一个便捷的网络系统。 - Phantom
添加了暂时将方块“相位化”移出世界的功能。这些方块永远不会从世界中真正移除,只是被隐藏。 - Waypoint
添加了一个额外的烘焙世界层,使用加法混合来渲染各种发光效果。 - Weld
添加了“大型方块”系统,用于创建类似原版床的“预制件”方块,但效果更好且理论上无尺寸限制。 - Sandman
添加了使物品“始终进行刻更新”的功能,利用随机刻机制。 - Crowbar
提供了低级世界生成阶段的事件,例如构建表面规则,以及在表面和填充阶段直接访问区块以调用自定义生成器。 - Keygen
通过 IBXM2 添加了加载 XM、S3M 和 MOD 格式音乐的能力。 - Dessicant
为战利品表实现了“逻辑默认值”,并根据配方 JSON 中的 “discovered_by” 键自动管理配方解锁。即将支持方块状态和方块/物品模型。 - Machination
添加了新的配方类型,例如将物品投入流体中的“浸泡”配方,以及用活塞在两方块之间压碎方块的“粉碎”配方。附带 EMI 支持。 - Recoil
提供让你调整摄像机和视野范围的事件,以及抑制原版行为并捕获原始攻击/使用操作的方法。基本上,制作令人满意的枪械模组所需的一切。 - Util
随机实用工具类。暂无文档。 - AQI
通过在两个通道中渲染(如同 1.14 之前那样),修复了高级/流畅图形设置下半透明方块后方粒子渲染的问题。 - Mesh
添加了高效的基于图形的方块网络系统,适用于管道等结构。暂无文档。 - Wrangle
添加了“控制提示”系统。暂无文档。
已弃用模块
- Fractal
添加了“子组”系统,以便进一步细分创意标签页。现由 DaFuqs 作为独立库维护。
未来模块
Yttr 包含大量奇特的 Mixin 和工具,如果一次性全部提取出来,我可能要花很长时间。以下是我想要分离但目前尚未着手的一些功能:
- Equivalence
添加了“替代品”系统,使物品在配方原料和标签中与其他物品功能相同。 - Conflagration
添加了基于 CSS 的配置系统以及用于制作与之交互的 GUI 的框架。
Lib39 is a loose collection of utilities, mixins, events, etc originating in our content mod Yttr — people constantly talk about "stealing" mixins from Yttr since it has so many random useful things in it, so we decided it'd be a good thing to split it up into a library.
39 is the atomic number of Yttrium. You can pronounce it as "lib thirty nine", "lib three nine", "lib miku", whatever you want.
Getting Started
Lib39 is distributed on the Sleeping Town Maven. Merge the following with your build.gradle:
repositories {
maven {
url 'https://repo.sleeping.town'
content {
includeGroup 'com.unascribed'
}
}
}
dependencies {
modApi include("com.unascribed:lib39-core:2.0.7+1.20.1")
// put any other modules you want here
// loom won't JiJ transitive deps, so you need to include all of them
}
Lib39 is also distributed on Modrinth, but you are strongly encouraged to JiJ the modules. They're small.
Exact module sizes when JIJ'd if you care
| Module | Size |
|---|---|
| Lockpick | 4.38KiB |
| AQI | 5.20KiB |
| Util | 5.58KiB |
| Ripple | 6.06KiB |
| Sandman | 6.56KiB |
| Deferral | 6.57KiB |
| Crowbar | 6.83KiB |
| Dessicant | 9.23KiB |
| Wrangle | 9.62KiB |
| Recoil | 9.79KiB |
| Phantom | 12.10KiB |
| Mesh | 13.99KiB |
| Weld | 16.69KiB |
| Waypoint | 22.33KiB |
| Core | 26.12KiB |
| Tunnel | 27.85KiB |
| Machination | 33.06KiB |
| Keygen | 34.88KiB |
| Total | 257KiB |
Replace core with whatever the module (or modules) you want is/are.
Lib39 1.4 and earlier only support 1.19-1.19.2. Lib39 1.5 adds 1.18.2 and 1.19.3 support, and a series of "experimental" builds provide 1.20.1 support. Lib39 2.0 is API-compatible with 1.x and is presently only available for 1.20.1, and is developed in tandem with Yttr.
Modules
- Core
Random utility classes such as AutoRegistry, AutoMixin, and shared classes with the other modules. Also contains random small tidbits, such as crafting sounds. - Lockpick
Mixins to allow removing artificial limits, such as model rotation angles, crafting recipe sizes, and more. Various other related utilities as well, such as the ability to inherit elements from parent models. - Ripple
Allows customizing splash texts. - Tunnel
Adds a convenient networking system based on Concrete Network from 1.12. - Phantom
Adds the ability to "phase" blocks out of the world temporarily. The blocks are never removed from the world, simply hidden. - Waypoint
Adds an additional baked world layer with additive blending for rendering various kinds of glowy effects. - Weld
Adds a "big blocks" system for creating "prefab" blocks like vanilla beds, but way nicer and with theoretically no size limit. - Sandman
Adds the ability to make items "always tick", leveraging random ticks. - Crowbar
Adds events for low-level world generation phases, such as constructing surface rules, and raw access to chunks during the surface and population phases for invoking custom generators. - Keygen
Adds the ability to load music in XM, S3M, and MOD format via IBXM2. - Dessicant
Implements "logical defaults" for loot tables, and automatically manages recipe unlocks based on a "discovered_by" key in recipe JSONs. Blockstates and block/item models soon. - Machination
Adds new recipe types, such as a "soaking" recipe for throwing items in a fluid and a "smashing" recipe for crushing a block between two others with a piston. Comes with EMI support. - Recoil
Events to let you mess with the camera and FOV, and a way to suppress vanilla behavior and catch raw attack/use. Everything you need to make a satisfying gun mod, basically. - Util
Random utility classes. No docs yet. - AQI
Fixes vanilla particle rendering behind translucent blocks on Fancy/Fast graphics by rendering in two passes, like pre-1.14. - Mesh
Adds an efficient graph-based block network system, for pipes and the like. No docs yet. - Wrangle
Adds a "control hints" system. No docs yet.
Former modules
- Fractal
Adds a "subgroup" system for splitting up creative tabs even further. Now maintained by DaFuqs as a standalone library.
Future modules
Yttr has a lot of weird mixins and utilities in it, and I'd be here a while were I to factor them all out at once. Here's some things I want to separate out but haven't gotten around to yet:
- Equivalence
Adds a "substitutes" system, for making items functionally the same as others in recipe ingredients and tags. - Conflagration
Adds a CSS-based configuration system and a framework for making GUIs that interact with it.
下载 Lib39
下载 Lib39
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lib39
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lib39
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lib39
下载 Lib39
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lib39
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lib39
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lib39
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lib39
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
评论 0
登录后参与评分
还没有评论,来抢沙发吧