Merge pull request #2404 from Lazzzycatwastaken/forestchem

Forest chemical station
This commit is contained in:
HbmMods 2025-08-31 13:12:07 +02:00 committed by GitHub
commit f005680cc1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

View File

@ -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"));

View File

@ -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);