I'm trying to test out how my villages and structures fill down and how the roads path across a landscape and some new villager AI I'm tinkering with. You get a lot of villages in superflat, but that doesn't really show me anything that I need. I need to generate villages in a normal world.
I've already added a bunch of biomes to villageSpawnBiomes but what I really need is to change the frequency of village spawns, so that they are much more common so that I don't spend ages trying to even locate a village in a standard world.
Here's what happened when I started messing with the code - this is NOT what I am looking for (but pretty bizarre - MC's memory was soaring!). Suggestions on how to more frequently spawn a village would be appreciated.
Rollback Post to RevisionRollBack
No, I will not subscribe to your channel because you asked... but I might if it's *good*.
lol I accidentally reproduced his second picture, it is hilarious xD Essentially it's spawning a village on a village on a village on a village. On another village. On a village on a village.
Is that what you were aiming for? With it being stone brick?
Yeah, for now. I'd prefer it pick up an appropriate block based on the current biome (e.g. mossy cobble in swamps, sandstone in deserts, etc). Will figure out how to make it do that I'm sure.
Rollback Post to RevisionRollBack
No, I will not subscribe to your channel because you asked... but I might if it's *good*.
lol I accidentally reproduced his second picture, it is hilarious xD Essentially it's spawning a village on a village on a village on a village. On another village. On a village on a village.
For 1Chain1_TDM_Fan and any future posters I can tell you what you need to change; in MapGenVillage there are two variables that set the minimum and maximum distance between villages, set to 8 and 32 by default and normally only changeable in Superflat, even 1.8's Customized world type doesn't let you change them for some bizarre reason (you can possibly use Superflat to test a village mod without changing these values in the code, changing the biome ID to any custom biomes you use).
Here are the values you want to change; the code applies to every version between at least 1.6.4 and 1.8 (in 1.7 and later you have to look though a series of subfolders to find the class in \world\gen\structure):
public MapGenVillage()
{
this.field_82665_g = 32; // Maximum distance in chunks between villages
this.field_82666_h = 8; // Minimum distance in chunks between villages
}
Note: The maximum distance MUST be at least one greater than the minimum distance or the game will crash; this is why Superflat limits you to a minimum of 9 (you can also change the minimum distance but if you make it too low two separate villages can overlap).
In addition, to change the default size you can change the value of "this.terrainType", which is 0 by default, 1 for Superflat worlds, or even assign a random number to it when canSpawnStructureAtCoords() is called to increase the size variation.
Now, I won't tell you how to modify this unless you are just using MCP (for which it is extremely easy; just edit the values and recompile/reobfuscate and put it into the jar; in fact, I can even edit the values with Java Bytecode Editor since it contains the string "village", making the obfuscated class easy to find; too bad Forge modding isn't that simple).
I've already added a bunch of biomes to villageSpawnBiomes but what I really need is to change the frequency of village spawns, so that they are much more common so that I don't spend ages trying to even locate a village in a standard world.
Here's what happened when I started messing with the code - this is NOT what I am looking for (but pretty bizarre - MC's memory was soaring!). Suggestions on how to more frequently spawn a village would be appreciated.
lol I accidentally reproduced his second picture, it is hilarious xD Essentially it's spawning a village on a village on a village on a village. On another village. On a village on a village.
Quite entertaining to be truthful.
funny, it's exactly what it is (with stone brick). Spawned through a village somehow
Is that what you were aiming for? With it being stone brick?
How did you guys do this? I want in
Yes I would like to know too. And I would like to know how to get the code in.
Nice necro post dude. Wherever it is, chances are it's changed a LOT in the three years since this was done
Here are the values you want to change; the code applies to every version between at least 1.6.4 and 1.8 (in 1.7 and later you have to look though a series of subfolders to find the class in \world\gen\structure):
Note: The maximum distance MUST be at least one greater than the minimum distance or the game will crash; this is why Superflat limits you to a minimum of 9 (you can also change the minimum distance but if you make it too low two separate villages can overlap).
In addition, to change the default size you can change the value of "this.terrainType", which is 0 by default, 1 for Superflat worlds, or even assign a random number to it when canSpawnStructureAtCoords() is called to increase the size variation.
Now, I won't tell you how to modify this unless you are just using MCP (for which it is extremely easy; just edit the values and recompile/reobfuscate and put it into the jar; in fact, I can even edit the values with Java Bytecode Editor since it contains the string "village", making the obfuscated class easy to find; too bad Forge modding isn't that simple).
TheMasterCaver's First World - possibly the most caved-out world in Minecraft history - includes world download.
TheMasterCaver's World - my own version of Minecraft largely based on my views of how the game should have evolved since 1.6.4.
Why do I still play in 1.6.4?