HomeJavaModsKubePackages
KubePackages
ModsJava

KubePackages

by ZZZank · on CurseForge

⬇ Download on CurseForge

The author built this one for Minecraft 1.20.1 on Forge. On other versions it may install and then do nothing.

KubePackages — screenshot 1KubePackages — screenshot 2KubePackages — screenshot 3KubePackages — screenshot 4

KubePackages

Package manager for KubeJS.

KubePackages introduces the concept of "package" for KubeJS, redefining how scripts are distributed. It allows scripts to be encapsulated like modules, loaded like resource packs, and distributed like mods.

This page provides a brief introduction to the core feature of KubePackages: the KubePackage. For more detailed explanations and tutorials, please refer to:

WIKI

KubePackage (Yes, without the 's')

To support package management, distribution, and dependency management, KubePackages introduces "KubePackage" as the carrier for the "package" concept. It provides a complete loading framework, enabling developers to build, integrate, and publish KubeJS functionalities in a modular way. This resolves the issue of flattened script loading, namespace pollution, and tight coupling between scripts.

Did you know that: Rhino's handling of variable scopes has always been quite peculiar. Combined with KubeJS's flattened script loading, declaring variables with same name can easily lead to hard-to-find bugs.

KubePackage is not just a container for script files, but can also provide assets and data resources. Combined with metadata with dependency info, KubePackage goes a step further than resource packs and data packs.

With KubePackage, developers can do more than just writing scripts and inadvertently reinventing the wheel. Instead, they can leverage reusable modules to improve development QoL. You can:

KubePackages aims to become the standard package management system for the KubeJS ecosystem and provide a unified standard for the entire community.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more