le le structure

This commit is contained in:
polyvus 2026-07-03 15:30:26 +02:00 committed by GitHub
parent 2e6a2d9f1d
commit b5faf15c5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -239,6 +239,11 @@ public class NTMWorldGenerator implements IWorldGenerator {
structure = new JigsawPiece("NTMRuinsJ", StructureManager.ntmruinsJ, -1) {{conformToTerrain = true;}};
spawnWeight = StructureConfig.enableRuins ? StructureConfig.ruinsJSpawnWeight : 0;
}});
NBTStructure.registerStructure(0, new SpawnCondition("tower_base") {{
canSpawn = biome -> biome.heightVariation <= 0.3F && !isInvalidBiome(biome);
structure = new JigsawPiece("tower_base", StructureManager.tower_base, -6);
spawnWeight = StructureConfig.towerBaseSpawnWeight;
}});
NBTStructure.registerNullWeight(0, StructureConfig.plainsNullWeight, biome -> biome == BiomeGenBase.plains);
NBTStructure.registerNullWeight(0, StructureConfig.oceanNullWeight, biome -> BiomeDictionary.isBiomeOfType(biome, Type.OCEAN));