Skip to content

Commit

Permalink
made a separate resource location for otherside dimension effects
Browse files Browse the repository at this point in the history
fixes #386
  • Loading branch information
NewJumper authored and Pedro270707 committed Nov 26, 2024
1 parent 7443a78 commit 6a1628f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
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;

public class OthersideDimension {
public static final ResourceKey<Level> OTHERSIDE_LEVEL = ResourceKey.create(Registries.DIMENSION, new ResourceLocation(DeeperDarker.MOD_ID, "otherside"));
public static final ResourceKey<DimensionType> 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<DimensionType> 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)));
}
}

0 comments on commit 6a1628f

Please sign in to comment.