Advanced Search
Search Results
95 total results found
New Page
Worldgen Events
These following examples will only work on 1.18+! If you need examples for 1.16, you can look here if you want to add new features to world generation and here if you want to remove features from it. General Notes Biome Filters: Biome filters work similarly...
Item and Ingredient
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Ā ...
FAQ
What does this mod do? This mod lets you create scripts in JavaScript language to manage your server, add new blocks and items, change recipes, add custom handlers for quest mods and more! How to use it? Run the game with mod installed once. It should gener...
List of Events
This is a list of all events. It's possible that not all events are listed here, but this list will be updated regularly. Click on event ID to open its class and see information, fields, and methods. Type descriptions: Startup: scripts go into theĀ /kubejs...
KubeJS Create
Create integration for KubeJS. This mod allows you to add and properly edit recipes of Create mod in KubeJS scripts. All supported recipe types and examples are below. See Recipes page for more info. Simple Recipe Types createCrushing createCutting creat...
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...
Loading Assets and Data
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 <TODO: make and link server datapack load page and client generate assets event page> The dat...
Default Options
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? ...
Running Commands
Preface Sometimes, you might want to run a command (such as /tell @a Hi!), in your code. Most always, there is better method, but sometimes, you just don't want to learn more complicated topics, and just run a command. Basic Usage The most basic usage woul...
Spawning Entities
Basics Overview Spawning entities consists of 3 steps: Making the variable storing the future entity Modifying the attributes of the entity Spawning the entity Making a variable to store the entity Example level is just a placeholder, in your code ...
3rd Party addons
3rd party add-ons: (Not including mods with optional dependencies of KubeJS) Name: Description Links Loader Versions Ponder for KubeJS Make custom Create Ponder scenes with KubeJS. Wiki CurseForge Discord Github Forge 1.16.5 1.18.2 ...
Introduction and Installation
Installation Install the mod and its two dependencies Architectury and Rhino.Make you use the most resent version of each mods for your version.If you are using 1.16 fabric then use this instead. When you first install KubeJS, you will need to launch Minecra...
Your First Script
Writing Your First Script If you have launched the game at least once before you will find kubejs/server_scripts/example_server_script.js It looks like this: // priority: 0 settings.logAddedRecipes = true settings.logRemovedRecipes = true settings.logSk...
Basics Custom Mechanics
By now you have created a custom recipe, or maybe multiple, or even manipulated tags, or created custom items or blocks. But you want to do more then that, you want to add a custom mechanic, for example milking a goat. The first step is to break down your id...
Tags
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...
Registering Items
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...