Recently Updated Pages
ItemTooltipEventJS
A client event that allows adding tooltips to any item! onEvent('item.tooltip', tooltip => { ...
Loot Table Modification
onEvent('block.loot_tables', event => { event.addSimpleBlock('minecraft:dirt', 'minecraft:r...
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...
WorldgenRemoveEventJS (1.16)
For more information on biomes field, see worldgen.add event page. onEvent('worldgen.remove', ev...
WorldgenAddEventJS (1.16)
This event isn't complete yet and can only do basic things. Adding dimension-specific features al...
JEI Integration
All JEI events are client sided and so go in the client_scripts folder Sub-types onEvent('jei.s...
FTB Quests Integration
onEvent('ftbquests.custom_task.75381f79', event => { log.info('Custom task!') event.chec...
Scheduled Server Events
At server load, you can schedule anything to happen at later time. Within callback handler you ca...
CommandEventJS
This event needs cleanup! Using it is not recommended. Information This event is fired when a c...
EventJS
This event is the most basic event class, parent of all other events. Parent class Object Can ...
Clearlag 1.12
This script removes all items from world every 30 minutes. Only works in 1.12. // Create item wh...
FTB Utilities Rank Promotions
With this script you can have FTB Utilities roles that change over time. Is for 1.12 only. Requi...
Starting Items
This server script adds items on first time player joins, checking stages. GameStages mod is not ...
Network Packets
This script shows how to use network packets: // Listen to a player event, in this case item rig...
Chat Event
This script is peak of human evolution. Whenever someone says "Creeper" in chat, it replies with ...
Reflection / Java access
Very limited reflection is possible, but is not recommended. Use it in cases when KubeJS doesnt s...
3rd Party addons
3rd party add-ons: (Not including mods with optional dependencies of KubeJS) Name: Descri...
KubeJS UI
You can also always look at existing modpack using KubeJS UI to see how they do it onEvent('ui.m...
KubeJS Thermal
You can use KubeJS Thermal to add recipes to a lot of the machines from the Thermal Series. T...
Primitive Types
Information Primitive types are objects that don't have a real class and don't inherit methods f...