Skip to main content

Recently Updated Pages

ItemTooltipEventJS

KubeJS Legacy Events

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

Updated 5 months ago by ChiefArug

Loot Table Modification

KubeJS Legacy Events

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

Updated 5 months 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 5 months 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 5 months 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 5 months 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 5 months ago by ChiefArug

FTB Quests Integration

KubeJS Legacy Examples

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

Updated 5 months 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 5 months 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 5 months 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 5 months 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 5 months 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 5 months 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 5 months ago by Lat

Network Packets

KubeJS Legacy Examples

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

Updated 5 months ago by Lat

Chat Event

KubeJS Legacy Events

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

Updated 5 months ago by Max

Reflection / Java access

KubeJS Legacy Examples

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

Updated 5 months ago by ChiefArug

3rd Party addons

KubeJS Legacy Addons

3rd party add-ons: (Not including mods with optional dependencies of KubeJS) Name: Descri...

Updated 5 months ago by Quentin765

KubeJS UI

KubeJS Legacy Addons

You can also always look at existing modpack using KubeJS UI to see how they do it onEvent('ui.m...

Updated 6 months ago by Max

KubeJS Thermal

KubeJS Legacy Addons

  You can use KubeJS Thermal to add recipes to a lot of the machines from the Thermal Series. T...

Updated 7 months ago by ChiefArug

Primitive Types

KubeJS Legacy Classes

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

Updated 1 year ago by Lat