Skip to main content

Recently Updated Pages

Command Registry

KubeJS Legacy Events

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

Updated 1 year ago by Q6

Spawning Entities

KubeJS Legacy Examples

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

Updated 1 year ago by Q6

RecipeEventJS

KubeJS Legacy Events

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

Updated 1 year 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 1 year 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 1 year ago by Q6

Default Options

KubeJS Legacy Other

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

Updated 1 year 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 1 year 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 1 year ago by Lat

Units

KubeJS Legacy Examples

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

Updated 1 year 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 1 year ago by Lat

ItemTooltipEventJS

KubeJS Legacy Events

A client event that allows adding tooltips to any item! onEvent('item.tooltip', tooltip => { ...

Updated 1 year ago by ChiefArug

Changing Window Title and Icon

KubeJS Legacy Other

Yes, you can do that with KubeJS too. To change title, all you have to do is change title in kub...

Updated 1 year ago by Lat

WorldgenRemoveEventJS (1.16)

KubeJS Legacy Events

For more information on biomes field, see worldgen.add event page. onEvent('worldgen.remove', ev...

Updated 1 year ago by Max

WorldgenAddEventJS (1.16)

KubeJS Legacy Events

This event isn't complete yet and can only do basic things. Adding dimension-specific features al...

Updated 1 year ago by Max

JEI Integration

KubeJS Legacy Events

All JEI events are client sided and so go in the client_scripts folder Sub-types onEvent('jei.s...

Updated 1 year ago by ChiefArug

FTB Quests Integration

KubeJS Legacy Examples

onEvent('ftbquests.custom_task.75381f79', event => { log.info('Custom task!') event.chec...

Updated 1 year ago by Lat

Scheduled Server Events

KubeJS Legacy Examples

At server load, you can schedule anything to happen at later time. Within callback handler you ca...

Updated 1 year ago by Max

CommandEventJS

KubeJS Legacy Events

This event needs cleanup! Using it is not recommended. Information This event is fired when a c...

Updated 1 year ago by Lat

EventJS

KubeJS Legacy Events

This event is the most basic event class, parent of all other events. Parent class Object Can ...

Updated 1 year ago by Lat

Clearlag 1.12

KubeJS Legacy Examples

This script removes all items from world every 30 minutes. Only works in 1.12. // Create item wh...

Updated 1 year ago by Lat