minDistToSpawnForGeneration ignored for village structures
XombyCraft opened this issue ยท 5 comments
in reccomplex.cfg, minDistToSpawnForGeneration seems to be ignored in game.
I can create and re-create any seed where the user spawns in a village, and there's ALWAYS a RC building there, despite setting minDistToSpawnForGeneration=480.0
MC 1.7.10, RC 0.9.6.3
I see. That's kind of disappointing, to be honest. I was hoping to save the RC village buildings as wow-factor for mid-game exploration (by limiting them in village spawns to be very very far away).
So I'd have to set village gen to 0, pregen a substantial portion of the world, then set it back to defaults to make this work.
I don't suppose you're considering "fixing" this overriding? Or is it just one of those stupid village things?
I kept this open because I want to implement a fix to this. I can understand your request - although you have to understand I added the minDistToSpawn option mostly so other structures don't accidentally override the spawn ( / spawn structure). I'm still contemplating on what's the best course of action here :)
I apologize if I came across as one of those assholes that just stamps their feet and yells about something. I didn't mean it that way, at all.
Please let me know if I can be of any help in testing.
It would make sense if the village buildings also checked minDistToSpawn as well, though. Yes, if you had a village on the outskirts of minDistToSpawn you may end up with an RC building or two on the outer edge... but us server owners (at least those that sort of plan ahead on things that will keep players occupied mid-end game) just use these "min distance from spawn" type settings as a general "rule of thumb" distance, to keep the really neat goodies away from players until they get established a bit, so I doubt anyone would be too irate if something showed up RIGHT on the minDistToSpawn mark, regardless of if the village sprawled 300 blocks in each direction.
that is because village generation overrides the distance limitation. if you disable RC buildings spawning in villages (setting weight to 0 should) then it should work as inteneded
Alright, proposed solution: minDistToSpawnForVillages as a separate option that does essentially the same for ReC in villages.
The only problem I have is that upon structure determination on villages, I am passed nothing contextual but the biome type. I can neither determine what dimension the village wants to spawn in, nor where the current spawn point is in relation to the given position.
There are 2 or 3 very hacky approaches I could take, but that usually just ends in tears. For the moment I'll wait this out in hopes for changes in the API - probably 1.8 forwards.