Recently Updated Pages

Custom Blocks

This is a startup script. events.listen('block.registry', event => { event.create('test_bl...

JEI Integration

Sub-types onEvent('jei.subtypes', event => { event.useNBT('example:item') event.userNBT...

Clearlag

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

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...

ItemTooltipEventJS

onEvent('item.tooltip', tooltip => { // Add tooltip to all of these items tooltip.add(['...

RecipeEventJS

Examples Possible settings you can change for recipes. It's recommended that you put this in it'...

WorldgenRemoveEventJS

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

WorldgenAddEventJS

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

KubeJS UI

You can also always look at existing modpack using KubeJS UI to see how they do it events.listen...

Changing Window Title and Icon

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

Loot Table Modification (WIP)

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

REI Integration (Fabric Only)

Hide Items onEvent('rei.hide.items', event => { event.hide('example:ingredient') }) Add ...

TagEventJS

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

CommandEventJS

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

Recipes

Moved to RecipeEventJS!

Scheduled Server Events

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

Chat Event

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

FTB Quests Integration

events.listen('ftbquests.custom_task.75381f79', function (event) { log.info('Custom task!') ...

String

Class of string objects, such as "abc" (and in JS 'abc' works as well)  Parent Object Variable...

Information (Read this first!)

Website and FAQ: https://kubejs.latvian.dev/ Discord server: https://discord.gg/bPFfH6P Forge ...