#Swap vanilla chests
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 While you wait, take this time to provide more context and details.
🙇 If nobody has answered you by <t:1725270545:t>, feel free to use the Summon Helpers button to ping our helper team.
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
Here you can generatethe loottable https://misode.github.io/loot-table/
You can click on presets to add your item to the vanilla one
If there's a specific loot table you want to give each one, you can just replace each chest loot table with a reference to that loot table
Then you need to place the file in the right location
Wait. I forget to mention. The reason I want to replace the whole chests is couse the modded ones needs keys.
you can take a look here https://mcasset.cloud/1.21.1/data/minecraft/loot_table/chests to know where to place and name those files
And I can add the key to specific mobs' loottables.
Wow. Very cool site. Bookmarked! Thank you.
But if I wanna replace the chest itself do I need to modify nbt files of the specific structure? - Im on Mac OS Sonoma rn
Sorry for dumb questions. I started writing basic datapacks (Mostly custom harder recipes) like ~2 weeks ago.
what do you want to replace the chests with?
If you want to replace chests in minecraft structures with locked chests (I belive chests can have nbt data that locks them) then yes you could make nbt structure files that have said locked chests saved in them.
An easier way to do it might be to add a processor to the structures template pool that replaces chests with your specific locked chest.
Both these methods will only work for newer structures that arn't hard coded. Older ones like fortresses and strongholds are hard coded and don't have nbt files to edit. You could try to recreate them using structure blocks but it's a lot of work
Hmm. Okay I think I can skip hardcoded ones. But I want to replace every replacable with the ones from the mod I linked. I edited the original post with the missing infos.
Im using 1.20.6 and I want to replace original loot chests with the loot crates from the mod couse this way players needs to get keys for the chests to open them.
So what would be the easiest or more logical step to do?
Sadly I got some things to do and I will arrive home like 5 hours later.
And thank you very much for the help so far @quasi lichen
Okay. Im home now. I try the nbt stuff and see if I can actually do something.
You can't just "replace" the chests with modded ones, mods and datapacks are different