I have created a custom village, and have just copied minecraft's code for now to get things to work. But I'm unsure on how to get the structure to actually generate. I have done the
MapGenStructureIO.registerStructure...
and the
StructureVillagePieces.registerVillagePieces();
in my main mod class. But what more do I have to do? The vanilla structures are generated in ChunkProviderGenerate.class from what I understand, how do I get my structure to spawn? Would InitMapGenEvent help with this? If so, how do I use it properly?
EDIT: I created a custom world type, so things work now. I have a new question though, about these two fields in MapGenVillage:
this.field_82665_g = 32;
this.field_82666_h = 8;
Anyone knows what these do? I think the first one has something to do with distance to other villages, but I'm not sure about the other one.