diff --git a/src/main/java/com/hbm/main/StructureManager.java b/src/main/java/com/hbm/main/StructureManager.java index ff4736656..3e16f4011 100644 --- a/src/main/java/com/hbm/main/StructureManager.java +++ b/src/main/java/com/hbm/main/StructureManager.java @@ -79,10 +79,10 @@ public class StructureManager { public static final NBTStructure forest_post = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/forest_post.nbt")); + public static final NBTStructure forest_chem = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/forest_chem.nbt")); public static final NBTStructure plane1 = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/crashed_plane_1.nbt")); public static final NBTStructure plane2 = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/crashed_plane_2.nbt")); - public static final NBTStructure spire = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/spire.nbt")); // public static final NBTStructure test_rot = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/test-rot.nbt")); diff --git a/src/main/java/com/hbm/world/gen/NTMWorldGenerator.java b/src/main/java/com/hbm/world/gen/NTMWorldGenerator.java index 113d32e7b..9bd8954da 100644 --- a/src/main/java/com/hbm/world/gen/NTMWorldGenerator.java +++ b/src/main/java/com/hbm/world/gen/NTMWorldGenerator.java @@ -112,6 +112,11 @@ public class NTMWorldGenerator implements IWorldGenerator { spawnWeight = 1; }}); + NBTStructure.registerStructure(0, new SpawnCondition("forestchem") {{ + canSpawn = biome -> biome == BiomeGenBase.forest; + structure = new JigsawPiece("forest_chem", StructureManager.forest_chem, -9); + spawnWeight = 50; + }}); NBTStructure.registerStructure(0, new SpawnCondition("plane1") {{ canSpawn = biome -> biome == BiomeGenBase.forest || biome == BiomeGenBase.plains; structure = new JigsawPiece("crashed_plane_1", StructureManager.plane1, -5); diff --git a/src/main/resources/assets/hbm/structures/forest_chem.nbt b/src/main/resources/assets/hbm/structures/forest_chem.nbt new file mode 100644 index 000000000..0b9b4d810 Binary files /dev/null and b/src/main/resources/assets/hbm/structures/forest_chem.nbt differ