Loot table not working

Started by Geilosaurus on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Loot table not working

I wanted to make a custom chest loot table for a structure, so I created one and put that chest with the /setblock ~ ~ ~ minecraft:chest{LootTable:"chests/sky_altar"} command in the structure. I tested it out but the chest is just empty. I tried placing the chest somewhere else and even remade the loot table but it all doesn't work. The chest is always empty. How can I fix that?

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make your structure Place…
Tue, 05/17/2022 - 14:43

Make your structure

Place inside your chest and add content (or even better randomize it by using a block spawner)

Save your structure

That's quite simple

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did just that but the…
Tue, 05/17/2022 - 15:13

I did just that but the chest was just empty

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You must save your structure…
Tue, 05/17/2022 - 15:50

You must save your structure after you place block inside

Then you must re import your structure into Mcreator

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I did that but it doesn't…
Wed, 05/18/2022 - 17:14

I did that but it doesn't work

Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
if it does not work is cause…
Wed, 05/18/2022 - 17:16

if it does not work is cause you make it in the wrong way

I have plenty situations of this kind in my mod

Just download my mod XII - The Hanged Man   search for cyclop cave and you will see inside my custom chest which always contains different loot

Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
A few things1. It is easier…
Sun, 06/11/2023 - 15:10

A few things
1. It is easier if you give yourself the chest with the loot table as the NBT Data still randomizes the loot when you place it down.
2. Make sure your loot table is put together correctly, ensure that it rolls several times and make sure your loot table ID is the same as the one you are using in the command
3. It is likely you are having the same issue I am having in which non of my loot tables seem to want to work.