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

8,771
10
Utility
AboutChangelogVersions

[1.20.1] KubeUtils 20.1.1

by Nanite on Mar 10, 2025
Download

Kube Utils Changelog

[20.1.1]

Fixed

  • Backport release built not working correctly...

[1.21.1] KubeUtils 21.1.1

by Nanite on Feb 11, 2025
Download

Kube Utils Changelog

[21.1.1]

Added

  • findFirstBlockTagWithinRadius to find a block within a radius that has a specific block tag.
  • findAnyEntitiesWithinRadius to find any entities within a radius based on an entity type.
  • findLivingEntitiesWithinRadius to find living entities within a radius based on an entity type.

Deprecated

  • findEntitiesWithinRadius in favour of findLivingEntitiesWithinRadius

[21.1.0]

Changed

  • Updated to 1.21.1 thanks to @Saereth

[1.20.1] KubeUtils 20.1.0

by Nanite on Nov 11, 2024
Download

Kube Utils Changelog

[20.1.0]

Changed

  • Backported to 1.20.1

[1.21.1] KubeUtils 21.1.0

by Nanite on Sep 25, 2024
Download

Kube Utils Changelog

[21.1.0]

Changed

  • Updated to 1.21.1 thanks to @Saereth

[1.20.4] KubeUtils 20.4.0

by Nanite on Jun 10, 2024
Download

Kube Utils Changelog

[20.4.0]

Changed

  • Updated to 1.20.4

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

by ErrorMikey on Sep 8, 2023
Download

Kube Utils Changelog

[0.1.3]

Added

  • Released for 1.18.2

kube-utils-forge-1.0.0+mc1.19.2.jar

by ErrorMikey on Sep 8, 2023
Download

Kube Utils Changelog

[1.0.0]

Added

  • Ported 1.19.2

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

by ErrorMikey on Sep 8, 2023
Download

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

kube-utils-forge-1.0.1+mc1.19.2.jar

by ErrorMikey on Sep 8, 2023
Download

Kube Utils Changelog

[1.0.1]

This is features ported up for 0.1.4 (1.18.2 update)

Added

  • A new KuEvents.playerStarterItems 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 KuEvents.playerStarterItems(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

kube-utils-forge-1.0.2+mc1.19.2.jar

by ErrorMikey on Sep 8, 2023
Download

Kube Utils Changelog

[1.0.2]

Added

  • Added a new Level method to allow for finding a single block within an area findSingleBlockWithinRadius
  • Added a triggeredBy field to the KuEvents.playerStarterItems event as we now trigger the event for a player joining as well as a player changing dimension. If the event does not place and item in the inventory. We assume it failed and will retry on either a join or a dimension change

kube-utils-forge-1.0.3+mc1.19.2.jar

by ErrorMikey on Sep 8, 2023
Download

Kube Utils Changelog

[1.0.3]

Changed

  • Updated support to KubeJS 6.1! This will cause issues when attempted to use with 6.0. You have been warned!

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+
Filter

Show all versions

Modrinth is open source.

new-project-page@ac78952

© 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.