Skip to main content

Recently Updated Pages

Item and Ingredient

KubeJS Legacy Global

When making recipes you can specify items in many ways, the most common is just to use 'namspace:...

Updated 2 months ago by ChiefArug

Worldgen Events

KubeJS Legacy Events

These following examples will only work on 1.18+! If you need examples for 1.16, you can look her...

Updated 2 months ago by Lexxie

Custom Fluids

KubeJS Legacy Events

Supported by Forge on all versions, and Fabric on 1.18.2+ // Startup script onEvent('fluid.regi...

Updated 2 months ago by Quentin765

TagEventJS

KubeJS Legacy Events

This event is fired when a tag collection is loaded, to modify it with script. You can add and re...

Updated 2 months ago by Lexxie

List of all events

KubeJS Legacy Events

This is a list of all events. It's possible that not all events are listed here, but this list wi...

Updated 2 months ago by Quentin765

Intro

KubeJS Legacy

FAQ What does this mod do? This mod lets you create scripts in JavaScript language to manage yo...

Updated 2 months ago by Lat

Custom Items

KubeJS Legacy Events

This is a startup_scripts/ event // Listen to item registry event onEvent('item.registry', even...

Updated 2 months ago by Quentin765

Custom Blocks

KubeJS Legacy Events

This is a startup script. onEvent('block.registry', event => { event.create('test_block') ...

Updated 2 months ago by ChiefArug

REI Integration

KubeJS Legacy Events

Note: REI integration only works on Fabric in 1.16. In 1.18+, it works on both Forge and Fabric! ...

Updated 2 months ago by Max

Datapack Load Events

KubeJS Legacy Events

You can load json datapack files programmatically! onEvent('server.datapack.first', event => { ...

Updated 2 months ago by Quentin765

Command Registry

KubeJS Legacy Events

This page is unfinished and only provides basic information Example: The following code has not...

Updated 2 months ago by Quentin765

Spawning Entities

KubeJS Legacy Examples

Basics Overview Spawning entities consists of 3 steps: Making the variable storing the futur...

Updated 3 months ago by Quentin765

RecipeEventJS

KubeJS Legacy Events

Examples The most basic script to add a single recipe: onEvent('recipes', event => { event.s...

Updated 3 months ago by ChiefArug

Components, KubeJS and you!

KubeJS Legacy Global

In 1.18.2 and beyond KubeJS uses Components in a lot of places. It returns them for entity names,...

Updated 4 months ago by Lexxie

Running Commands

KubeJS Legacy Examples

Preface Sometimes, you might want to run a command (such as /tell @a Hi!), in your code. Most a...

Updated 5 months ago by Quentin765

Default Options

KubeJS Legacy Other

You can ship default options from options.txt with KubeJS. This includes keybindings, video setti...

Updated 5 months ago by Bob Varioa

Block Modification

KubeJS Legacy Events

block.modification event is a startup script event that allows you to change properties of existi...

Updated 5 months ago by Lat

Item Modification

KubeJS Legacy Events

item.modification event is a startup script event that allows you to change properties of existin...

Updated 5 months ago by Lat

Units

KubeJS Legacy Examples

This page describes all functions and operations available for units Usage Most basic unit is p...

Updated 5 months ago by Lat

Painter API

KubeJS Legacy Examples

About Painter API allows you to draw things on the screen, both from server and directly from cl...

Updated 5 months ago by Lat