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 3 years ago by Q6

Spawning Entities

KubeJS Legacy Examples

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

Updated 3 years ago by Q6

RecipeEventJS

KubeJS Legacy Events

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

Updated 3 years 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 3 years ago by Lexxie

Reflection / Java access

KubeJS Legacy Examples

Very limited reflection is possible, but is not recommended. Use it in cases when KubeJS doesnt s...

Updated 3 years ago by ChiefArug

Chat Event

KubeJS Legacy Events

This script is peak of human evolution. Whenever someone says "Creeper" in chat, it replies with ...

Updated 3 years ago by Max

Network Packets

KubeJS Legacy Examples

This script shows how to use network packets: // Listen to a player event, in this case item rig...

Updated 3 years ago by Lat

Starting Items

KubeJS Legacy Examples

This server script adds items on first time player joins, checking stages. GameStages mod is not ...

Updated 3 years ago by Lat

FTB Utilities Rank Promotions

KubeJS Legacy Examples

With this script you can have FTB Utilities roles that change over time. Is for 1.12 only. Requi...

Updated 3 years 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 3 years 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 3 years ago by Lat

CommandEventJS

KubeJS Legacy Events

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

Updated 3 years 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 3 years ago by Max

FTB Quests Integration

KubeJS Legacy Examples

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

Updated 3 years ago by Lat

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 3 years ago by ChiefArug

WorldgenAddEventJS (1.16)

KubeJS Legacy Events

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

Updated 3 years ago by Max

WorldgenRemoveEventJS (1.16)

KubeJS Legacy Events

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

Updated 3 years ago by Max

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 3 years ago by Lat

ItemTooltipEventJS

KubeJS Legacy Events

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

Updated 3 years ago by ChiefArug

Painter API

KubeJS Legacy Examples

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

Updated 3 years ago by Lat