Is there a way to add a loot table to a modded chest when it generates?

Started by Hogwash on

Topic category: Help with modding (Java Edition)

Last seen on 02:24, 9. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to add a loot table to a modded chest when it generates?
Tue, 10/05/2021 - 05:07 (edited)

So, I have a locked chest and when I used a key on it the key disappears and the locked chest gets replaced by an unlocked version it (also there is a keyblade version of the key that uses durability instead of disappearing). I want the unlocked chest to spawn with custom loot table items but I'm not sure how to do it. Here is what I have so far:If locked chest is right clicked with keyWhen unlocked chest spawns? Idk what to do here.

Edited by Hogwash on Tue, 10/05/2021 - 05:07
Last seen on 19:24, 20. Sep 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Change slot in gui, each…
Tue, 10/05/2021 - 16:41

Change slot in gui, each slot may spawn an item

In my mod I have 12 slots spawning 12 different items

Last seen on 02:24, 9. Oct 2021
Joined Oct 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for the help! Ill…
Wed, 10/06/2021 - 00:28

Thanks for the help! Ill work on it more and try to fix the minor issues a bit later.