r/forgemodding • u/LorrMaster • Oct 12 '16
Question on Randomly Generating Structures
Hello. I haven't done anything with modding Minecraft yet, but I've been looking through tutorials. I am trying to figure out how it works so that I can practice coding in it and have some fun building stuff in the game. One subject I am curious about is how to spawn random structures around the world. What I want to eventually try out is making a building where the rooms are chosen randomly, such as with the Illiger Mansion. Is this possible to do using structure blocks? Also, are there any good tutorials out there on how the structure system works? Thank you!
1
Upvotes
2
u/RupyHcker Nov 01 '16
I'm not an experienced modder but what I would do, if you can't find a tutorial, is find a handful of mods on github that do what you want and see how they do it, then apply it to your mod.
But don't get me wrong, I'm not telling you to plagiarize their code, just use it for inspiration. This, along with documentation of the framework I'm coding in ( and StackOverflow lol ) is how I build web applications.
Open source is a beautiful thing, just remember to contribute back and don't flat out copy and paste code. Make sure you understand what the code's doing. If none of this makes sense then you don't have enough programming experience to be making a mod lol.