LootTableTweaks
LootTableTweaker is an addon for CraftTweaker. This addon allows for CraftTweaker scripts to interact with the loot table system in Minecraft. The primary purpose of this addon is to allow players to add or remove mob drops, and manipulate dungeon/chest loot.
This project is sponsored by Nodecraft. Use code Darkhax for 30% off your first month of service!
Documentation on the methods added by this mod can be found here!
Before using this mod, there are some very important things to know!
- Due to the nature of loot tables, all the methods added by this mod can not be reloaded. You will have to restart the game for any changes to take effect. While it is possible to bypass this limitation it introduces unnecessary instability to the game.
- Due to the load cycle in CraftTweaker, any script trying to access methods from this mod need to be loaded separately. For the script to work, please place it in
/scripts/LootTableTweaker/
. I would highly recommend making a brand new script rather than moving an existing one to this location. - This mod is in alpha right now, so new features are being added slowly. The ability to add things is planned!
This mod just doesn't seem to work. I'm doing exactly as it says and I get no results. Im made a new folder made the script in the folder, getting no error in game that I typed the input wrong but yet I cant get rid of the items, the drop tables, or the items from the mod itself. Im trying to remove the ghast table and i'm entering it like this mods.ltt.LootTable.removeTable("ghast"); and mods.ltt.LootTable.removeGlobalItem("nex:ghast_meat_raw"); doesn't either.
In reply to ayyyyyyylmoa:
Did you ever figure this out? My entire list isn't working at all.
In reply to thelonelyender:
Try here: https://www.curseforge.com/minecraft/mc-mods/loottweaker
doesn't work for guardians and elder guardians
Is there a version for 1.7.10?
In reply to Forge_User_61964845:
In reply to Nihiltres:
Can this be used server side only? I'm tweaking AOE Pack and wanted to modify the dungeon loot chests.
Thanks!
There's a slight error in your example script:
throws an error in the logfile:
In reply to Forge_User_41566147:
In reply to Darkhax:
Wondering if you are planning an update to 1.12.x anytime soon?
Thanks :-)
Working on a private home server. Question?
[Yep this is basically a form question tailored for any mod]
A. Server Side Only
B. Client Side Only [not many mods in this category but it is a option]
C. Both Server and Client Side
D. Client Side Only [if internal server]
Think Curse should work this into the information on the page.
Thanks for the Help. Trying to trim out any unneeded mods on the server/client.
So how do you remove mob drops? Let's say I wanted to prevent a pig from dropping porkchop.
Is there an addEntry to a loot table for this mod? I checked the docs. https://github.com/Darkhax-Minecraft/LootTableTweaker/wiki/Methods
If not is it coming soon to 1.11 or 1.12?
In reply to Lothrazar:
Can I use a command to Dump the loottables to the log?
/mt loot which is implemented in Minetweaker/Crafttweaker always returns an error for me.
According to your code, it seems something in this style is implemented, but I am unable to trigger it. I'm currently using Crafttweaker and Modtweaker and ofcourse LootTableTweaker.
Will this work for all loot tables? Like from other mods, like e.g. animania entities, ...
Thanks,
Guinaro
Nevermind found the command: /dumploot
Doesn't get listed in /help or /mt help
Found it anyway.
The command should be listed in /help, unless you have another mod that is messing with it. I will look into it though.
I found the command myself by comparing with Minetweaker code. Of which I new the command.
I just performed a limited test with MC 1.10.2 and the mods: MTLib (1.0.1), Crafttweaker (3.0.24), ModTweaker2 (2.0.10) and LootTableTweaker (1.0.0.6) . Forge 12.18.3.2254
Nor the command /minetweaker nor the command /dumploot gets listed when calling up the /help /help 2, .... commands.
So it seems there is an issue with how commands get listed in /help I think.
Hope this helps to narrow it somewhat down.
Guinaro
I just want to say thank you. I've been trying to figure out how to do this for a few days.
To have a mod that makes it this much easier, it's a dream come true.