How to edit loot tables that are already in the game

Started by Kevinprolegend123 on

Topic category: Help with modding (Java Edition)

Last seen on 00:53, 21. Mar 2022
Joined Jan 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to edit loot tables that are already in the game

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

Last seen on 04:23, 11. Aug 2023
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
U cant
Sat, 02/26/2022 - 13:45

U cant

Last seen on 02:56, 27. Jun 2023
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You might be able to edit…
Mon, 03/21/2022 - 02:12

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.

Last seen on 05:05, 30. Oct 2022
Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This should be doable, I've…
Mon, 03/21/2022 - 22:44

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.