From 6a1628fd349659f4a05b19f82c41984aa1cd58ff Mon Sep 17 00:00:00 2001 From: NewJumper Date: Wed, 6 Nov 2024 17:55:28 -0300 Subject: [PATCH] made a separate resource location for otherside dimension effects fixes #386 --- .../generated/data/deeperdarker/dimension_type/otherside.json | 2 +- .../deeperdarker/world/otherside/OthersideDimension.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/generated/data/deeperdarker/dimension_type/otherside.json b/src/main/generated/data/deeperdarker/dimension_type/otherside.json index 80e44eda9..2ca3fa2f5 100644 --- a/src/main/generated/data/deeperdarker/dimension_type/otherside.json +++ b/src/main/generated/data/deeperdarker/dimension_type/otherside.json @@ -2,7 +2,7 @@ "ambient_light": 0.05, "bed_works": true, "coordinate_scale": 1.0, - "effects": "minecraft:the_nether", + "effects": "deeperdarker:otherside_effects", "fixed_time": 18000, "has_ceiling": true, "has_raids": false, diff --git a/src/main/java/com/kyanite/deeperdarker/world/otherside/OthersideDimension.java b/src/main/java/com/kyanite/deeperdarker/world/otherside/OthersideDimension.java index d95203128..6ead7b5de 100644 --- a/src/main/java/com/kyanite/deeperdarker/world/otherside/OthersideDimension.java +++ b/src/main/java/com/kyanite/deeperdarker/world/otherside/OthersideDimension.java @@ -8,7 +8,6 @@ import net.minecraft.resources.ResourceLocation; import net.minecraft.util.valueproviders.ConstantInt; import net.minecraft.world.level.Level; -import net.minecraft.world.level.dimension.BuiltinDimensionTypes; import net.minecraft.world.level.dimension.DimensionType; import java.util.OptionalLong; @@ -16,8 +15,9 @@ public class OthersideDimension { public static final ResourceKey OTHERSIDE_LEVEL = ResourceKey.create(Registries.DIMENSION, new ResourceLocation(DeeperDarker.MOD_ID, "otherside")); public static final ResourceKey OTHERSIDE = ResourceKey.create(Registries.DIMENSION_TYPE, new ResourceLocation(DeeperDarker.MOD_ID, "otherside")); + public static final ResourceLocation OTHERSIDE_EFFECTS = new ResourceLocation(DeeperDarker.MOD_ID, "otherside_effects"); public static void bootstrap(BootstapContext context) { - context.register(OTHERSIDE, new DimensionType(OptionalLong.of(18000L), false, true, false, true, 1, true, false, 0, 128, 128, DDTags.Blocks.INFINIBURN_OTHERSIDE, BuiltinDimensionTypes.NETHER_EFFECTS, 0.05f, new DimensionType.MonsterSettings(true, false, ConstantInt.of(7), 15))); + context.register(OTHERSIDE, new DimensionType(OptionalLong.of(18000L), false, true, false, true, 1, true, false, 0, 128, 128, DDTags.Blocks.INFINIBURN_OTHERSIDE, OTHERSIDE_EFFECTS, 0.05f, new DimensionType.MonsterSettings(true, false, ConstantInt.of(7), 15))); } } \ No newline at end of file