Skip to main content
Advanced Search
Search Terms
Content Type

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

Search Results

52 total results found

WorldgenAddEventJS (1.16)

KubeJS Legacy Events

This event isn't complete yet and can only do basic things. Adding dimension-specific features also isn't possible yet, but is planned. Example script: (kubejs/startup_scripts/worldgen.js) onEvent('worldgen.add', event => { event.addLake(lake => { /...

WorldgenRemoveEventJS (1.16)

KubeJS Legacy Events

For more information on biomes field, see worldgen.add event page. onEvent('worldgen.remove', event => { event.removeOres(ores => { ores.blocks = [ 'minecraft:coal_ore', 'minecraft:iron_ore' ] // Removes coal and iron ore ores.biomes.values...

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 kubejs/config/client.properties. To change icon, you create a kubejs/config/packicon.png image in standard Minecraft texture size preferably (64x64, 128x128, 256x256...

KubeJS UI

KubeJS Legacy Addons

You can also always look at existing modpack using KubeJS UI to see how they do it onEvent('ui.main_menu', event => { event.replace(ui => { //ui.background('kubejsui:textures/example_background.png') ui.tilingBackground('kubejsui:textures/e...

Loot Table Modification

KubeJS Legacy Events

onEvent('block.loot_tables', event => { event.addSimpleBlock('minecraft:dirt', 'minecraft:red_sand') }) onEvent('block.loot_tables', event => { event.addSimpleBlock('minecraft:dirt') // To drop itself (fix broken blocks) event.addSimpleBlock(/minecr...

ItemTooltipEventJS

KubeJS Legacy Events

A client event that allows adding tooltips to any item! onEvent('item.tooltip', tooltip => { // Add tooltip to all of these items tooltip.add(['quark:backpack', 'quark:magnet', 'quark:crate'], 'Added by Quark Oddities') // You can also use any ing...

Custom Fluids

KubeJS Legacy Events

Supported by Forge on all versions, and Fabric on 1.18.2+ // Startup script onEvent('fluid.registry', event => { // These first examples are 1.16.5 and 1.18.2 syntax // Basic "thick" (looks like lava) fluid with red tint event.create('thick_flui...

Painter API

KubeJS Legacy Examples

About Painter API allows you to draw things on the screen, both from server and directly from client. This can allow you to create widgets from server side or effects on screen or in world from client side. Currently it doesn't support any input, but in futu...

Units

KubeJS Legacy Examples

This page describes all functions and operations available for units Usage Most basic unit is plain number, such as '1' or '4.5'. You can use variables with $ like '$example'. Each function requires name parenthesis and comma separated arguments e.g. 'min(...

Item Modification

KubeJS Legacy Events

item.modification event is a startup script event that allows you to change properties of existing items onEvent('item.modification', event => { event.modify('minecraft:ender_pearl', item => { item.maxStackSize = 64 item.fireResistant = tru...

Block Modification

KubeJS Legacy Events

block.modification event is a startup script event that allows you to change properties of existing blocks onEvent('block.modification', event => { event.modify('minecraft:stone', block => { block.destroySpeed = 0.1 block.hasCollision = fal...

Migrating to KubeJS 6

KubeJS Legacy

This page is still being worked on, so if some info is missing, please check back later! What's changed in the new KubeJS 6 (1.19.2+)? onEvent() onEvent('event', e => {}) syntax was replaced by SomeEventGroup.someEventName(e => {}) // Before onEvent('bloc...

KubeJS Thermal

KubeJS Addons

Download: CurseForge, Modrinth This info is currently incomplete! Supported recipe types: - furnace- sawmill- pulverizer- smelter- centrifuge- press- crucible- chiller- refinery- brewer- bottler event.recipes.thermal.press('minecraft:bone', '#forge:dyes/bl...

KubeJS UI

KubeJS Addons

Download: CurseForge No info yet!

KubeJS Create

KubeJS Addons

Download: CurseForge, Modrinth The example scripts are only here to demonstrate the recipes. They are not meant to be used with the items shown. Compacting Syntax: compacting(output[], input[]) Features: supports multiple inputs and outputs supports .h...

KubeJS Immersive Engineering

KubeJS Addons

Download: CurseForge, Modrinth No info yet!

KubeJS Mekanism

KubeJS Addons

Download: CurseForge, Modrinth No info yet!

PonderJS

KubeJS Addons

Download: CurseForge No info yet!

KubeJS Blood Magic

KubeJS Addons

Download: CurseForge No info yet!

KubeJS Tinkers Construct

KubeJS Addons

Download: CurseForge No info yet!