介绍
allow use accessTransformer in kubejs.
Access Transformers (ATs for short) allow for widening the visibility and modifying the flags of classes, methods, and fields. They allow modders to access and modify otherwise inaccessible members in classes outside their control — NeoForge Doc
see Access Transformers | NeoForged docs
Start the game once after installing this mod.
Every time you modify accesstransformer. cfg, you need to restart the game for it to take effect
see kubejs/accesstransformer.cfg to use it
For safety reasons, in the latest version, class filters have been added, which will not allow you to widen all classes that kubejs or other mods do not allow to load, including the types of fields and function return values..
example:

result:

常见问题
AccessTransformerJS 支持哪些 Minecraft 版本?
AccessTransformerJS 支持 Minecraft Java 版 1.20.1–1.21.4,共 5 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
AccessTransformerJS 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
chen_1335 的其他作品
查看全部 →CurioEnchantment
一个能为饰品附魔的模组
Forbidden Arcanus JS
Forbidden and Arcanus 与 KubeJS 兼容性
Apothic Attributes Extension
一个为 Apothic Attributes 添加搜索栏,并加入一些实用属性和工具的模组。
Immersive Engineering JS
KubeJS 与沉浸工程的兼容
评论
登录后评论和评分