Started by
Creeper_990_
on
Topic category: Help with Minecraft modding (Java Edition)
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.
1.12.2 is unsupported.
Don't use 2020.2
Is 2020.3 for 1.12.2?
Will it work if I make a block and when you right click it it gives you a random item
And put it in my structure
https://mcreator.net/forum/62695/generator-minecraft-1122-versions-20203
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.