介绍
An Enum Extender for kubejs
The first step: go to kubejs/enum_extender.json and add the enum target.
belike:

The format is <className>-<extenderScriptName>.
Step 2: go to kubejs/enum_extender_scripts and add extender script.
belike:



the method args is unique identifier for enum (VERY_HARD and THES_CREATE) and the normal arges

the create method can only be used in extender scripts, and if you try use this method in other scripts(server or startup or client), thie method will do nothing and return null.
There is no code completion, but you can write it where there is code completion and then copy it 🙂
the JavaWapper in extender scripts also have class filte(copy from kubejs and probejs).
常见问题
EnumExtenderJS 支持哪些 Minecraft 版本?
EnumExtenderJS 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
EnumExtenderJS 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
chen_1335 的其他作品
查看全部 →Forbidden Arcanus JS
Forbidden and Arcanus 与 KubeJS 兼容性
Apothic Attributes Extension
一个为 Apothic Attributes 添加搜索栏,并加入一些实用属性和工具的模组。
Immersive Engineering JS
KubeJS 与沉浸工程的兼容
Spell Colonies
为 Minecolonies 新增了一种守卫:魔法师
评论
登录后评论和评分