Back to mods
WorldJS: KubeJS Addon project artwork

CurseForge · Minecraft mod

WorldJS: KubeJS Addon

Adds functionality for modpack developers to modify environment appearance through KubeJS

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which WorldJS: KubeJS Addon release should I use?

Updated 3 months ago
Latest stable file worldjs-1.0.1.jar
Game version 1.20.1
Loader Forge

WorldJS: KubeJS Addon worldjs-1.0.1.jar targets 1.20.1 with Forge. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is WorldJS: KubeJS Addon required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Forge
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does WorldJS: KubeJS Addon worldjs-1.0.1.jar need?

worldjs-1.0.1.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add WorldJS: KubeJS Addon without breaking your instance.

Built for WorldJS: KubeJS Addon worldjs-1.0.1.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use worldjs-1.0.1.jar. It targets 1.20.1 with Forge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside worldjs-1.0.1.jar. It opens that exact file at the source.

About this project

What does WorldJS: KubeJS Addon add?

WorldJS is a clientside KubeJS addon for modpack developers who want full control over the Minecraft world's atmosphere: sky color, fog, sun, moon, and rain textures, all in real time.

Built for personal use, but feel free to use it in your own packs.

Features

  • Override sky and fog colors on the fly
  • Replace sun, moon, and rain textures
  • Smooth 3 seconds fade transitions when colors are set or cleared, so changes don't snap
  • Both an event based API (WorldJSEvents) for one time setup and a direct API (WorldJS) for runtime changes
  • In-game commands for testing without writing scripts

Examples

One time setup on load

Use WorldJSEvents to define your defaults when the game loads:

// Set custom sky and fog colors
WorldJSEvents.skyColor(event => {
    event.setSkyColor(0xFF4400)
    event.setFogColor(0x221100)
})

// Set custom textures for the sun, moon, and rain
WorldJSEvents.skyTexture(event => {
    event.setSunTexture("kubejs:textures/environment/custom_sun.png")
    event.setMoonTexture("kubejs:textures/environment/custom_moon.png")
    event.setRainTexture("kubejs:textures/environment/custom_rain.png")
})

Runtime changes

Use WorldJS directly inside tick events, item use events, dimension change handlers, or anywhere else to change things on the fly:

// Switch the sky to red
WorldJS.setSkyColor(0xFF0000)

// Switch the fog to blue
WorldJS.setFogColor(0x0000FF)

// Swap textures
WorldJS.setSunTexture("kubejs:textures/environment/custom_sun.png")
WorldJS.setMoonTexture("kubejs:textures/environment/custom_moon.png")
WorldJS.setRainTexture("kubejs:textures/environment/custom_rain.png")

Reverting to vanilla

Each setter has a matching clear. Color clears fade smoothly back to the biome color over three seconds; texture clears are instant.

WorldJS.clearSkyColor()
WorldJS.clearFogColor()
WorldJS.clearSunTexture()
WorldJS.clearMoonTexture()
WorldJS.clearRainTexture()

// Or revert everything at once
WorldJS.reset()

Commands

For quick testing without writing scripts:

/worldjs sky set <hex>      e.g. /worldjs sky set FF0000
/worldjs sky clear
/worldjs sky status
/worldjs fog set <hex>
/worldjs fog clear
/worldjs sun set <texture>
/worldjs sun clear
/worldjs moon set <texture>
/worldjs moon clear
/worldjs rain set <texture>
/worldjs rain clear
/worldjs reset

Hex values accept either FF0000 or #FF0000.

Requirements

Credits

Thanks to Project8gbDeRam for helping out with the mod!

Project description from CurseForge.

Pick your setup

WorldJS: KubeJS Addon by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

1 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

WorldJS: KubeJS Addon versions and loaders

2 of 2 releases match

Looking for an older file? The official CurseForge project page is in Resources.