charsmud Posted August 10, 2013 Posted August 10, 2013 Hello! Is there a way that I can access a Village structure so I can create new buildings? I DO NOT mean adding new modded buildings to a village: I want to be able to essentially "expand" villages that have been generated. I've looked through the events, but I couldn't find one that pertains to my situation. Any ideas? Quote
GotoLink Posted August 11, 2013 Posted August 11, 2013 IVillageCreationHandler ? Not sure that is what you need though. Quote
charsmud Posted August 13, 2013 Author Posted August 13, 2013 I don't think that's what I need.... I was thinking of just saving the mapping or whatever villages use when they generate for the modulation and then just referencing that whenever I need it, but I'm not entirely sure that this is something that you can do without editing base classes...... I might be able to do it with reflection whenever a village generates but I'm not entirely sure if this would work. Quote
GotoLink Posted August 13, 2013 Posted August 13, 2013 Villages don't save the buildings, only the center. The system regularly check for doors to spawn villagers or golem. Quote
charsmud Posted August 15, 2013 Author Posted August 15, 2013 It has to have some sort of modular expansion, as the villages are modular. I need to access whatever is used to modulate the village. Quote
GotoLink Posted August 15, 2013 Posted August 15, 2013 It is modulated by randomness and bounding boxes. A village is built from a start piece, then the generator iterates over a list of weighted structure pieces. See StructureVillagePieces class. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.