
Kube Utils
Adds helper utilities and new features to KubeJS in a clean, concise and consistent API design
About this Mod
Kube Utils
Kube Utils is a simple addon to KubeJS which adds new functionality to existing features and branches off to create new systems that allow for more performant, simplified, and concise code.
How it works
Kube Utils (Ku from now on) has been designed with the concept of a clear, concise, and consistent API like design. Everything added by this mod is held within the global Ku object meaning if you want to access level apis, you will access it via Ku.Level, if you want to do something with fluids you will use Ku.Fluids etc.
Features
Currently, we only have a few helpers to some of the lesser supported areas of KubeJS but we plan to expand this greatly over the life cycle of the systems development. If you have any suggestions, please make a feature request!
- Level additions like being able to get structures at a block pos, ability to spawn structures, find entities and clear spaces, get a random location with a bounding box, etc.
- Fluids, allow you to get a list of fluids based on their namespace(s), and being able to check if a fluid is empty or not.
- List additions like getting random entries based on a weighted table
- The addition of general utilities like
nullOrEmptywhich gives you a very simply way to always know if an object is nullOrEmpty whether it's a item, block, itemstack, string, fluid or itemEntity! (more support to come as required) - Completely documented code
- Production validated
- Clear and simple API
Our goals
- We aim to never make breaking changes unless absolutely forced to by Minecraft, Forge or Fabric. At the point we feel we need to branch off and make breaking changes, it will be done in an optional way that will not affect existing code.
- Never to make the additions overly complex
- Always document the additions in plain English
Documentation
https://nanite.github.io/KubeUtils/
Disclaimer
Disclaimer, whist in beta, expect possible code breaking changes. Once we hit stable release, this message will be removed and from that point onwards, the code will not contain breaking changes!
Issues
Please report any issues to our issue tracker along with example code so we can validate the issues.
Available Versions
How to Install Kube Utils on Your Server
Order Server
Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).
Set forge Loader
In the panel under "Egg", select the forge loader and matching Minecraft version (1.21.1).
Install Mod
Open the mod browser in the dashboard and search for "Kube Utils". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.
Compatibility
Mod Loaders
Minecraft Versions
1.21.1, 1.20.4, 1.20.1 (+2 more)
Server-side
✓ RequiredRecommended RAM
4 GB(min. 3 GB)Frequently Asked Questions
Kube Utils server crashes on startup – what to do?
Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.1). You can switch loaders with one click in the panel.
Is Kube Utils compatible with forge and neoforge?
Kube Utils officially supports forge, neoforge for Minecraft 1.21.1, 1.20.4, 1.20.1. The Mado dashboard automatically detects incompatible loader combinations.
Server lagging with Kube Utils – how to optimize performance?
Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Kube Utils consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.
Similar Mods
Rent Modded Server
Install Kube Utils with just one click on your server.