A CraftTweaker addon that enables customization of loot tables with ZenScript
Introducing LootTweaker
LootTweaker is an innovative addon for CraftTweaker, granting players the ability to modify loot tables using ZenScript files. Unlike the vanilla loot table system, which only allows for overriding existing tables or creating new ones from scratch, LootTweaker provides a flexible way to make both minor and significant adjustments without needing a complete overhaul of the entire loot table.
Documentation Access
You can find the full documentation for LootTweaker here.
Mixin Requirement
Starting from version 0.4.0, LootTweaker requires Mixin. It is essential to add a Mixin loader such as MixinBootstrap to your mods folder. Failure to do so will result in a crash when launching Minecraft, displaying an error: Unable to launch java.lang.ClassNotFoundException: org.spongepowered.asm.launch.MixinTweaker
.
Frequently Asked Questions (FAQ)
Will there be support for versions 1.13/1.14/1.15 and beyond?
LootTweaker will remain targeted for the 1.12.x versions. The CraftTweaker team has implemented an excellent API for the loot system post-1.13 directly within CraftTweaker. Instead of diverting efforts towards adapting to the new loot system, I have chosen to focus on enhancing LootTweaker for the 1.12.x versions.
What should I use in place of LootTweaker for 1.13 and later?
The CraftTweaker versions for Minecraft 1.13 and above come with a robust loot API. Although it differs significantly from LootTweaker’s, it offers enhanced capabilities.
Can LootTweaker be used to modify loot from mobs, structures, etc.?
LootTweaker operates by editing loot tables. If a standard or mod-based mechanic utilizes loot tables, LootTweaker can modify those as well. To ascertain whether a mod employs loot tables, please consult its documentation or reach out to the author.
Can I use LootTweaker to create new loot tables?
Absolutely! This functionality was introduced in version 0.2.0. For further details, refer to the documentation for the class loottweaker.LootTweaker.
Can LootTweaker completely remove an item from loot tables?
Currently, this feature is not available, but development is ongoing. No timeframe is provided for its release.
Is it possible to install LootTweaker solely on the server?
Yes, installation only on the server is achievable with LootTweaker version 0.1.7 or later. However, CraftTweaker must be installed on both the server and client. Clients that do not have LootTweaker will still be able to use its commands, but feedback messages will be displayed in untranslated form. Please note that loot table dumps are processed from the server side. Client-side-only installations of LootTweaker are unsupported.
Key Points to Remember:
Development is exclusively ongoing for the LootTweaker version tailored for 1.12. A Forge version of at least 14.23.5.2779 is necessary for operation.
Looking for more loot conditions and functions?
Consider checking out Loot Overhaul by tmtravlr.
Need assistance or have inquiries?
LootTweaker offers a discussion forum on GitHub where you can explore earlier questions and post your own. Although the Discord channel is still available, I recommend utilizing GitHub Discussions as it is more searchable both internally and via search engines like Google. If you comment on Modrinth, it may take some time before a response is provided.
Have a suggestion for improvement?
Please submit an issue here. Comments on Modrinth may not receive immediate attention.