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

 

EnumExtenderJS Team

profile avatar
  • 6
    Followers
  • 18
    Projects
  • 4.8M
    Downloads

More from chen_1335View all

  • ArcanumLib project image

    ArcanumLib

    A loot and attribute framework for mods — rework any loot table from datapacks, code or KubeJS.

    • 1.2K
    • November 15, 2026
  • Ultimate Enchantment project image

    Ultimate Enchantment

    an enchantment mod that provide 10+ powerful and useful enchantments。 The inspiration for ultimate enchantment comes from hypixel skyblock.

    • 94.9K
    • November 1, 2026
  • RenderJS project image

    RenderJS

    An mod that supports the modpack authors using KubeJS to draw HUDs and register ItemDecorator(item extra render in inventory), as well as a mod for rendering blocks and items in the world.

    • 3.5M
    • October 27, 2026
  • Legendary Relics project image

    Legendary Relics

    This mod has added several curios that can be discovered during exploration, as well as a set of armor for the end of the game

    • 5.3K
    • October 23, 2026
  • ArcanumLib project image

    ArcanumLib

    A loot and attribute framework for mods — rework any loot table from datapacks, code or KubeJS.

    • 1.2K
    • November 15, 2026
  • Ultimate Enchantment project image

    Ultimate Enchantment

    an enchantment mod that provide 10+ powerful and useful enchantments。 The inspiration for ultimate enchantment comes from hypixel skyblock.

    • 94.9K
    • November 1, 2026
  • RenderJS project image

    RenderJS

    An mod that supports the modpack authors using KubeJS to draw HUDs and register ItemDecorator(item extra render in inventory), as well as a mod for rendering blocks and items in the world.

    • 3.5M
    • October 27, 2026
  • Legendary Relics project image

    Legendary Relics

    This mod has added several curios that can be discovered during exploration, as well as a set of armor for the end of the game

    • 5.3K
    • October 23, 2026