Merge pull request #2400 from Lazzzycatwastaken/Forwetst

Planes (useless edition)
This commit is contained in:
HbmMods 2025-08-31 13:10:51 +02:00 committed by GitHub
commit 2f12549464
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 16 additions and 0 deletions

View File

@ -79,6 +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 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,18 @@ public class NTMWorldGenerator implements IWorldGenerator {
spawnWeight = 1;
}});
NBTStructure.registerStructure(0, new SpawnCondition("plane1") {{
canSpawn = biome -> biome == BiomeGenBase.forest || biome == BiomeGenBase.plains;
structure = new JigsawPiece("crashed_plane_1", StructureManager.plane1, -5);
spawnWeight = 50;
}});
NBTStructure.registerStructure(0, new SpawnCondition("plane2") {{
canSpawn = biome -> biome == BiomeGenBase.forest || biome == BiomeGenBase.plains;
structure = new JigsawPiece("crashed_plane_2", StructureManager.plane2, -8);
spawnWeight = 50;
}});
NBTStructure.registerStructure(0, new SpawnCondition("desert_shack_1") {{
canSpawn = biome -> biome == BiomeGenBase.desert;
structure = new JigsawPiece("desert_shack_1", StructureManager.desert_shack_1, -7);