Search Filters
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

40 total results found

KubeJS

List of all events

KubeJS Events

This is a list of all events. It's possible that not all events are listed here, but this list wi...

Item Modification

KubeJS Examples

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

Units

KubeJS Examples

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

Painter API

KubeJS Examples

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

ItemTooltipEventJS

KubeJS Events

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

Changing Window Title and Icon

KubeJS Examples

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

WorldgenRemoveEventJS

KubeJS Events

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

JEI Integration

KubeJS Examples

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

FTB Quests Integration

KubeJS Examples

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

Primitive Types

KubeJS Classes

Information Primitive types are objects that don't have a real class and don't inherit methods f...

String

KubeJS Classes

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

Object

KubeJS Classes

Parent class of all Java objects.  Parent None (and itself at the same time, don't question it)...

CommandEventJS

KubeJS Events

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

KubeJS

This wiki is still very much work in progress! Feel free to suggest changes in #kubejs-and-code D...

EventJS

KubeJS Events

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

Information (Read this first!)

KubeJS

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

Clearlag 1.12

KubeJS Examples

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

FTB Utilities Rank Promotions

KubeJS Examples

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

Network Packets

KubeJS Examples

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

Reflection / Java access

KubeJS Examples

Very limited reflection is possible, but is not recommended. Use it in cases, when mod doesn't ha...

Examples

KubeJS

Example scripts for various things you can do with KubeJS

Global

KubeJS

Constants, classes and functions

Classes

KubeJS

Available fields and methods and examples on how to use them

Events

KubeJS

Events that get fired during game to control recipes, world, etc.

Mod to-do

FTB Mods

Block Modification

KubeJS Examples

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