I'm working on a mod that needs to manipulate structures after they generate. (I'm adding something that is NOT procedurally generated, it must have a 100% chance of spawning and can only spawn once).
I've successfully done this for villages/mineshafts/strongholds but my method is extremely hacky. I capture the mapgen then test each chunk as it's generated if a specific structure can spawn there and get a bounding box for where it would spawn. This seems to work well but it's not clean at all and I'm not really happy with it. I'm wondering if there is a better way to do this?
I apologize if this has been mentioned before I've been unable to find anything and even asked in IRC a couple weeks ago and diesieben07 suggested I'd have to hack something together.
Thanks for any help.