From cd567f23a4d3473ef6a6d2a5f660af314268197f Mon Sep 17 00:00:00 2001 From: 70000hp <105080577+70000hp@users.noreply.github.com> Date: Wed, 22 Jul 2026 12:54:24 -0400 Subject: [PATCH] Update crane_mod.nbt --- .../java/com/hbm/world/gen/NTMWorldGenerator.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/hbm/world/gen/NTMWorldGenerator.java b/src/main/java/com/hbm/world/gen/NTMWorldGenerator.java index 051b11d1e..2c2e79b87 100644 --- a/src/main/java/com/hbm/world/gen/NTMWorldGenerator.java +++ b/src/main/java/com/hbm/world/gen/NTMWorldGenerator.java @@ -34,12 +34,12 @@ import net.minecraftforge.event.world.WorldEvent; public class NTMWorldGenerator implements IWorldGenerator { boolean regTest = false; - + /** Includes all biomes tagged as ocean or river */ public static boolean isWaterBiome(BiomeGenBase biome) { return BiomeDictionary.isBiomeOfType(biome, Type.WATER); } - + /** Includes biomes with little height variation and sparse vegetation, excludes water biomes */ public static boolean isFlatBiome(BiomeGenBase biome) { return biome.heightVariation <= 0.2F && !isWaterBiome(biome) && BiomeDictionary.isBiomeOfType(biome, Type.SPARSE); @@ -144,17 +144,17 @@ public class NTMWorldGenerator implements IWorldGenerator { }}); NBTStructure.registerStructure(0, new SpawnCondition("factory") {{ - canSpawn = biome -> isFlatBiome(biome); + canSpawn = biome -> biome.heightVariation <= 0.2F && !isWaterBiome(biome); structure = new JigsawPiece("factory", StructureManager.factory, -10); spawnWeight = StructureConfig.factorySpawnWeight; }}); NBTStructure.registerStructure(0, new SpawnCondition("crane") {{ - canSpawn = biome -> isFlatBiome(biome); - structure = new JigsawPiece("crane", StructureManager.crane, -9); + canSpawn = biome -> biome.heightVariation <= 0.2F && !isWaterBiome(biome); + structure = new JigsawPiece("crane", StructureManager.crane, -13); spawnWeight = StructureConfig.craneSpawnWeight; }}); - + NBTStructure.registerStructure(0, new SpawnCondition("broadcaster_tower") {{ canSpawn = biome -> isFlatBiome(biome); structure = new JigsawPiece("broadcaster_tower", StructureManager.broadcasting_tower, -9);