promotional bannermobile promotional banner

EnumExtenderJS

An Enum Extender for kubejs

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).

 

The EnumExtenderJS Team

profile avatar
  • 4
    Followers
  • 15
    Projects
  • 2.8M
    Downloads

More from chen_1335View all