diff options
3 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java index 0c6cc55b..8c80c7b9 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java @@ -164,6 +164,10 @@ public class NotEnoughUpdates { (new BiomeGenSnow(108, false)) .setColor(16777215) .setBiomeName("NeuGlaciteMineshaft"); + public static final BiomeGenBase glaciteTunnels = + (new BiomeGenSnow(109, false)) + .setColor(16777215) + .setBiomeName("NeuGlaciteTunnels"); private static final long CHAT_MSG_COOLDOWN = 200; //Stolen from Biscut and used for detecting whether in skyblock private static final Set<String> SKYBLOCK_IN_ALL_LANGUAGES = diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/customblockzones/DwarvenMinesTextures.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/customblockzones/DwarvenMinesTextures.java index df437fee..e82fa579 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/customblockzones/DwarvenMinesTextures.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/customblockzones/DwarvenMinesTextures.java @@ -28,10 +28,12 @@ import io.github.moulberry.notenoughupdates.autosubscribe.NEUAutoSubscribe; import net.minecraft.block.state.IBlockState; import net.minecraft.client.Minecraft; import net.minecraft.init.Blocks; +import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.util.MathHelper; import net.minecraft.util.ResourceLocation; +import net.minecraft.util.Vec3; import net.minecraft.world.ChunkCoordIntPair; import java.io.BufferedReader; @@ -163,8 +165,13 @@ public class DwarvenMinesTextures implements IslandZoneSubdivider { } } + // Tunnels coords + // 130 -50 185 + // -130 180 480 @Override public SpecialBlockZone getSpecialZoneForBlock(String location, BlockPos pos) { + AxisAlignedBB axisAlignedBB = new AxisAlignedBB(130, -50, 185, -130, 180, 480); + if (axisAlignedBB.isVecInside(new Vec3(pos))) return SpecialBlockZone.GLACITE_TUNNELS; if (error) return null; IBlockState block = getBlock(pos); boolean isTitanium = isTitanium(block); diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/customblockzones/SpecialBlockZone.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/customblockzones/SpecialBlockZone.java index 1393dd13..8b6af751 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/customblockzones/SpecialBlockZone.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/customblockzones/SpecialBlockZone.java @@ -33,6 +33,7 @@ public enum SpecialBlockZone { CRYSTAL_HOLLOWS_PRECURSOR_REMNANTS(NotEnoughUpdates.crystalHollowsPrecursorRemnants, true, false, true, false, true), SMOLDERING_TOMB(NotEnoughUpdates.smolderingTomb, false, false, true, false, true), GLACITE_MINESHAFT(NotEnoughUpdates.glaciteMineshaft, true, true, true, true, false), + GLACITE_TUNNELS(NotEnoughUpdates.glaciteTunnels, true, true, true, true, false), NON_SPECIAL_ZONE(null, false, false, false, false, false); private final BiomeGenBase customBiome; |
