Skip to main content

Recently Updated Pages

Scheduled Server Events

KubeJS Examples

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

Updated 1 month ago by Max

FTB Quests Integration

KubeJS Examples

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

Updated 1 month ago by LatvianModder

JEI Integration

KubeJS Events

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

Updated 1 month ago by ChiefArug

REI Integration

KubeJS Events

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

Updated 1 month ago by ChiefArug

WorldgenAddEventJS (1.16)

KubeJS Events

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

Updated 1 month ago by Max

WorldgenRemoveEventJS (1.16)

KubeJS Events

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

Updated 1 month ago by Max

Changing Window Title and Icon

KubeJS Other

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

Updated 1 month ago by LatvianModder

Loot Table Modification

KubeJS Events

onEvent('block.loot_tables', event => { event.addSimpleBlock('minecraft:dirt', 'minecraft:r...

Updated 1 month ago by ChiefArug

ItemTooltipEventJS

KubeJS Events

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

Updated 1 month ago by ChiefArug

Custom Fluids

KubeJS Events

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

Updated 1 month ago by ChiefArug

Painter API

KubeJS Examples

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

Updated 1 month ago by LatvianModder

Units

KubeJS Examples

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

Updated 1 month ago by LatvianModder

Item Modification

KubeJS Events

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

Updated 1 month ago by LatvianModder

Block Modification

KubeJS Events

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

Updated 1 month ago by LatvianModder

Loading Assets and Data

KubeJS Other

You can also use KubeJS to load assets from resource packs and data from datapacks! While this is...

Updated 1 month ago by ChiefArug

Worldgen Events

KubeJS Events

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

Updated 1 month ago by Max

Item and Ingredient

KubeJS Global

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

Updated 1 month ago by ChiefArug

Default Options

KubeJS Other

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

Updated 1 month ago by MasterOfBob777

Running Commands

KubeJS Examples

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

Updated 1 month ago by Quentin765

Spawning Entities

KubeJS Examples

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

Updated 1 month ago by Quentin765