LootTweaker is an addon for CraftTweaker that allows loot tables to be tweaked with ZenScript files. The vanilla loot table system is limited to overriding existing loot tables or creating entirely new ones.
LootTweaker allows you to make small or large tweaks to loot tables, without having to override the table completely.
Documentation
Documentation can be found here.
FAQ
Will there be a 1.13/1.14/1.15/... version?
LootTweaker will be remaining on 1.12.x. The CraftTweaker team is making excellent progress towards support for the post-1.13 loot system. Therefore, rather than spending a lot of energy on understanding the post-1.13 loot system and creating a useful ZenScript interface to it, I have chosen to continue to improve LootTweaker for 1.12.x.
Can LootTweaker edit mob/structure/whatever loot?
LootTweaker edits loot tables. If a vanilla mechanic or mod mechanic uses loot tables, LootTweaker can edit those tables. To find out if a mod uses loot tables, check its documentation or ask the author.
Can LootTweaker create new loot tables?
Yes, this feature was implemented in version 0.2.0. See the documentation for the class loottweaker.LootTweaker for details.
Can LootTweaker automatically find and remove all of an item from loot tables?
No, though the feature is being worked on. There is no estimate for when it will be ready.
Can LootTweaker be installed only on the server?
Server-only installation is possible with LootTweaker 0.1.7 or later. However CraftTweaker requires that it is installed on both server and client.
Clients without LootTweaker installed will still be able to use LootTweaker commands, but the feedback messages will be untranslated.
Note that loot table dumps occur serverside.
Client-only installation of LootTweaker is not supported.
What happened to LootTweaker 0.0.9?
0.0.9 was extremely broken, crashing any dedicated server that used any of its functionality due to an oversight on my part while trying to improve the warning and error messages. Initially I archived it, making it unavailable for direct downloads, but still available to packs that were using it. However, I've received many requests from users for 0.0.9 because servers they are playing on use it, so I've deleted it. It's really broken, update to 0.0.10.
Important Notes:
Modifications made by LootTweaker are not detected by Just Enough Resources prior to 1.12. The cause of this issue is unknown, neither I nor the JER author could figure it out.
Only LootTweaker for 1.12 receives new features. Due to large differences in the codebase caused by the port to 1.12, I can no longer develop LootTweaker for all versions simultaneously. LootTweaker for 1.10 and 1.11 will continue to receive bugfixes however.
A Forge version of at least 14.23.5.2779 is required
Want more loot conditions/functions?
Take a look at More Loot Stuff. If the condition/function isn't already in More Loot Stuff, suggest it and I'll see what I can do.
Need help or have a question?
I have a discord server with a dedicated channel for LootTweaker. You can of course also contact me here, but I'd advise going to the discord server as you can get help there when I'm otherwise occupied.
Have a suggestion?
Create an issue hereor just comment on this project.
how do i use this mod?
In reply to warcraft_series:
Read the documentation, then ask questions in the Discord.
HEEEEEEEEEEEEELLP!!!!!!
Couldn't find resource table loottweaker:lostcitycommon
How do I solve this problem? lock does not appear in lost cities and when I open a chest that appears,
It's on a server
In reply to lfre4000l:
You've misunderstood how to get loot table IDs. Go through the Removing Loot tutorial in the documentation, it covers how to get table IDs.
does fishing loot count?
In reply to mikelentertainment:
Fishing uses loot tables
Couldn't find resource table loottweaker:lostcitycommon
How can I solve this problem
anything like this for 1.16.5?
In reply to vizthex:
In 1.16 CraftTweaker has loot modification support natively. It's a very different API to LootTweaker, but it covers more use cases and scales better IMO.
In reply to Daomephsta:
Huh, TIL. Thanks!
i read through the entire description of this mod, and im still at a loss, im not sure if this is a thing, so im just gonna ask.
can you edit pre-existing chests?
In reply to the_truth_____:
Vanilla generates chest loot when the chest is first opened
Does anyone know if this mod can edit lost city mod chests
Yes, you can see how I do it in my modpack Rotten Economy. Basically you create a new loot pool with LootTweaker, and then you edit your assets.json in Lost Citites config and reference the new loot pools. Works great!
can mobs drop items from other mods with this mod? (sorry for the pun)
In reply to visitatore01:
See the FAQ
In reply to visitatore01:
mob-mods-mod
lol
i think the creator would give you a pass for this one
1.16 please
In reply to k4dj1t:
Read the FAQ!
Okay so, let’s say that I have a that gen generates dungeons with chests on them, and another mod that gives you swords. So, with this loot tweaker mod, could I add those mod swords to the mod dungeons chests?