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

Started by 507CEmaster on

Topic category: Help with Minecraft modding (Java Edition)

Active 4 years ago
Joined Jun 2015
Points:
724

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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

 

Active 1 year ago
Joined Mar 2020
Points:
1518

User statistics:

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

Then switch to 1.14. Easy

Active 4 years ago
Joined Jun 2015
Points:
724

User statistics:

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

I've all my mods elements in 1.12.2 

Active 2 months ago
Joined Feb 2016
Points:
815

User statistics:

  • Modifications: 0
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 127
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

Active 3 months ago
Joined Jun 2019
Points:
2782

User statistics:

  • Modifications: 4
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3716
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.

 

Active 4 years ago
Joined Jun 2015
Points:
724

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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!

Active 2 years ago
Joined Aug 2020
Points:
608

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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.

Active 2 years ago
Joined Aug 2020
Points:
608

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 21
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

Active 3 years ago
Joined Jun 2021
Points:
579

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 95
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!