EnumExtenderJS - Enum Extender for KubeJS
What is it?
EnumExtenderJS is a powerful addition for KubeJS that allows extending and modifying enumerations (enum) in Minecraft. This tool opens up new possibilities for gameplay customization.
Getting Started
The setup process consists of two main steps:
Step 1: Configuration Setup
Navigate to the kubejs/enum_extender.json file and add the target enumeration. The entry format is: <className>-<extenderScriptName>.

Step 2: Script Creation
In the kubejs/enum_extender_scripts folder, create extending scripts. Method arguments include a unique identifier for the enumeration (such as VERY_HARD and THES_CREATE) and regular parameters.



Important Features
The create method works exclusively in extending scripts. When attempting to use it in other script types (server, startup, or client), the method will perform no actions and return a null value.

Although code autocompletion is not available, you can write the script in an environment that supports autocompletion and then copy it. JavaWrapper in extending scripts also includes a class filter (adapted from kubejs and probejs).