Help with Loot Table Commands

Started by radscientist44 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 day ago
Joined Jan 2025
Points:
196

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 239
Help with Loot Table Commands

Hello,

I need help with loot table commands. I've tried YouTube videos and other posts on the forum, but every time I try the command out it is either is invalid or in the chat it says changed block data of cords, but every time the chest is empty.And just to make sure its incorrect ,I press control+mmb and each time get no chest. Maybe I'm doing it wrong, but I need help. I have tried for three days already.

Active 7 minutes ago
Joined Nov 2024
Points:
163

User statistics:

  • Modifications: 2
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 154
Hey, sorry about that. I was…
Fri, 02/07/2025 - 15:20

Hey, sorry about that. I was dealing with the exact same problem several days ago, but found out that the actually changed the loot table command for Minecraft in a recent update. Now it’s 

/give @p chest[container_loot={loot_table:"mod_regestry_name: chests/loot_tabe_name"}] 1

Hope this helps! 

Active 7 minutes ago
Joined Nov 2024
Points:
163

User statistics:

  • Modifications: 2
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 154
Oops, not “loot_tabe”, “loot…
Fri, 02/07/2025 - 15:21

Oops, not “loot_tabe”, “loot_table”, sorry about that, lol

Active 1 day ago
Joined Jan 2025
Points:
196

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 239
I tried it on a command…
Fri, 02/07/2025 - 17:14

I tried it on a command block and regular commands but it was invalid, what am I doing wrong

Active 1 day ago
Joined Jan 2025
Points:
196

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 239
sorry if I sound rude saying…
Fri, 02/07/2025 - 17:15

sorry if I sound rude saying that, I'm not trying to be mean

Active 7 minutes ago
Joined Nov 2024
Points:
163

User statistics:

  • Modifications: 2
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 154
No, I totally understand if…
Fri, 02/07/2025 - 22:21

No, I totally understand if you're frustrated. Hmm... I'm not sure what's wrong. 

Here are a few things that might help:

I need to know what MCreator version you're using, I'm using 2024.4, maybe that has something to do with it.

Maybe you're writing the command wrong, does the words come up red, or does the command work but still no loot?

If it's red, you might have written some of it wrong, it happens all the time.

If not, then try going up to "workspace", then "workspace settings", then you can see your mod registry name. Copy that, then you can go into your loot table and make sure that its compatible with chests, not blocks as its set to. It should say chests/ then your loot table name. You can copy both the registry name then the loot table name including the chests/ part. If you reorder it so its the modname:chests/lootname it should work. You also could be using Bedrock addons, which I'm sorry, buddy, I can not help you. I hate Bedrock.

Active 7 minutes ago
Joined Nov 2024
Points:
163

User statistics:

  • Modifications: 2
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 154
/give @s chest[container…
Fri, 02/07/2025 - 22:24

/give @s chest[container_loot={loot_table:"YourModName:chests/YourLoot"}] 1 

That should work, but idk.

Also remember that theres a difference between your mod name (e.g Ad Astra!, L_Ender's Cataclysm). Your mod registry name (e.g ad_astra, cataclysm) if you know what i'm talking about. 

Hope that i'm helping and not just being annoying! Good luck!

Active 1 day ago
Joined Jan 2025
Points:
196

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 239
thank you for your time, ill…
Sat, 02/08/2025 - 01:34

thank you for your time, ill try that command

Active 1 day ago
Joined Jan 2025
Points:
196

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 239
what's the diference between…
Sat, 02/08/2025 - 01:42

what's the diference between a mod name and registry name, one of those is Star Wars the clone wars

Active 1 day ago
Joined Jan 2025
Points:
196

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 239
by the way its red when I do…
Sat, 02/08/2025 - 01:45

by the way its red when I do the command

Active 7 minutes ago
Joined Nov 2024
Points:
163

User statistics:

  • Modifications: 2
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 154
Ok I have an idea. Go to…
Sat, 02/08/2025 - 14:20

Ok I have an idea.

Go to MCstacker.net, basically the best Minecraft command cheat site, it tells you exactly how to master commands.

Click the /give button. Ignore all the target location stuff, and go down to the GiveItem box. Search for “Chest”. 
A new section under the give item should open up, component, click it and scroll to the “ContainerLoot” section and select it. You can play with the other options later, but for now just stay with the containerloot.

Now ignore the “filter” text box next to it, just click the tiny orange + to open the container loot.

Now in the little text box that opened up, type the mod identifier name, and then chests/ and your loot table name. Up in the top corner, there should be a box with the command output, click copy and then past it into the Minecraft text bar. Be careful, click “T” in Minecraft, not “/“, since MCstacker adds a slash in the first place, so it would error

 

Active 7 minutes ago
Joined Nov 2024
Points:
163

User statistics:

  • Modifications: 2
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 154
If that doesn’t work, maybe…
Sat, 02/08/2025 - 14:21

If that doesn’t work, maybe you’re in an older version of Minecraft or typing the loot table wrong. Let me know if you need anything else! Hope that this works!

Active 7 minutes ago
Joined Nov 2024
Points:
163

User statistics:

  • Modifications: 2
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 154
Oh, I promise that MCstacker…
Sat, 02/08/2025 - 14:22

Oh, I promise that MCstacker is safe, I use it all the time

Active 1 day ago
Joined Jan 2025
Points:
196

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 239
what do you mean click t in…
Sat, 02/08/2025 - 22:19

what do you mean click t in Minecraft, I'm very new to commands

Active 1 day ago
Joined Jan 2025
Points:
196

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 239
I play in 2024.4 edition,…
Sat, 02/08/2025 - 22:19

I play in 2024.4 edition, the new one