Recently Updated Pages
Item and Ingredient
When making recipes you can specify items in many ways, the most common is just to use 'namspace:...
Worldgen Events
These following examples will only work on 1.18+! If you need examples for 1.16, you can look her...
Custom Fluids
Supported by Forge on all versions, and Fabric on 1.18.2+ // Startup script onEvent('fluid.regi...
TagEventJS
This event is fired when a tag collection is loaded, to modify it with script. You can add and re...
List of all events
This is a list of all events. It's possible that not all events are listed here, but this list wi...
Intro
FAQ What does this mod do? This mod lets you create scripts in JavaScript language to manage yo...
Custom Items
This is a startup_scripts/ event // Listen to item registry event onEvent('item.registry', even...
Custom Blocks
This is a startup script. onEvent('block.registry', event => { event.create('test_block') ...
REI Integration
Note: REI integration only works on Fabric in 1.16. In 1.18+, it works on both Forge and Fabric! ...
Datapack Load Events
You can load json datapack files programmatically! onEvent('server.datapack.first', event => { ...
Command Registry
This page is unfinished and only provides basic information Example: The following code has not...
Spawning Entities
Basics Overview Spawning entities consists of 3 steps: Making the variable storing the futur...
RecipeEventJS
Examples The most basic script to add a single recipe: onEvent('recipes', event => { event.s...
Components, KubeJS and you!
In 1.18.2 and beyond KubeJS uses Components in a lot of places. It returns them for entity names,...
Running Commands
Preface Sometimes, you might want to run a command (such as /tell @a Hi!), in your code. Most a...
Default Options
You can ship default options from options.txt with KubeJS. This includes keybindings, video setti...
Block Modification
block.modification event is a startup script event that allows you to change properties of existi...
Item Modification
item.modification event is a startup script event that allows you to change properties of existin...
Units
This page describes all functions and operations available for units Usage Most basic unit is p...
Painter API
About Painter API allows you to draw things on the screen, both from server and directly from cl...