promotional bannermobile promotional banner

KesseractJS

A fork of the 1.16.5 version of KubeJS, maintained and extended

KesseractJS

Welcome to the 4th dimension.

cf actions

logo

KesseractJS is a fork of KubeJS, continuing its development for 1.16.5. It backport a lot of different features from the newer versions, and even adds some that are not present at all in the original mod. The latter are documented on a dedicated wiki, and support for those are offered on our discord server, so don't be afraid to ask there.

This mod depends on a modified fork of the Rhino JS parser called Rhizo, please install it before use. We also highly recommend you use ProbeJS Legacy during script development for better IDE support.

This project was made as a collaboration between Hellish Mods, ZZZank, and MundM2007, with the occasional help from Team Potato. Thank you guys <3

Feature showcase

To be honest, there are too many. So we're only showcasing some features here, there's a much more complete feature/fix list in our doc

Doc Index

  • Command Registry
onEvent('command.registry', event => {
    const Commands = event.getCommands()
    const Arguments = event.getArguments()

    event.register(Commands.literal("say_wow")
        .excutes(context => {
            const player = context.source.playerOrException.asKJS()
            player.tell("wow")
        }))
})
  • Fake mod registration and Mod display name editing
// In startup_scripts

Platform.getInfo('kubejs').name = "CircleJS"

Platform.registerFakeMod("notarealmodid").displayName("Hello World!")
onEvent('item.registry', event => {
    event.create('notarealmodid:thing')
})

screenshot

  • Backports
// Welcome to the future babyyyy

// Falling block type
onEvent('block.registry', event => event.create('metal_pipe', 'falling').material('anvil'))

// Custom music discs (https://github.com/KubeJS-Mods/KubeJS/issues/491)
onEvent('item.registry', event => event.create('disc_14', 'music_disc').song('jamiroquai:vitrual_insanity'))

// thickTexture/thinTexture and textureThick/textureThin intercompatibility
onEvent('fluid.registry', event => {
  event.create('you_dont_want_to_know')
    .thickTexture(0xFF0000)
    .textureThick(0xFF0000) // Both methods work!
})
// Modern Math Helpers
KMath.clamp(3.4567, 4, 5) // clamp a number
KMath.v3d(0.1, 2,3, 4,5) // create a Vertor3d
KMath.m4f() // create a Matrix4f

// + more!
  • Fixes. Lots of 'em.

for example, fail-safe for ResourceLocation wrapping and recipe id, this can fix recipe builder with invalid id failing silently and block code execution

  • Full drag-and-drop compatability with old Kube scripts
  • Continuous updates. More in the future!

MMLogo

The KesseractJS Team

profile avatar
  • 1
    Followers
  • 7
    Projects
  • 198.8K
    Downloads

More from HellishModsView all

  • Amber (Jade) project image

    Amber (Jade)

    • 104.5K
    • Mods

    A fork of Jade, a mod that shows info about the blocks you look at, focusing on compatibility with other mods.

    • 104.5K
    • October 7, 2024
    • Mods
    • +2
  • Powah: Overcharged project image

    Powah: Overcharged

    • 90.7K
    • Mods

    A maintaned fork of powah for 1.16.5 that adds an 8th tier of capacitors and other stuff!

    • 90.7K
    • December 17, 2023
    • Mods
    • +2
  • Hellish Blåhaj project image

    Hellish Blåhaj

    • 1.0K
    • Mods

    A port of the Blåhaj mod for Forge 1.16.5!

    • 1.0K
    • September 18, 2023
    • Mods
    • +2
  • DigitalityAPI project image

    DigitalityAPI

    • 1.1K
    • Mods

    A small library that makes it easy to add resource files at runtime with code.

    • 1.1K
    • February 13, 2023
    • Mods
    • +2
  • Amber (Jade) project image

    Amber (Jade)

    • 104.5K
    • Mods

    A fork of Jade, a mod that shows info about the blocks you look at, focusing on compatibility with other mods.

    • 104.5K
    • October 7, 2024
    • Mods
    • +2
  • Powah: Overcharged project image

    Powah: Overcharged

    • 90.7K
    • Mods

    A maintaned fork of powah for 1.16.5 that adds an 8th tier of capacitors and other stuff!

    • 90.7K
    • December 17, 2023
    • Mods
    • +2
  • Hellish Blåhaj project image

    Hellish Blåhaj

    • 1.0K
    • Mods

    A port of the Blåhaj mod for Forge 1.16.5!

    • 1.0K
    • September 18, 2023
    • Mods
    • +2
  • DigitalityAPI project image

    DigitalityAPI

    • 1.1K
    • Mods

    A small library that makes it easy to add resource files at runtime with code.

    • 1.1K
    • February 13, 2023
    • Mods
    • +2