How to edit loot tables that are already in the game

Started by Kevinprolegend123 on

Topic category: Help with Minecraft modding (Java Edition)

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

Joined Apr 2021
Points:

User statistics:

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

U cant

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.

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.