Started by
Kevinprolegend123
on
Topic category: Help with Minecraft modding (Java Edition)
ok i want to change the loot table of abandoned portals, bastions, and desert temple by adding the custom Items i added but i don't know how i only seen videos that tell me how to make new loot tables for custom structures so pls help me
U cant
ok
You might be able to edit them if you find the structure chest's loot table(s) ID. If you do, all you would need to do is make a new loot table, enter in the values for the vanilla one(s), and then set the items to your liking. I'm not fully sure if it is possible though.
This should be doable, I've replaced the loot tables for a few standard mobs, I don't see why chests would work any different.
What you need to do is to properly set the table registry name and namespace. You can find the existing ones by exploring 1.18.2.jar or whatever version you're using.
For example, to change desert temple chests:
Loot table registry name: chests/desert_pyramid
Loot table namespace: minecraft
Loot table type: Chest
You can then either recreate the table entries manually or save the element and then edit its code, where you can copy/paste the original code and then make your changes before locking it.