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

70 total results found

Custom Fluids

KubeJS Legacy Events

...orted by Forge on all versions, and Fabric on 1.18.2+ // Startup s ...These first examples are 1.16.5 and 1.18.2 syntax // Basic " ...d with cyan tint, has no bucket and is not placeable event.creat ...d names are different in 1.18.1 and below, textureXyz instead of xy...

Custom Items

KubeJS Legacy Events

...ou can create one in Blockbench and put it in kubejs/assets/kubejs/ ...xample {layer0:"minecraft:item/sand",layer1:"minecraft:item/paper"} ... ??? use((level, player, hand) => {...}) for example use(( ...ant to modify this if you are creating a custom weapon such as Spear, ...

REI Integration

KubeJS Legacy Events

...n 1.18+, it works on both Forge and Fabric! All REI events are cli ...ent sided and so go in the client_scripts fol ...l need an id (ResourceLocation) and a display name (Component / Str ..., we want all the Hanging Signs and Sign Posts from Supplementaries...

Loading Assets and Data

KubeJS Other

...load assets from resource packs and data from datapacks! While this ...ther options are <TODO: make and link server datapack load page and client generate assets event page> The data folder is loaded identically to the data folder in a datapack. If ...

KJSPKG

KubeJS Addons

...nload different example scripts and libraries into your instance. I ... version, modloader, dependency and incompatibility control. It wor ....19), KubeJS Legacy (1.16/1.18) and should even work with some pre- ...ur instance. Run kjspkg init and select your minecraft version/m...

List of Events

KubeJS Events

...k on event ID to open its class and see information, fields, and methods. Type descriptions: ... at startup, on both the client and server. Most events that requir ...art (like custom blocks, items, and fluids) will be Startup events. ...loaded when you run /reload command. Server events are always acces...

Spawning Entities

KubeJS Legacy Examples

...e event.level in place of level and it will work You can create a ... from a block instead of level, and this is often preferred to lear ...at we are making a new variable and get the game ready to store it. ...s can be obtained numerous ways and will depend on what you are try...

Migrating to KubeJS 6

KubeJS Legacy

...upport extra parameters for IDs and other things! You can now choos ...ake each id have its own event handler: // Before onEvent('block. ...ts require ID, such as registry and tag events: // Before onEvent ...en removed from server scripts, and instead, moved to local/kubejsd...

beJS

KubeJS Addons

...method is called on both CLIENT and SERVER if(leve ...e BE separately) .itemHandler(27) // adds a basic item handler to this block entity, use so ...m: slot count] .energyHandler(10000, 1000, 1000) // adds a ... basic FE handler, same as above ...

Custom Blocks

KubeJS Legacy Events

... you might consider blockstate) and random tick to make the block eventu ...roperty(BlockProperties.AGE_7).randomTick(tick => { const bloc ...ou can create one in Blockbench and put it in kubejs/assets/kubejs/ ...s - to change break/walk sounds and to change some properties. ...

KubeJS Ars Nouveau

KubeJS Addons

... [ "minecraft:sand", "minecraft:sand&qand", "minecraft:sand&qand", "minecraft:sand&qand", ], // input items ... [ "minecraft:sand", "minecraft:sand&qand", "minecraft:sand"...

Tags

KubeJS Events

...er item/block/fluid/entity_type and as such cannot be added based o ...enerally only need item, block, and fluid tags. However, it does su ...orge:cobblestone tag collection and add Diamond Ore to it event. ...orge:cobblestone tag collection and remove Mossy Cobblestone from i...

Loot Table Modification

KubeJS Legacy Events

...inecraft:dirt', 'minecraft:red_sand') }) onEvent('block.loot_tabl ...ecraft:.*_ore/, 'minecraft:red_sand') // To drop a different item ...s blocks, 4-8 logs from all log and wood blocks and 4-8 stone from Stone, Cobblesto ...ne, Andesite, Diorite and Granite) onE...

Changing Window Title and Icon

KubeJS Legacy Other

.../config/packicon.png image in standard Minecraft texture size preferably (64x64, 128x128, 256x256, that kind of size). The image has to be saved as 32-bit PNG, not Auto-detect/24-bit, otherwise you will get a JVM crash! Here's how to do that in PaintNET:...

Changing Window Title and Icon

KubeJS Other

.../config/packicon.png image in standard Minecraft texture size preferably (64x64, 128x128, 256x256, that kind of size). The image has to be saved as 32-bit PNG, not Auto-detect/24-bit, otherwise you will get a JVM crash! Here's how to do that in PaintNET:...

Item modification

KubeJS Events

...ean If this item burns in fire and lava. Most items are false by d ...efault, but Ancient Debris and Netherite things are not. ...COMMON by default. Nether Stars and Elytra are UNCOMMON, Golden App ...les are RARE and Enchanted Golden Apples are EPI...

List of all events

KubeJS Legacy Events

... on event ID to open it's class and see information, fields and methods. Type descriptions: ...loaded when you run /reload command. Server Startup: Same as Serve ...r, and the event will be fired at leas ...Client Startup: Same as Client, and the event will be fired at leas...

Features

KubeJS Intro

...ere's a list of all documented (and sometimes undocumented) feature ... Options Changing Window Title and Icon Changing Mod Display Name ...s Loading Assets and Data Modify Items Modify Bloc ... event Item right-click event And a bunch more that I forgot...

WorldgenAddEventJS (1.16)

KubeJS Legacy Events

This event isn't complete yet and can only do basic things. Addin ... ore.squared = true // Adds random value to X and Z between 0 and 16. Recommended to be true // ore.chance = 4 // Spawns the ore every ~4 chunks. You usually combine this with cluster...

Command Registry

KubeJS Legacy Events

This page is unfinished and only provides basic information ... been completely tested on 1.18 and not at all on 1.16 onEvent("co ...mmand.registry", event => {//command registry event const { com ...mands: Commands, arguments: Arguments} = event...