Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.mod.core.init;
- import net.minecraft.core.registries.Registries;
- import net.minecraft.data.worldgen.BootstapContext;
- import net.minecraft.resources.ResourceKey;
- import net.minecraft.tags.BlockTags;
- import net.minecraft.util.valueproviders.UniformInt;
- import net.minecraft.world.level.dimension.BuiltinDimensionTypes;
- import net.minecraft.world.level.dimension.DimensionType;
- import java.util.OptionalLong;
- import static com.dreamlands.core.mod.createKey;
- public class Dimensions {
- public static final ResourceKey<DimensionType> DIMENSION1 = createKey(Registries.DIMENSION_TYPE, "dimension1");
- public static final ResourceKey<DimensionType> DIMENSION2 = createKey(Registries.DIMENSION_TYPE, "dimension2");
- public static void bootstrap(BootstapContext<DimensionType> context) {
- context.register(DIMENSION1, createDimension());
- context.register(DIMENSION2, createDimension());
- }
- private static DimensionType createDimension() {
- return new DimensionType(OptionalLong.empty(), true, false, false, false, 1.0D, false, false, -64, 384, 384, BlockTags.INFINIBURN_OVERWORLD, BuiltinDimensionTypes.OVERWORLD_EFFECTS, 0.0F, new DimensionType.MonsterSettings(false, true, UniformInt.of(0, 7), 0));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement