Register Extra Blocks
Register Extra Blocks with KubeJS Startup Scripts
Last updated
Register Extra Blocks with KubeJS Startup Scripts
Last updated
To register extra blocks in KubeJS, you can call MMEvents.registerExtraBlocks
.
NOTE: all functions will map to the fields of the
The create
function takes a string parameter which maps directly to the extra block's "id"
field and returns a builder to set the rest of the fields for the extra block.
The type
function takes a string parameter which maps directly to the extra block's "type"
field.
The name
function takes a string paramter which maps directly to the extra block's "name"
field.