Back to mods
Loot Tables API project artwork

CurseForge · Hytale mod

Loot Tables API

Config-based loot table API with tiers, weighted rolls and guaranteed drops

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

Quick answer

Which Loot Tables API release should I use?

Updated 6 months ago
Latest stable file LootGenerator-0.1.1.jar
Game version Not listed
Mod system Built-in Hytale mod system

Loot Tables API LootGenerator-0.1.1.jar targets Hytale. Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer. No required dependencies listed for this file.

Where it goes

Where should Loot Tables API be installed in Hytale?

Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

Separate client mod Not supported
World host / dedicated server Required
Mod system for this release Built-in Hytale mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

Put Hytale mods on the world host or dedicated server. Singleplayer runs a local server too; Hytale does not use separate client mods.

What else does Loot Tables API LootGenerator-0.1.1.jar need?

LootGenerator-0.1.1.jar. Change the file and its required mods may change too.

No required dependencies 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 project dependencies. Check the creator notes before changing an existing world.

Before you install it

Add Loot Tables API without breaking your instance.

Built for Loot Tables API LootGenerator-0.1.1.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use LootGenerator-0.1.1.jar. It targets Hytale; another release may target a different game build or dependency set.

  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

    Enable it on the world host

    Do not install it as a separate client mod. Enable it on the world host—the local server in singleplayer or the dedicated server in multiplayer.

  4. 04

    Pick the file you checked

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

About this project

What does Loot Tables API add?

Loot Tables API

Binary-only library for loot generation.


Description

⚠️ This is an early-stage API (v0.1.1). The API may change and backward compatibility is not guaranteed.

This library provides a loot table service with support for:

  • loot modes
  • loot tiers
  • weighted rolls
  • guaranteed drops
  • optional metadata (name, rarity)
  • direct insertion into inventories
  • configurable inventory placement (random / sequential)
  • runtime config reload (admin command)

It is intended to be used as a dependency by other server plugins or mods.


Installing

Developers

  1. Server setup (required)
  2. Place the LootGenerator mod in the Mods folder.
  3. Enable the mod in the world settings.

⚠️ Important
The LootGenerator mod must be installed in the Mods folder
and enabled in the world.
Otherwise, the loot service will not be available.

2. Add dependency

Add the dependency to your mod configuration files.

manifest.json

"Dependencies": {
  "nofrfa.vectome.loot:LootGenerator": "*"
}

pom.xml

<dependency>
  <groupId>nofrfa.vectome.loot</groupId>
  <artifactId>LootGenerator</artifactId>
  <version>0.1.1</version>
  <scope>system</scope>
  <systemPath>${project.basedir}/libs/LootGenerator-0.1.1.jar</systemPath>
</dependency>

📦 Local library
<your-mod>/libs/LootGenerator-0.1.1.jar

Notes for developers ⚙️

  • The LootGenerator mod must be installed on the server and enabled in the world
  • The version specified in systemPath must match the actual JAR version
  • This library is binary-only

Usage

Getting the service

The loot service is registered automatically on startup and can be accessed globally.

⚠️ Important
Prefer LootTableServices.getOrThrow() over get()
to ensure the loot service is available.


Rolling loot (without inventory)

LootTableService lootService = LootTableServices.getOrThrow();

List<ItemStack> items = lootService.roll(
    "Default", // mode
    "Basic",   // tier
    3          // rolls
);

Returns a list of generated ItemStack.


Rolling loot directly into an inventory

LootInsertResult result = LootTableServices.getOrThrow().roll(
    "Default",
    "Rare",
    2,
    playerInventory
);

List<ItemStack> inserted = result.inserted();
List<ItemStack> remainder = result.remainder();
  • inserted — items successfully placed into the inventory
  • remainder — items that did not fit

Configuration

The configuration file is automatically created on first launch and can be safely edited afterward.

Configuration structure

{
  "Modes": {
    "Default": {
      "Tiers": {
        "Basic": [
          {
            "Item": "Item_Id",
            "Name": "CustomName",
            "Guaranteed": true,
            "Rarity": 5,
            "Weight": 10,
            "Min": 1,
            "Max": 5
          }
        ]
      }
    }
  }
}

Loot entry fields

Field Type Required Default Description
Item string Yes Item identifier
Weight integer No 0 Weight for random selection
Guaranteed boolean No false Always drops once; if Weight > 0, also participates in weighted rolls
Min integer No 1 Minimum amount
Max integer No 1 Maximum amount
Name string No Optional custom name
Rarity integer No Optional rarity metadata

Notes:

  • Guaranteed entries are rolled once before weighted rolls
  • Entries with Weight > 0 participate in weighted rolls regardless of Guaranteed
  • A loot entry may drop multiple times if both Guaranteed and Weight are set
  • Entries with Weight <= 0 do not participate in weighted rolls
  • All values are normalized automatically on load

Admin Commands

These commands are intended for server administrators and developers.
They do not add any gameplay features.

/lt reload — Reloads the loot configuration at runtime.
Permission: loottables.reload


Compatibility

  • API and behavior may change with future Hytale updates
  • Backward compatibility is not guaranteed

Source Code

Not published.

Project description from CurseForge.

Recent files

Loot Tables API releases and Hytale builds

2 of 2 releases match

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