modsmith Log in Log in Рус / Eng

Loot Table Modifier

loot-table-modifier · 299606 downloads · MIT

library

client: unsupported · server: required (declared by the mod author)

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.

Description

Loot Table Modifier

Chat with me on Discord Available on Modrinth Check out the Repository
Requires MonkeyLib538
Read the Documentation

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

This mod is of course allowed to be used in Modrinth modpacks.

Versions (37)

VersionMinecraftLoadersFile
2.5.0+fabric+26.3 26.3 fabric download
2.5.0+neoforge+26.3 26.3 neoforge download
2.5.0+fabric+26.1 26.1, 26.1.1, 26.1.2, 26.2 fabric download
2.5.0+neoforge+26.1 26.1, 26.1.1, 26.1.2, 26.2 neoforge download
2.1.0+fabric+1.21.2 1.21.10, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9 fabric download
2.1.0+neoforge+1.21.2 1.21.2, 1.21.3 neoforge download
2.1.0+fabric+1.21.1 1.21.1 fabric download
2.1.0+neoforge+1.21.11 1.21.11, 26.1, 26.1-pre-1, 26.1-pre-2, 26.1-pre-3, 26.1-rc-1, 26.1-rc-2, 26.1-rc-3, 26.1-snapshot-1, 26.1-snapshot-10, 26.1-snapshot-11, 26.1-snapshot-2, 26.1-snapshot-3, 26.1-snapshot-4, 26.1-snapshot-5, 26.1-snapshot-6, 26.1-snapshot-7, 26.1-snapshot-8, 26.1-snapshot-9, 26.1.1, 26.1.1-rc-1, 26.1.2, 26.1.2-rc-1, 26.2, 26.2-pre-1, 26.2-pre-2, 26.2-pre-3, 26.2-pre-4, 26.2-pre-5, 26.2-pre-6, 26.2-rc-1, 26.2-rc-2, 26.2-snapshot-1, 26.2-snapshot-2, 26.2-snapshot-3, 26.2-snapshot-4, 26.2-snapshot-5, 26.2-snapshot-6, 26.2-snapshot-7, 26.2-snapshot-8, 26.3, 26.3-pre-1, 26.3-pre-2, 26.3-pre-3, 26.3-rc-1, 26.3-rc-2, 26.3-rc-3, 26.3-snapshot-1, 26.3-snapshot-10, 26.3-snapshot-2, 26.3-snapshot-3, 26.3-snapshot-4, 26.3-snapshot-5, 26.3-snapshot-6, 26.3-snapshot-7, 26.3-snapshot-8, 26.3-snapshot-9, 26w14a neoforge download
2.1.0+fabric+1.21.11 1.21.11 fabric download
2.1.0+neoforge+1.21.1 1.21.1 neoforge download
2.1.0+neoforge+1.21.4 1.21.10, 1.21.10-rc1, 1.21.4, 1.21.5, 1.21.5-pre1, 1.21.5-pre2, 1.21.5-pre3, 1.21.5-rc1, 1.21.5-rc2, 1.21.6, 1.21.6-pre1, 1.21.6-pre2, 1.21.6-pre3, 1.21.6-pre4, 1.21.6-rc1, 1.21.7, 1.21.7-rc1, 1.21.7-rc2, 1.21.8, 1.21.8-rc1, 1.21.9, 1.21.9-pre1, 1.21.9-pre2, 1.21.9-pre3, 1.21.9-pre4, 1.21.9-rc1, 25w02a, 25w03a, 25w04a, 25w05a, 25w06a, 25w07a, 25w08a, 25w09a, 25w09b, 25w10a, 25w14craftmine, 25w15a, 25w16a, 25w17a, 25w18a, 25w19a, 25w20a, 25w21a, 25w31a, 25w32a, 25w33a, 25w34a, 25w34b, 25w35a, 25w36a, 25w36b, 25w37a, 25w41a neoforge download
2.4.0+neoforge+26.3 26.3 neoforge download
2.4.0+fabric+26.3 26.3 fabric download
2.4.0+neoforge+26.1 26.1, 26.1.1, 26.1.2, 26.2 neoforge download
2.4.0+fabric+26.1 26.1, 26.1.1, 26.1.2, 26.2 fabric download
2.3.1+fabric+26.1 26.1, 26.1.1, 26.1.2, 26.2 fabric download
2.3.1+neoforge+26.1 26.1, 26.1.1, 26.1.2, 26.2 neoforge download
2.3.0+fabric+26.1 26.1, 26.1.1, 26.1.2, 26.2 fabric download
2.3.0+neoforge+26.1 26.1, 26.1.1, 26.1.2, 26.2 neoforge download
2.2.0+fabric+26.1 26.1, 26.1.1, 26.1.2, 26.2 fabric download
2.2.0+neoforge+26.1 26.1, 26.1.1, 26.1.2, 26.2 neoforge download
2.1.0+fabric+26.1 26.1, 26.1.1, 26.1.2 fabric download
2.1.0+neoforge+26.1 26.1, 26.1.1, 26.1.2 neoforge download
2.0.1+neoforge+26.1 26.1 neoforge download
2.0.1+fabric+26.1 26.1 fabric download
2.0.0+neoforge+1.21.2 1.21.2, 1.21.3 neoforge download
2.0.0+neoforge+1.21.4 1.21.10, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9 neoforge download
2.0.0+neoforge+1.21.11 1.21.11 neoforge download
2.0.0+fabric+1.21.2 1.21.10, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9 fabric download
2.0.0+fabric+1.21.11 1.21.11 fabric download
2.0.0+fabric+1.21.1 1.21.1 fabric download
2.0.0+neoforge+1.21.1 1.21.1 neoforge download
1.1.2+1.21.5 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5 fabric download
1.1.1+1.21.4 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4 fabric download
1.1.0+1.21.4 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4 fabric download
1.0.1+1.21.1 1.21.1 fabric download
1.0.0+1.21.1 1.21.1 fabric download

Modrinth page →