MinecraftHub.io
Java Mods

LootJS: KubeJS Addon

LootJS gives pack developers a way to rewrite loot tables from KubeJS scripts. It installs on the server only and targets NeoForge, Fabric and Forge.

MinecraftHub-generated editorial cover for LootJS: KubeJS Addon, a voxel diorama around the lime MinecraftHub block

Screenshot 1 of 1. MinecraftHub-generated editorial cover for LootJS: KubeJS Addon, a voxel diorama around the lime MinecraftHub block

What LootJS: KubeJS Addon works with.

PlatformJava Edition
LoadersNeoForge, Fabric, Forge
Minecraft versions1.18.2, 1.19.2, 1.20.1, 1.21.1, 26.1.2
EnvironmentServer

LootJS is a mod for pack developers who want to change loot tables with KubeJS scripts. It ships for NeoForge, Fabric and Forge, and it belongs on the server only, since the mod does not support the client. Newer builds depend on KubeJS, so this is a scripting tool for modpack authors, not a drop-in loot overhaul for players.

Loaders and versions

  • NeoForge: Minecraft 1.20.1 to 26.1.2. The newest build requires KubeJS; builds for 1.20.1 need no dependencies.
  • Fabric and Forge: Minecraft 1.18.2 to 1.20.1. The newest build needs no dependencies, optionally Roughly Enough Items (REI) and Just Enough Items (JEI); some builds for 1.18.2 to 1.20.1 require KubeJS.

What LootJS does

The scope is narrow on purpose. Lytho's mod exists so packdevs can modify the loot system through KubeJS, and that is all it sets out to do. Nothing changes until you write scripts, so the result depends entirely on what your pack needs.

The project has passed 11 million downloads on Modrinth since its first release in 2022. Usage documentation lives on the GitHub wiki, and bugs go to the issue tracker in the same repository.

Installing LootJS

  1. 1.Install the loader that matches your pack. The guides for Fabric and Forge or NeoForge cover it.
  2. 2.Pick the LootJS file made for your loader and your Minecraft release, from Modrinth, CurseForge or the GitHub releases.
  3. 3.Add the matching KubeJS file if your LootJS build requires it.
  4. 4.Put both files in the mods folder of the server, then start the server with the loader.
  5. 5.Write your loot scripts, using the wiki as a reference.

Trade-offs and recipe viewers

The main cost is the learning curve. You need KubeJS in the pack for most builds and you need to be comfortable scripting. Some builds also list Roughly Enough Items and Just Enough Items as optional extras, so a recipe viewer is not required to run it.

Questions about LootJS: KubeJS Addon.

5 questions

What is LootJS used for?

LootJS lets pack developers modify loot tables through KubeJS scripts. It is a tool for modpack authors, so nothing changes in a world until you write scripts. The mod's own summary describes it as a way to easily modify the loot system with KubeJS.

Does LootJS need KubeJS?

Most builds do, including the newest NeoForge build. Builds for 1.20.1 on NeoForge need no dependencies, and the newest Fabric and Forge builds need nothing either. Check the file you pick, because older Fabric and Forge builds do require KubeJS.

Do players need LootJS installed on their own game?

No. LootJS is required on the server and the client is unsupported. Install it where the world runs and leave it out of player mod folders. Players connect without it.

Which loaders does LootJS support?

LootJS has builds for NeoForge, Fabric and Forge. Each loader needs its own file, and the file must match your Minecraft release. NeoForge carries the newest releases, while Fabric and Forge builds cover older ones.

What licence does LootJS use?

The repository's LICENSE file is the GNU Lesser General Public License v3, and the README says the project is licensed under it. Modrinth shows the same LGPL-3.0 label.

More Java Mods like LootJS: KubeJS Addon.

Guides for Java Mods.

Browse all Minecraft Java mods ↗