Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thaumcraft treasure bag JEI screen does not respect loot bag modifications via crafttweaker #36

Open
Luke616 opened this issue May 22, 2022 · 1 comment

Comments

@Luke616
Copy link

Luke616 commented May 22, 2022

Hello,

Having an issue where thaumcraft treasure bags do not display accurate contents in JEI due to them displaying default contents. Treasure bag JEI page should show corrected loot when it is modified using crafttweaker as such:

For example, the following script will remove potions and gold nuggets from all tiers [0=common, 1=uncommon, 2=rare] treasure bags, and add golden apples at a rare chance. These changes are not reflected in JEI, which still shows the potions and nuggets and will not show the golden apple.

mods.thaumcraft.LootBag.removeLoot(<minecraft:potion>, [0,1,2]);
mods.thaumcraft.LootBag.removeLoot(<minecraft:splash_potion>, [0,1,2]);
mods.thaumcraft.LootBag.removeLoot(<minecraft:lingering_potion>, [0,1,2]);
mods.thaumcraft.LootBag.removeLoot(<minecraft:gold_nugget>, [0,1,2]);
mods.thaumcraft.LootBag.addLoot(<minecraft:golden_apple>%200, [0,1,2]);

Versions used:
Forge 14.23.5.2860
MIA 0.2.2a
Thaumcraft 6.1.BETA26

Thank you and best regards,
Luke616

@SokyranTheDragon
Copy link
Owner

My assumption is that CraftTweaker makes the changes after I register the loot bags in JEI. I may try looking into it in the future, but if I can fix it will depend on how JEI reacts to those being registered later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants