So I found this mod that I can make any structure with and generate it in the world like villages. It doesn't seem to have any options to randomize the chest like the blacksmith chest in villages does. So I went snooping around in NBTExplorer in the .dat files for villages but couldn't find anything about chest contents. It showed that there was a chest but no other information about it. How does minecraft generate the random loot for chests, where do I find it, and can I implement it in my structure file?
Minecraft has a function, within its code, that generates loot inside chests, you can find it within game .jar executable (its packed collection of JAVA functions), and i don't think you can implement it in your structure file as random generator hence it requires to JAVA function to be executed.
Rollback Post to RevisionRollBack
TAKE CHANCES. TELL THE TRUTH. KISS SLOWLY. DATE SOMEONE TOTALY WRONG FOR YOU.
SAY NO. LOVE DEEPLY. FORGIVE QUICKLY. SPEND ALL YOUR CASH.
GET TO KNOW SOMEONE RANDOM, BE RANDOM. SAY I LOVE YOU. SING OUT LOUD.
FORGET THE PAST. REMMEMBER WHAT IT TOUGHT YOU. LAUGH AT STUPID JOKES.
CRY. APOLOGIZE. TELL SOMEONE HOW MUCH THEY MEAN TO YOU.
TELL A JERK WHAT YOU THINK.LAUGH TILL YOUR STOMACH HURTS.
Well that's too bad. Do you know of any mods that can implement the code for you through use of config files or in game controls? I'm definitely not experienced enough to code it myself but I can mess around with config files pretty easily to do it.
So I found this mod that I can make any structure with and generate it in the world like villages. It doesn't seem to have any options to randomize the chest like the blacksmith chest in villages does. So I went snooping around in NBTExplorer in the .dat files for villages but couldn't find anything about chest contents. It showed that there was a chest but no other information about it. How does minecraft generate the random loot for chests, where do I find it, and can I implement it in my structure file?
Minecraft has a function, within its code, that generates loot inside chests, you can find it within game .jar executable (its packed collection of JAVA functions), and i don't think you can implement it in your structure file as random generator hence it requires to JAVA function to be executed.
Well that's too bad. Do you know of any mods that can implement the code for you through use of config files or in game controls? I'm definitely not experienced enough to code it myself but I can mess around with config files pretty easily to do it.
I belive there is Bukkit plugin with that one you can assign random loot to be generated in defined chests periodicly and stuff like that
http://dev.bukkit.org/bukkit-plugins/phatloots/
http://dev.bukkit.org/bukkit-plugins/loot-chests/
Be careful about what version of Bukkit/Spigot you require to use for them.
I'm not using this for a server though. Just a singleplayer modpack. Unless does Bukkit work with singleplayer?
I know only this one mod
http://www.curse.com/mc-mods/minecraft/custom-chest-loot
That might work actually. I mean it recognized other mods' structures so maybe it could recognize the custom ones. Thanks.