How to link loot tables to a custom chest ? (1.12.2)

Started by 507CEmaster on

Topic category: Help with modding (Java Edition)

Last seen on 15:53, 30. May 2020
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to link loot tables to a custom chest ? (1.12.2)

I'm trying to sync a loot table to a custom chest but I don't know how to sync it. I already have the custom chest and the loot table created. 

I watched NorthWestTrees Gaming video but that is for 1.14.4 and the code he shows doesn't work on 1.12.2

 

Last seen on 00:42, 10. Oct 2023
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Then switch to 1.14. Easy
Fri, 05/29/2020 - 02:05

Then switch to 1.14. Easy

Last seen on 15:53, 30. May 2020
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've all my mods elements in…
Sat, 05/30/2020 - 00:53

I've all my mods elements in 1.12.2 

Last seen on 15:22, 28. Mar 2024
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i think the command for…
Sat, 05/30/2020 - 04:26

i think the command for setting the container with the loot table doesn't work in 1.12.2. Sorry bro, i don't know how to do this, i need to do the same thing too, but i can't fin a way

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1.12.2 is outdated and…
Sat, 05/30/2020 - 06:13

1.12.2 is outdated and removed in 2020.3

please update

also, 1.12.2 does not support loot tables.

 

Last seen on 15:53, 30. May 2020
Joined Jun 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
well, I guess I will have to…
Sat, 05/30/2020 - 15:53

well, I guess I will have to make a switch.

Thanks for the help!

Last seen on 10:47, 24. Oct 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just add a "name" entry in…
Sun, 07/18/2021 - 09:00

Just add a "name" entry in your loot table .JSON...

Like this:

"pools": [

       {

                              "name" : "yurloottablename",

               "rolls": {

 

It's simple.

Last seen on 10:47, 24. Oct 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh, and create a java file…
Sun, 07/18/2021 - 09:24

Oh, and create a java file LootHandler in modid/util folder and add this code:

code

Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well I would say keep…
Sun, 07/18/2021 - 13:40

Well I would say keep trucking in 1.12, ignore the people saying "just update." If you truly wanna develop for 1.12 then go for it.

 

Hell there are still modders working in 1.7

 

Do let others talk you out of your preferred version!