← Назад к ресурсам

Loot Table Modifier

Allows datapacks and mods to modify loot tables instead of replacing them. Loot modification is applied at data loading, so there's no performance impact during gameplay.

Modrinth library

Описание

# Loot Table Modifier [![Chat with me on Discord](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/social/discord-singular_vector.svg)](https://discord.offsetmonkey538.top/) [![Available on Modrinth](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/modrinth_vector.svg)](https://modrinth.com/mod/loot-table-modifier) [![Check out the Repository](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/available/git_vector.svg)](https://git.offsetmonkey538.top/OffsetMods538/Loot-Table-Modifier) [![Requires MonkeyLib538](https://codeberg.org/OffsetMods538/MonkeyLib538/raw/branch/master/images/requires_badge.svg)](https://modrinth.com/mod/monkeylib538) [![Read the Documentation](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/cozy/documentation/ghpages_vector.svg)](https://loot-table-modifier.docs.cursedmods.com/) ## Why? Vanilla datapacks can only replace existing loot tables, which is not good for being compatible with other datapacks that also try to replace the same table. This mod fixes that by implementing a system of *loot modifiers*, which do just that, modify loot (tables)! Unlike some other mods (*ahem* KubeJS) which work by running code at runtime to intercept and change drops, Loot Table Modifier modifies the loot tables as they're loaded from datapacks. This means that the mod will only hurt performance during data loading, but has no performance impact during gameplay!¹ ###### ¹ Except when you make zombies drop a bajillion stacks of diamonds or something crazy like that, but that's really not the mod's fault 😅 ## Usage ### Players This mod does *nothing* when installed on its own. There needs to be some sort of datapack present that uses loot modifiers. If you are using some mod or datapack which depends on Loot Table Modifier, just download the latest version for the Minecraft version you use from the versions page and add it to your mods folder. List of projects utilizing Loot Table Modifier: - [Withered Bone Meal](https://modrinth.com/mod/withered-bone-meal) - [Ultimate Mob Farms](https://modrinth.com/mod/ultimate-mob-farms) - I don't know of any more yet 😅 Please do hit me up on discord, make an issue/pr on the repository or something if you wanna add your project here :D ### Mod, Modpack or Datapack developers Follow the documentation available [here](https://loot-table-modifier.docs.cursedmods.com). This mod is of course allowed to be used in Modrinth modpacks. **Launches per hour for past 30 days** [![Render of graph showing launches per hour of loot table modifier over the past 30 days](https://analytics.cursedmods.com/render/d-solo/launches-per-mod?from=now-30d&to=now&timezone=browser&var-mod=loot-table-modifier&var-smooth=1d&panelId=panel-1&hideLogo=true&width=1000&height=500)](https://analytics.cursedmods.com/d/launches-per-mod/launches-per-mod?from=now-30d&to=now&timezone=browser&var-mod=loot-table-modifier&var-smooth=1d)