promotional bannermobile promotional banner

KubeJS Data Component

KubeJS Data Component is an addon mod for Minecraft 1.21.1 NeoForge

Mod Overview

KubeJS Data Component is an addon mod for Minecraft 1.21.1 NeoForge that provides comprehensive data component registration capabilities for the KubeJS scripting engine. With this mod, developers can create and register custom data components directly in KubeJS scripts, allowing items to store custom data without writing any Java code.

 

Key Features

🛠️ Easy Registration - Register data components directly in KubeJS scripts

📊 Multiple Data Types - Support for integers, strings, booleans, floats, doubles, and longs

🌐 Network Synchronization - Configurable client-server synchronization

💾 Data Persistence - Support for saving and loading component data

🔧 Highly Customizable - Flexible configuration through builder pattern

 

Example

// Register integer component

DataComponent.registerInt("my_counter")

 

// Register string component

DataComponent.registerString("my_text")

 

// Custom component with builder

DataComponent.register("custom_component", 

    DataComponent.builder()

        .type("DOUBLE")

        .persistent(true)

        .networked(true)

)

 

// Using components on items

item.set(DataComponent.get("my_counter"), 100)

let value = item.get(DataComponent.get("my_counter"))

 

Technical Features

Built on Minecraft 1.21.1 vanilla data component system

Fully integrated with KubeJS scripting environment

Thread-safe component registration mechanism

Comprehensive error handling and type checking

 

Use Cases

Adding custom counters to items

Storing specific state information for items

Implementing complex item behavior logic

Creating custom progression tracking systems

The KubeJS Data Component Team

profile avatar
  • 4
    Followers
  • 9
    Projects
  • 45.7K
    Downloads

More from RainMelodyView all

  • NoUnsafe project image

    NoUnsafe

    • 23
    • Mods

    A CoreMod plugin that detects and logs Unsafe usage during class loading to help debug JVM crashes and security issues.

    • 23
    • March 16, 2026
    • Mods
  • RainJava project image

    RainJava

    • 0
    • Mods

    Runtime Java compiler with Mixin injection and ASM transformation support

    • 0
    • February 20, 2026
    • Mods
  • RainAPI project image

    RainAPI

    • 22
    • Mods

    Core library for RainJava featuring embedded ECJ compiler, Javassist bytecode tools, and ASM transformation pipeline. Enables dynamic Java compilation and class modification at runtime.

    • 22
    • February 20, 2026
    • Mods
  • MoreEventsJS project image

    MoreEventsJS

    • 33.0K
    • Mods

    It adds more events for kubejs

    • 33.0K
    • February 6, 2026
    • Mods
    • +1
  • NoUnsafe project image

    NoUnsafe

    • 23
    • Mods

    A CoreMod plugin that detects and logs Unsafe usage during class loading to help debug JVM crashes and security issues.

    • 23
    • March 16, 2026
    • Mods
  • RainJava project image

    RainJava

    • 0
    • Mods

    Runtime Java compiler with Mixin injection and ASM transformation support

    • 0
    • February 20, 2026
    • Mods
  • RainAPI project image

    RainAPI

    • 22
    • Mods

    Core library for RainJava featuring embedded ECJ compiler, Javassist bytecode tools, and ASM transformation pipeline. Enables dynamic Java compilation and class modification at runtime.

    • 22
    • February 20, 2026
    • Mods
  • MoreEventsJS project image

    MoreEventsJS

    • 33.0K
    • Mods

    It adds more events for kubejs

    • 33.0K
    • February 6, 2026
    • Mods
    • +1