Skip to content

Apply DimensionType on Anvil Instance #2000

Closed Answered by para-dise
para-dise asked this question in Help
Discussion options

You must be logged in to vote

Turns out the solution was

DimensionType fullbright = DimensionType.builder(NamespaceID.from("swagcraft:void"))
                .ambientLight(2.0f)
                .build();

        MinecraftServer.getDimensionTypeManager().addDimension(fullbright);

        return MinecraftServer.getInstanceManager().createInstanceContainer(
                fullbright,
                new AnvilLoader(
                    "maps/" + game.getName()
                )
        );

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by para-dise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant