Loot Table in Custom Structure For 1.12.2

Started by Creeper_990_ on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Loot Table in Custom Structure For 1.12.2

I am making a lot of structures for my mod. Does anyone know how to make a custom loot table in my structure for 1.12.2?

 

 

Thanks

P.S: I have checked other forums people have started but they are for different versions of Mcreator.

 

 

Joined Jan 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1.12.2 is unsupported.
Tue, 07/14/2020 - 16:47

1.12.2 is unsupported.

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is 2020.3 for 1.12.2?
Wed, 07/15/2020 - 15:20

Is 2020.3 for 1.12.2?

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Will it work if I make a…
Wed, 07/15/2020 - 15:23

Will it work if I make a block and when you right click it it gives you a random item

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And put it in my structure
Wed, 07/15/2020 - 15:26

And put it in my structure

Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Although you may not be able…
Wed, 07/15/2020 - 16:43

Although you may not be able to use the loot table feature, you ((( might ))) be able to create your own loot table system. i tried on standalone, however i dont know how hard is is to implement simple code in such a complex game. 

im new so im not sure what exactly is possible however i would (as a noob) create a 2d list of weights and item id's, and create a random() for every slot, and using the weight of the item thats most but under the random, where random() generates a number from 0 to the total weight of all of the items, air included. (when it comes to stacks, reroll and add if 20% , more or less.)

 i havent exactly messed around with structures, but you may be able to create such code into a procedure that finds and fills the chest when generated. there is a template for "find block in 6x6" this may be extremely inefficient on bigger structures, or structures that generate very frequently tho.