Advanced Search
Search Results
52 total results found
WorldgenAddEventJS (1.16)
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)
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
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
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
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
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
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
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
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
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
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
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
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
Download: CurseForge No info yet!
KubeJS Create
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
Download: CurseForge, Modrinth No info yet!
KubeJS Mekanism
Download: CurseForge, Modrinth No info yet!
PonderJS
Download: CurseForge No info yet!
KubeJS Blood Magic
Download: CurseForge No info yet!
KubeJS Tinkers Construct
Download: CurseForge No info yet!