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

9 total results found

Default Options

KubeJS Other

You can 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 tooltips. Why use this instead of just shipping options.txt? ...

Loading Assets and Data

KubeJS Legacy Other

You can also use KubeJS to load assets from resource packs and data from datapacks! While this isn't the only method, its one of the easiest. Other options are loading datapack jsons programmatically <TODO: one for assets>. The kubejs/data folder is loaded id...

Components, KubeJS and you!

KubeJS Legacy Global

In 1.18.2 and beyond KubeJS uses Components in a lot of places. It returns them for entity names, item names and accepts them for everything from tooltips to sending messages to players. All examples use event.player.tell from the player.chat event to output ...

KubeJS Thermal

KubeJS Legacy Addons

  You can use KubeJS Thermal to add recipes to a lot of the machines from the Thermal Series. Tip: you can use Ctrl/Cmd + F to search this page for the machine you are looking for. onEvent('recipes', event =&gt; { // Redstone Furnace // Turn four ...

Item and Ingredient

KubeJS Legacy Global

When making recipes you can specify items in many ways, the most common is just to use 'namspace:id', like 'minecraft:diamond', however you can also use Item#of and Ingredient#of for advanced additions, such as NBT or count. Note that Item and Ingredient are ...

Tags

KubeJS Events

The tag event is a server event. Tags are per item/block/fluid/entity_type and as such cannot be added based on things like NBT data! The tags event takes an extra parameter that determines which registry it's adding tags to. You will generally only need ite...

Custom Items

KubeJS Events

The custom item event is a startup event. Custom items are created in a startup script. They cannot be reloaded without restarting the game. The event is not cancellable. // Listen to item registry event StartupEvents.registry('item', e => { // The textu...

Custom Tiers

KubeJS Events

The custom tier event is a startup event. You 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(...

Item modification

KubeJS Events

Item modification is a startup event. ItemEvents.modification is a startup script event used to modify various properties of existing items. ItemEvents.modification(event => { event.modify('minecraft:ender_pearl', item => { item.maxStackSize = 64 ...