mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Sunken Aircraft Carrier structure added.
This commit is contained in:
parent
07618f6a60
commit
7ae8693841
@ -56,10 +56,10 @@ public class StructureManager {
|
||||
|
||||
public static final NBTStructure vertibird = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/vertibird.nbt"));
|
||||
public static final NBTStructure crashed_vertibird = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/crashed-vertibird.nbt"));
|
||||
|
||||
public static final NBTStructure aircraft = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/AircraftCarrier.nbt"));
|
||||
// public static final NBTStructure test_rot = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/test-rot.nbt"));
|
||||
// public static final NBTStructure test_jigsaw = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/test-jigsaw.nbt"));
|
||||
// public static final NBTStructure test_jigsaw_core = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/test-jigsaw-core.nbt"));
|
||||
// public static final NBTStructure test_jigsaw_hall = new NBTStructure(new ResourceLocation(RefStrings.MODID, "structures/test-jigsaw-hall.nbt"));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -36,6 +36,7 @@ public class NTMWorldGenerator implements IWorldGenerator {
|
||||
|
||||
public NTMWorldGenerator() {
|
||||
final List<BiomeGenBase> invalidBiomes = Arrays.asList(new BiomeGenBase[] {BiomeGenBase.ocean, BiomeGenBase.river, BiomeGenBase.frozenOcean, BiomeGenBase.frozenRiver, BiomeGenBase.deepOcean});
|
||||
final List<BiomeGenBase> oceanBiomes = Arrays.asList(new BiomeGenBase[] { BiomeGenBase.ocean, BiomeGenBase.deepOcean });
|
||||
|
||||
NBTStructure.registerStructure(0, new SpawnCondition() {{
|
||||
canSpawn = biome -> !invalidBiomes.contains(biome);
|
||||
@ -61,6 +62,13 @@ public class NTMWorldGenerator implements IWorldGenerator {
|
||||
spawnWeight = 3 * 4;
|
||||
}});
|
||||
|
||||
NBTStructure.registerStructure(0, new SpawnCondition() {{
|
||||
canSpawn = oceanBiomes::contains;
|
||||
structure = new JigsawPiece("aircraft", StructureManager.aircraft);
|
||||
maxHeight = 46;
|
||||
spawnWeight = 75 * 5;
|
||||
}});
|
||||
|
||||
Map<Block, BlockSelector> bricks = new HashMap<Block, BlockSelector>() {{
|
||||
put(ModBlocks.meteor_brick, new MeteorBricks());
|
||||
}};
|
||||
@ -201,4 +209,4 @@ public class NTMWorldGenerator implements IWorldGenerator {
|
||||
nbtGen.generateStructures(world, rand, chunkProvider, chunkX, chunkZ);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
BIN
src/main/resources/assets/hbm/structures/AircraftCarrier.nbt
Normal file
BIN
src/main/resources/assets/hbm/structures/AircraftCarrier.nbt
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user