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

String

KubeJS Legacy Classes

... string objects, such as "abc" (and in JS 'abc' works as well)  Pa ...rent Object Variables and Functions Name Type In ...ct. It is used to optimize maps and other things, should never be used for object equality. length() int Number of ...

Reflection / Java access

KubeJS Legacy Examples

...ssing internal Minecraft fields and methods.   An example of addi ...ce of that with amethyst sounds and material properties from intern ...oundType.AMETHYST) // f_164531_ and f_154654_ are the respective obfuscated names of these fields, for older versi...

Object

KubeJS Legacy Classes

...l Java objects.  Parent None (and itself at the same time, don't ...question it) Variables and Functions Name Type Info ...ct. It is used to optimize maps and other things, should never be used for object equality. class Class Object's type...

KubeJS Offline Documentation

KubeJS Addons

...le html file using a single command. `/kubejs_offline`. Preview Ge ... execute the KubeJS Offline command, a scan of the Java runtime is ...might provide new event classes and possibly new methods to existin ...has searched what classes exist and are available at that time, it ...

Datapack Load Events

KubeJS Legacy Events

... = ['bow', 'golden_hoe', 'flint_and_steel', 'spyglass'] items. ...s script will make 16 machines, and is shorter then even a single o ...6 custom machines with 6 inputs and 1 output for (let machineNumb ... } //add the input slots and corrasponding componets let ...

Units

KubeJS Legacy Examples

...is page describes all functions and operations available for units ...ction requires name parenthesis and comma separated arguments e.g. ... a ** b = POW a & b = BIT AND a | b = BIT OR a ^ b = BIT/BO ... OR EQUAL THAN Functions random() time() roundTime() min(a...

Default Options

KubeJS Legacy Other

...ship default options from options.txt with KubeJS. This includes keybindings, video settings, enabled resource packs, controls like autojump and toggle sprint and wierd things like advanced tool ...ecraft Wiki: https://minecraft.fandom.com/wiki/Options.txt

3rd Party addons

KubeJS Legacy Addons

... extend KubeJS with more events and utilities. Wiki CurseForge Mod ...d-on that allows you to compile and run Java code at runtime. Description CurseForge Github Forge 1.16.5 Kubejs Debug Adapter A Debug Adapter Protocol implementation for Ku...

Default Options

KubeJS Other

...ship default options from options.txt with KubeJS. This includes keybindings, video settings, enabled resource packs, controls like autojump and toggle sprint and wierd things like advanced tool ...ecraft Wiki: https://minecraft.fandom.com/wiki/Options.txt

WorldgenRemoveEventJS (1.16)

KubeJS Legacy Events

...aft:iron_ore' ] // Removes coal and iron ore ores.biomes.value ...eading logs/kubejs/startup.txt) and then removing them by ID where possible. onEvent('worldgen.remove', event => { // May be one of the decoration types/levels described in world...

Clearlag 1.12

KubeJS Legacy Examples

...te over each entity in itemList and add item counters itemList.f ...l() } }) // Update and sort last result list lastCl ...yellow('Click here').click('command:/clearlagresults'), ' for ...work in 1.16+! // Register commands events.listen('command.regist...

Primitive Types

KubeJS Legacy Classes

...ts that don't have a real class and don't inherit methods from Obje ... boolean Boolean Only true and false values. Can be checked in if function without comparing to true, as if (x) or if (!x) instead of if (x == true) or if (x == false).

KubeJS Industrial Foregoing

KubeJS Addons

...urseforge This lets you modify and create various recipes for Indu ...nput fluid "minecraft:sand", // output item 100 / ...nput block "minecraft:sand", // output block 0.5, ...input item "minecraft:sand" // output item ) e...

KubeJS Additions

KubeJS Addons

Download: CurseForge, Modrinth No info yet! For more information please see the project's Github Page, which has usage examples and documentation.

EventJS

KubeJS Legacy Events

...his event is the most basic event class, parent of all other events. Parent class Object Can be cancelled No Variables and Functions Name Return Type Info cancel() void Cancels event. If the event can't be cancelled, it won't do anything.

ScreenJS

KubeJS Addons

...ETER CAN BE NULL FOR NO OUTPUT HANDLING .inputSlotIndices(0) / .../ sets a list of ITEM HANDLER indexes to handle as slotChanged callback input ...nged((menu, level, player, itemHandlers) => { console.info ...t parameter set*/ .addItemHandler(9) // adds an item handler. ...

KubeJS ProjectE

KubeJS Addons

...you set the EMC values of items and the Philosopher's Stone transformations blocks with the ProjectE mod. Examples are shown below. Server side events ( server_scripts ): ProjectEEvents.setEMC(event => { // sets the absolute emc value of an item ...

Changing Mod Display Names

KubeJS Other

...m.mods.kubejs.name = 'My Modpack Name' This is useful when you add a bunch of items with KubeJS but want them to show your modpack name instead of "KubeJS" And yes, you can change name of other mods as well: Platform.mods.botania.name = 'Plant Tech Mod'

JEI Integration

KubeJS Legacy Events

All JEI events are client sided and so go in the client_scripts folder Sub-types onEvent('jei.subtypes', event => { event.useNBT('example:item') event.useNBTKey('example:item', 'type') }) Hide Items & Fluids onEvent('jei.hide.items', event =&...

Custom Tiers

KubeJS Events

...can make custom tiers for armor and tools in a startup script. They are not reloadable without restarting the game. The events are not cancellable. Tool tiers ItemEvents.toolTierRegistry(event => { event.add('tier_id', tier => { tier.uses = 250 ...