KubeJS Tweaks
? 简介
这是一个用于 KubeJS 的附加模组,旨在为重度整合包抽象一些常用的 KubeJS 用法。
此外,它还包括在必要时对 KubeJS 进行的一些修复(仅适用于特定版本)。
? 安装
模组可在 CurseForge 上找到。
? 功能
你可以在 此处 找到示例。
新增 Schema 组件:
- Codec
新增事件:
- Register Custom Codec
- No Op(用于在解析配方、战利品表、特性等之前禁用它们)
其他:
global.jeiRuntime回归KJSTweaks.readJsonFromMod(mod, path),用于读取原始 JSON(在数据生成事件中处理时非常有用)- 向后移植
Java.cast
针对 2101.7.1-build.181 版本的 KubeJS 问题热修复:
- 无法编码数据包 'clientbound/minecraft:update_recipes' 原因:io.netty.handler.codec.EncoderException: Empty ItemStack not allowed
- 别再冻结我的电脑了,谢谢
- EitherRecipeComponent 由于错误使用 Optional 而无条件验证失败
- 修复了枚举组件需要两个 > 的问题
- 修复了 Registry Component
- 修复了 Registry Scanner
- 再次修复 Registry Scanner
- event.creatCustom 似乎已损坏
- Kubedex 在 ItemStack 为空时断开玩家连接
- Rhino 尝试转换没有边界且类型为 T 的参数并失败
- 由 mob_effect 授予的属性效果需要多次应用才能激活。
- Rhino 77 上的 IndexOutOfBoundsException
- 无法在未绑定的泛型方法上找到方法
? 贡献
如果你发现自己在使用 Rhino 或 KubeJS 本身时使用了太多可以被抽象化的“晦涩”内容,欢迎作为新功能提出建议。
? 许可证
本项目采用 MIT 许可证授权。
? 联系方式
你可以通过 @Uncandango 在 All The Mods Discord 联系我,你也可以在 Github 上提交 Issue,或在 CurseForge 上的模组评论区留言。
? 赞助商
YourKit 通过创新且智能的工具支持开源项目,用于监控和分析 Java 和 .NET 应用程序。YourKit 是 YourKit Java Profiler、YourKit .NET Profiler 和 YourKit YouMonitor 的创建者。
KubeJS Tweaks
? Introduction
This is an addon for KubeJS to abstract some common usage of KubeJS for heavly modded modpacks.
This also includes some fixes of KubeJS when needed (only applied at specific versions).
? Installation
Mod is available on CurseForge.
? Features
You can find examples here.
New schema component:
- Codec
New Events:
- Register Custom Codec
- No Op (use to disable recipes, loot tables, features etc before they are parsed)
Others:
global.jeiRuntimeis backKJSTweaks.readJsonFromMod(mod, path)that reads original json (useful for manipulations at datagen event)- Backport
Java.cast
Hot Fix Kubejs issues for 2101.7.1-build.181:
- Failed to encode packet 'clientbound/minecraft:update_recipes' Caused by: io.netty.handler.codec.EncoderException: Empty ItemStack not allowed
- Dont freeze my pc anymore please thanks
- EitherRecipeComponent unconditionally fails validation due to incorrect usage of Optional
- Fixed enum component requiring two >
- Fixed Registry Component
- Fixed Registry Scanner
- Fixed Registry Scanner again
- event.creatCustom seem broken
- Kubedex disconnects player when ItemStack empty
- Rhino tries to convert a param that is T without any boundry and fails
- The attribute effects granted by mob_effect require multiple applications to activate.
- IndexOutOfBoundsException on Rhino 77
- Can't find method on unbound generic method
? Contributing
If you find yourself using too much cursed stuff with Rhino or KubeJS itself that could be abstracted, feel free to suggest as a feature.
? License
This project is licensed under the MIT License.
? Contact
You can reach me on All The Mods Discord with @Uncandango, you can also open your issue on Github or comment on the mod comment's section on CurseForge.
? Sponsors
YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.
下载 KubeJS Tweaks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KubeJS Tweaks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KubeJS Tweaks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KubeJS Tweaks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KubeJS Tweaks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KubeJS Tweaks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KubeJS Tweaks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KubeJS Tweaks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KubeJS Tweaks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 KubeJS Tweaks
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
添加 KJSTweaks.curseForgeGetEndpoint
- 用法: KJSTweaks.curseForgeGetEndpoint(url, executor, callbackWithJsonResponse)
KJSTweaks.curseForgeGetEndpoint("v1/mods/925200/files?pageSize=1", Client, response => {
let packName = response.get("data").get(0).get("displayName").asString
console.log("ID 为 925200 的最新文件名为 " + packName)
})
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧