Villages problem.
demon-goxa opened this issue ยท 6 comments
Im using Realistic World Generation in my modpack and decided to disable villages at all.
allBiomes = forAllBiomes()
allBiomes.set("genVillages", false)
This script doesnt effect. Nothing happens. They generating in same biomes and not generating everythere if set True. Is it a bug?
oh and version is 128
i guess its conflict with rwg, is it possible to disable villages?
Please try with the latest dev version to see if the issue still persists. I would expect it does, but just to make sure.
Yes it does. =( I reeeally need a solution for villages. Compatibility with RWG is very requered
I found the issue. It's in a method called areBiomesViable
. The village generator uses to check if it should generate. In Vanilla, the method goes something like this
public boolean areBiomesViable(int p_76940_1_, int p_76940_2_, int p_76940_3_, List p_76940_4_)
{
IntCache.resetIntCache();
int l = p_76940_1_ - p_76940_3_ >> 2;
int i1 = p_76940_2_ - p_76940_3_ >> 2;
int j1 = p_76940_1_ + p_76940_3_ >> 2;
int k1 = p_76940_2_ + p_76940_3_ >> 2;
int l1 = j1 - l + 1;
int i2 = k1 - i1 + 1;
int[] aint = this.genBiomes.getInts(l, i1, l1, i2);
try
{
for (int j2 = 0; j2 < l1 * i2; ++j2)
{
BiomeGenBase biomegenbase = BiomeGenBase.getBiome(aint[j2]);
if (!p_76940_4_.contains(biomegenbase))
{
return false;
}
}
return true;
}
catch (Throwable throwable)
{
// Omitted
}
}
In RWG, it goes something like this (although that repo is far out of date). There's no feasible way to fix this on my end, considering I don't have access to updated source code. You need to ask @ted80 to implement it correctly.
The only other terrain mod I know is Alternate Terrain Generation by TTFTCUTS. I'm not sure what is and what isn't compatible.