Back to mods
Loot Patcher project artwork

CurseForge · Minecraft mod

Loot Patcher

Inject new loots into existing loot tables.

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

Quick answer

Which Loot Patcher release should I use?

Updated 1 year ago
Latest stable file loot-patcher-1.2.0.jar
Game version 1.20.1
Loader Fabric

Loot Patcher loot-patcher-1.2.0.jar targets 1.20.1 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. All 1 required mods have matching files.

Where it goes

Is Loot Patcher 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 Fabric
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 Loot Patcher loot-patcher-1.2.0.jar need?

loot-patcher-1.2.0.jar. Change the file and its required mods may change too.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup.

Fabric API Needed by Loot Patcher loot-patcher-1.2.0.jar
required
Matching file found Matched file: [1.20.1] Fabric API 0.92.11+1.20.1
Mod Menu Optional for Loot Patcher loot-patcher-1.2.0.jar
optional
No matching file
Mod Menu Optional for Loot Patcher loot-patcher-1.2.0.jar
optional
Matching file found Matched file: 7.2.2
Cloth Config API Optional for Loot Patcher loot-patcher-1.2.0.jar
optional
Matching file found Matched file: 11.1.136+fabric

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Loot Patcher without breaking your instance.

Built for Loot Patcher loot-patcher-1.2.0.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use loot-patcher-1.2.0.jar. It targets 1.20.1 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup.

  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 loot-patcher-1.2.0.jar. It opens that exact file at the source.

About this project

What does Loot Patcher add?

🪄Introduction

This mod is mainly made for modpacks and is used to inject new loots into existing loot tables.

⚙️Configuration

By default, this mod will not inject any loot tables.

config/loot-patcher/*.json

[
  {
    "target_tables": [...]
    "extra_tables": [...]
  }
]

Since version 1.2.0, this mod will read all JSON files in the config/loot-patcher/ directory as configs.

config/loot-patcher.json

{
  "patches": [
    {
      "target_tables": [...]
      "extra_tables": [...]
    }
  ]
}

If Cloth Config is installed, you can configure this mod via the config/loot-patcher.json file.

This mod is compatible with ModMenu, which you can install in order to configure the mod in-game via the configuration screen.

Reload

After modifying the configs you will need to reload the datapack (in-game by typing the /reload command) to apply the changes.

📜Example Usage

It is obvious that there should be no ellipses or comments in the JSON format file, and this case is only for the sake of explanation.

Configuration file:

loot-patcher.json

{
  "patches": [
    {
      "target_tables": [
        "minecraft:chests/ancient_city",
        "^(?!.*xxx).*entities.*" //Support regular expressions.
      ],
      "extra_tables": [
        "xxx:entities/common_drop",
        "xxx:entities/rare_drop"
      ]
    },
    {
      "target_tables": ...
      "extra_tables": ...
    },
    ...
  ]
}

Consequence

The above configuration indicates that two loot pools will be added to the loot table with ID minecraft:chests/ancient_city and to all loot tables with IDs that contain entities but not xxx, with the only loot entry in the pools being those of the loot table type (xxx:entities/ common_drop and xxx:entities/rare_drop).

🚨Warning

You should try to avoid infinite loops in the loot table during the configuration process.

Even if you don't, there won't be any serious consequences…

{
  "target_tables": [".*"],
  "extra_tables": ["minecraft:entities/zombie"]
}

In this case, the target loot tables include the extra tables. If you kill a zombie, the zombie's loot table will attempt to drop itself, which causes infinite recursion.

✉️Feedback

If there are any bugs or suggestions, please provide feedback to the issue page.

Project description from CurseForge.

Pick your setup

Loot Patcher 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

Loot Patcher versions and loaders

5 of 5 releases match

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