Source-checkedTechnology & automation

KubeJS Create Automation

by vomiter · for Minecraft

A lightweight automation hook mod that bridges Create machines with KubeJS, allowing pack makers to intercept and customize automated actions through scripts.

3.1KDownloads
38d agoLast updated
MITLicense
Forge · NeoForgeLoaders

About KubeJS Create Automation

From Modrinth

A lightweight automation hook mod that bridges Create machines with KubeJS, allowing pack makers to intercept and customize automated actions through scripts.

KubeJS Hooks for Create Automation

KJSCAuto allows KubeJS scripts to modify key automation behaviors in Create.

This mod exposes several Create actions as script events so pack makers can intercept and modify them without writing Java mods.

Recipe modification is intentionally not included, as that functionality is already provided by KubeJS Create.

Currently supported hooks include:

  • Deployer item/tool usage
  • Basin recipe operations
  • Block breaking by drills and saws
  • Contraption disassembly

These events allow scripts to:

  • adjust tool durability usage on Deployer
  • modify Basin recipe inputs and outputs
  • intercept or replace block drops when destroyed by machines or contraptions

These hooks were selected to address several common automation control issues I often see discussed in the KubeJS community.

If you feel there are other Create behaviors that would benefit from script hooks, feel free to suggest them in the discussion forum.

Several breaking changes are introduced in 1.21.1, so the following example would not work well in that version. Check the wiki for 1.21.1 example.

Example Script: (All goes into server script.)

Deploying tool without consuming durability.

When a diamond block is placed beneath the belt/depot, the Deployer gains a special effect: _sandpaper no longer loses durability, and the sanding result turns into a diamond._

KJSCAutoEvents.deployerUse(event => {
    var {block, outputs, heldItem} = event
    if(heldItem != "create:sand_paper") return //only works for sand paper
    if(!block.offset(0, -3, 0).blockState.is(Blocks.DIAMOND_BLOCK)) return; //only works when the belt/deposit (y = -2) has a diamond block below.
    event.setDamage(0) //set the durability usage to 0
    while(outputs.length > 0) outputs.remove(0) //remove all original outputs
    outputs.add(0, Item.of("diamond")) //add diamond
})

Mixing wool and red dye while not consuming the dye

This is to enable some "catalyst" recipe.

Technical note: _In Create’s Basin, outputs are kept separate from the input/ingredient inventory, so an item returned as an output will not be treated as an ingredient for the next operation._

KJSCAutoEvents.basinOperation(event => {
    var {basin, block, fluidOutputs, heatLevel, outputs, recipe} = event;
    if(recipe.getId().toString() == "minecraft:dye_red_wool"){
        event.addInput("red_dye")
    }
})

Conditional Silk Touch for Drills

Drills can gain a Silk Touch-like effect when a certain condition is met. If an amethyst block is placed beneath the ore, the drill will drop the ore block itself instead of the normal drops.

//This works for stationary drill.
KJSCAutoEvents.blockDestroy(event => {
    const { level, targetPos, targetBlock } = event
    const below = level.getBlockState(targetPos.below())
    if (!below.is("minecraft:amethyst_block")) return
    if (!(targetBlock.blockState.is("minecraft:diamond_ore") || targetBlock.blockState.is("minecraft:emerald_ore")))return
    targetBlock.popItem(targetBlock.blockState.block.asItem())
    level.destroyBlock(targetPos, false)
    event.cancel()
})

//This works for drill on contraption.
ContraptionEvents.afterBlockDestroy(event => {
    const { level, targetPos, targetBlock, drops } = event
    const below = level.getBlockState(targetPos.below())
    if (!below.is("minecraft:amethyst_block")) return
    if (!(targetBlock.blockState.is("minecraft:diamond_ore") || targetBlock.blockState.is("minecraft:emerald_ore")))return
    while(drops.length > 0) { drops.remove(0) }
    drops.add(Item.of(targetBlock.blockState.block.asItem()))

})

Protective Ground for Contraptions

Blocks placed on soul soil cannot be broken contraption machines.

ContraptionEvents.beforeBlockDestroy(event => {
    const { level, targetPos } = event
    const below = level.getBlockState(targetPos.below())

    if (!below.is("minecraft:soul_soil")) return

    event.cancel() // prevent the contraption from breaking the block
})

Cancel Disassembly

Prevent contraption disassembly when a sea lantern is in the disassembly range.

ContraptionEvents.beforeDisassemble(event => {
    console.log("disassemble")
    let shouldCancel = event.testTargetBlock(block => {
        return block == "minecraft:sea_lantern"
    })
    if(shouldCancel) event.cancel()
})

Support

If you'd like to support my modding work, including maintenance, updates, and compatibility work, Patreon is available here: https://patreon.com/vomiter\_scp

Highlights

From source data

Game versions

Supports 2 Minecraft versions, the newest being 1.21.1.

Loaders

Runs on Forge and NeoForge.

Footprint

Rated a light load on a server.

KubeJS Create Automation on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers. We download it from Modrinth, place it, and restart the server.
Server side
Required on the server
Server type needed
Forge, NeoForge
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
0.9.0-beta-neoforge (beta), released 2026-09-26

Game versions by loader

LoaderGame versionsNewest
Forge1.20.11.20.1
NeoForge1.21.11.21.1

From 5 recorded builds of KubeJS Create Automation.

Recent builds

BuildReleasedGame versionsLoaders
0.9.0-beta-neoforge beta2026-09-261.21.1NeoForge
0.9.0-forge2026-09-261.20.1Forge
0.8.0-beta-neoforge beta2026-06-051.21.1NeoForge
0.8.0-forge2026-06-051.20.1Forge
0.6.0-beta-neoforge beta2026-05-211.21.1NeoForge

Run KubeJS Create Automation on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Technology & automation

Machines, power, logistics and automation.

Runs on your server

From source side support

Modrinth lists KubeJS Create Automation as required on the server. Check its Modrinth page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
ForgeNeoForge
Runs on
Serverrequired on the server
Game versions
1.21.1 and 1 earlier

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-02Open ↗
  • ✓Authorvomiter, as published on Modrinth
  • ✓LicenseMITFree

KubeJS Create Automation, answered

Generated from the mod’s own source data.

Do my players need to install KubeJS Create Automation?

Modrinth lists KubeJS Create Automation as required on the server. Check its Modrinth page to see whether players need it too.

Which loaders does it support?

Forge and NeoForge.

Is it free?

Yes. KubeJS Create Automation is free to download from Modrinth. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run KubeJS Create Automation on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add KubeJS Create Automation in one click.