Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Kube Utils

Kube Utils

Adds helper utilities and new features to KubeJS in a clean, concise and consistent API design

17.2k
10
Utility

Compatibility

Minecraft: Java Edition

1.21.1
1.20.4
1.20.1
1.19.2
1.18.2

Platforms

Forge
NeoForge

Supported environments

Client and server

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Links

Report issues View source Visit wiki

Creators

ErrorMikey
ErrorMikey Owner
Nanite
Nanite Member

Details

Licensed LGPL-3.0-only
Published last year
Updated 3 months ago
DescriptionChangelogVersions
All versionskube-utils-forge-0.1.4+mc1.18.2.jar

kube-utils-forge-0.1.4+mc1.18.2.jar

Download
Report

Changelog

Kube Utils Changelog

[0.1.4]

Added

  • A new ku.player.starter-items event that, once used and successfully gave items, will stop running

    • You can define an item and equipment slot (For things like armor) too ```javascript onEvent("ku.player.starter-items", event => { // Item.of is optional here event.addItems("5x minecraft:gold_ingot", Item.of("2x minecraft:grass_block"))

      // Valid options are part of the EquipmentSlot Enum event.addEquipmentItem("chest", "minecraft:golden_chestplate") event.addEquipmentItem("offhand", "minecraft:stone") }) ```

  • A new Ku.Player class that brings some helpful methods

    • showActionBar(text: string, color?: Color = Color.WHITE, bold = false, italic = false)
    • Uses the built-in client action bar to display a message. This is already supported through the player class but this method allows for less boilerplate and stable code ports
    • showActionBarComponent(component: Component)
    • Mostly the same as the above but gives you access to use a JS Object as your component which might look a something like this javascript const player = Ku.Player(event.player); player.showActionBarComponent({ text: "Hello", bold: true })
    • clearStarterItemsFlag
    • This method simply reset the flag for the ku.player.starter-items meaning on the next login, the player will be given the items once again
    • isClientSide
    • Lets you know if the client being wrapped is client side. This was mostly a helper for my code but it could be helpful

Changed

  • Renamed the internal binding classes to be suffixed with Ku so they're visually different from vanilla and KubeJS

Dependencies

dependency-iconKubeJSrequired

Files

kube-utils-forge-0.1.4+mc1.18.2.jar(23.21 KiB) Primary
Download

Metadata

Release channel

Release

Version number

0.1.4+mc1.18.2

Loaders

Forge

Game versions

1.18.2

Downloads

2117

Publication date

September 8, 2023 at 1:38 AM

Publisher

ErrorMikey

ErrorMikey

Owner

Version ID

Modrinth is open source.

feat/theseus/tauri-v2@c5403db

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.