Started by
Ali107
on
Topic category: Help with Minecraft modding (Java Edition)
How do I add extra items that are rare into an existing vanilla loot table without removing all the other items?
Topic category: Help with Minecraft modding (Java Edition)
How do I add extra items that are rare into an existing vanilla loot table without removing all the other items?
Find the original loot table json file in: <your minecraft version>.jar \ data \ minecraft \ loot_tables \ XXX \ XXX.json
Open this file with a text editor and copy the contents.
Make a new loot table in mcreator.
Set the namespace to minecraft and the type to the appropriate type.
Set the Loot table registry name to match the original file.
Save, then open with the code editor.
Paste in the original loot table data over whatever is in the new file.
Save and Lock.
You can now code edit this copy of the original loot table and insert your new item manually.
Thanks for the help!
But won't this make it not compatible with other mods if they try to add stuff in the same loot table?
It's the nature of the beast, the game will use whichever loot table is loaded last.
I do this, but when I load up minecraft and open chests in a desert temple, its empty? Should I keep everything the same except for the loot table entry? I changed the number of rolls at the end and I changed minecraft:item to mod:item.
So the only option is to copy the existing loot table and add whatever I like.
I did everything the tutorial said but only desert temple works, all other structures only have minecraft loot, but not my custom item. Why is that? What is wrong? I tried increasing weight, didn't help.
I did everything the tutorial said but only desert temple works, all other structures only have minecraft loot, but not my custom item. Why is that? What is wrong? I tried increasing weight, didn't help.
Will someone please answer me/help me?
When I followed the tutorial up above, I got vanilla items to appear in the chests, but when I added my own custom ones, the chest appeared to be blank. I then tried it with a new thing, but instead of having it ticked to "minecraft", I had it on "mod" and when I did that, it started to appear. So i came to the conclusion that you can't add custom items to already existing loot tables in the vanilla game.