Download Loot Table Modifier — Minecraft Mods — MetaMods

Loot Table Modifier

Active

Downloads

2

Last update

3 months ago

Versions

1.20.5 — 1.21.8
Server
Fabric
Libraries
Storage
Utils

Loot Table Modifier

This mod provides extended capabilities for working with loot tables in Minecraft. Instead of completely replacing loot tables as happens in standard datapacks, Loot Table Modifier allows making targeted changes and additions to them.

Main Features

The mod opens new horizons for creating datapacks and modifications, allowing items to be added to existing loot tables without the need for complete rewriting. This is especially useful for modders who want to expand game content without conflicting with other modifications.

Performance

The mod's operation does not affect performance during normal gameplay. All processing occurs only when datapacks are reloaded - when entering a world, starting a server, or using the /reload command. Processing time depends on the complexity and number of modifiers used, with the mod displaying information about the duration of applying changes in the console.

Technical Features

The mod includes a data generator for creating loot table modifiers directly in mods. Each modifier file contains two main components:

  • "modifies" - defines which specific loot tables will be modified
  • "pools" - loot pool arrays working on the same principles as in standard Minecraft tables

Usage Example

// example_pack/data/example/loot-table-modifier/loot_modifier/drop_tnt.json
{
    "modifies": [
        "minecraft:entities/creeper",
        "minecraft:entities/zombie"
    ],
    "pools": [
        {
            "bonus_rolls": 0.0,
            "entries": [
                {
                    "type": "minecraft:item",
                    "functions": [
                        {
                            "add": false,
                            "count": {
                                "type": "minecraft:uniform",
                                "max": 1.0,
                                "min": 0.0
                            },
                            "function": "minecraft:set_count"
                        }
                    ],
                    "name": "minecraft:tnt"
                }
            ],
            "rolls": 1.0
        }
    ]
}

Project Integration

To integrate the mod into your own projects, use the following settings:

repositories {
    maven {
        name = "OffsetMods538"
        url = "https://maven.offsetmonkey538.top/releases"
        content {
            includeGroup "top.offsetmonkey538.loottablemodifier"
        }
    }
}

dependencies {
    modImplementation "top.offsetmonkey538.loottablemodifier:loot-table-modifier:1.0.1+1.21.1"
}
Project members
OffsetMonkey538

OffsetMonkey538

Developer

kozhin

kozhin

Created: 19 Dec 2024

ID: 67863