JS files or JavaScript files are used to dictate how specific actions or events work in Minecraft. KubeJS Additions Mod (1.20.1, 1.19.2) adds some new events and functions to some of these JS files. Let us take a look at how these new additions will benefit mod developers and programmers.

Features:

Custom JEI Categories & Recipe Types

  • Allows creation of custom JEI recipe categories using JEIEvents.registerCategories.
  • Define category title, background, icon, and callbacks for:
    • Recipe validation: via verifyRecipe().
    • Recipe lookup handling: using handleLookup().
    • Custom rendering: through renderPainfulBlocks().
  • Add custom recipes using JEIEvents.registerRecipes.
  • Example category: “Painful Blocks” with items like cactus, stick, lava, sugar.

Jade Integration (WAILA Support)

  • Full integration with Jade’s WAILA Plugin API.
  • Customize tooltip information for specific blocks.
  • Use WailaCommonRegistrationEventJS (Startup) to register block data providers.
  • Use WailaClientRegistrationEventJS (Client) to define tooltip rendering logic.
  • Example: Adds brushing result display for Brushable Blocks.

Architectury Event Listeners

  • Listen to any Architectury or Fabric event via proxy classes.
  • Register events using ArchEvents.registry (Startup only).
  • Handle events using:
    • ArchEvents.handleStartup()
    • ArchEvents.handleClient()
    • ArchEvents.handleServer()
  • Example: Handle server starting lifecycle event.

Fabric Event Listeners

  • Register and listen to Fabric events using FabricEvents.registry and FabricEvents.handle*.
  • Supports both Client and Server contexts.
  • Examples include:
    • Chat Messages (ServerMessageEvents.CHAT_MESSAGE)
    • Render HUD, Start Render, After Entities (Client)
    • Allow Elytra Flight, Start/Stop Sleeping, Modify Wake Up Position (Server)

Common Events

  • Entity Enter Chunk – fired when an entity enters a new chunk.
  • Entity Tamed – triggered when an entity becomes tamed.
  • Player Change Dimension – detects dimension transitions.
  • Player Clone – fired when a player entity is cloned.
  • Player Respawn – executed after player respawn.

JEI Event Hooks

  • Supports multiple JEI registration events including:
    • registerCategories
    • registerRecipes
    • registerIngredients
    • registerRecipeCatalysts
    • registerVanillaCategoryExtensions
    • onRuntimeAvailable
  • Allows modders to extend and customize JEI functionality.

Type Wrappers and Bindings

  • Type Wrappers: ChunkPos, BlockPos, Long, BlockContainerJS, Entity.
  • Bindings: Damage Source, Structures, Feature.
  • Enable scripting access to common game structures and world positions.

Screenshots:

Requires:

Minecraft Forge or Fabric API

How to install:

Click the following link to view details: How to Install Mods for Minecraft Java Edition on PC: A Beginner Guide

KubeJS Additions Mod (1.20.1, 1.19.2) Download Links

For Minecraft 1.16.5

Forge version: Download from Server 1Download from Server 2

Fabric version: Download from Server 1Download from Server 2

For Minecraft 1.18.2

Forge version: Download from Server 1Download from Server 2

Fabric version: Download from Server 1Download from Server 2

For Minecraft  1.19.2

Forge version: Download from Server 1Download from Server 2

Fabric version: Download from Server 1 Download from Server 2

For Minecraft 1.20.1, 1.20

Forge version: Download from Server 1 Download from Server 2

Fabric version: Download from Server 1Download from Server 2

Click to rate this post!
[Total: 0 Average: 0]