SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
✓ VerifiedWeapons, items & crafting

Loot Patcher

by Karashok-Leo · for Minecraft

Inject new loots into existing loot tables.

50KDownloads
23 mo agoLast updated
LGPL-2.1-or-laterLicense
FabricLoaders

About Loot Patcher

From Modrinth

Inject new loots into existing loot tables.

🪄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.

Highlights

From source data

Game versions

Built for Minecraft 1.20.1.

Loaders

Runs on Fabric.

Footprint

Rated a light load on a server.

What kind of mod it is

From the catalog
Listed on Modrinth as “Mods”

Weapons, items & crafting

New weapons, gear, items and the recipes to make them.

Runs on your server

From source side support

Modrinth lists Loot Patcher as required on the server. Check its Modrinth page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
Fabric
Runs on
Serverrequired on the server
Game versions
1.20.1

Verified at the source

  • ✓ModrinthOfficial listing, checked 2026-10-01Open ↗
  • ✓AuthorKarashok-Leo, as published on Modrinth
  • ✓LicenseLGPL-2.1-or-laterFree

Loot Patcher, answered

Generated from the mod’s own source data.

Do my players need to install Loot Patcher?

Modrinth lists Loot Patcher as required on the server. Check its Modrinth page to see whether players need it too.

Which loaders does it support?

Fabric.

Is it free?

Yes. Loot Patcher is free to download from Modrinth. Its license is LGPL-2.1-or-later.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Loot Patcher on a Minecraft server.

Deploy in about a minute from $4.20 a month, then add Loot Patcher in one click.