Mod

Loot Patcher

Quick rating

Loot Patcher

No reviews yet

Inject new loots into existing loot tables.

No Theme
No Genre
QoL & Tweaks
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Unsupported
Server Required

About

Project Details

Type
Mod
License
GNU Lesser General Public License v2.1 or later
Latest Version
loot-patcher-1.2.0.jar
Authors
CurseForge
Modrinth

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

CurseForge ID
Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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

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

Screenshots

Gallery

This project has no gallery images yet.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

~70,000
Total Downloads
CurseForge
~57,000
Modrinth
~13,000
Last Updated
CurseForge
Modrinth
Created
CurseForge
Modrinth
Last synced
When ModDex last fetched and imported data for this project from CurseForge or Modrinth. High-traffic and active projects are checked more often.
Next pipeline sync