Started by
scorpion981
on
Topic category: Help with Minecraft modding (Java Edition)
How do i make a chest with random loots like the chests in vanilla villages, dungeons or nether fortresss? It can be with a structure, a block that spawn chest or another thing if you have others ideas. There is another topic for that but Mcreator change and i dont find what he was talking about.
This link can be really useful i think, but i dont know how to use it in Mcreator: https://minecraft.tools/en/loots.php
Can someone answer pls?
One way of doing it through procedures it is by adding items inside of a block if it has tile entity. Use a random number to put it inside of a slot (use round and multiply to get the max number of slots -1)
There are a couple of tricks you can use to get something inside of a random slot and when it is placed inside of a slot, create a procedure that also randomises the item and the amount.
I think there are also posts about this already showing how to do this exactly using custom code.
This is not really helping, sorry