How to Create and Render a Client-Side World #4075
Unanswered
zkhssb
asked this question in
Mod Dev Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I am developing a fabric-mod for version 1.20.4, and I want to make the TitleScreen more engaging by rendering players in a client-side world (similar to Minecraft: Dungeons):
My general idea is:
Create a world that exists only on the client side
Then I tried to create a world and have the client load it after the
MinecraftClient.onFinishedLoading
method is called:But I ran into trouble...
networkHandler
is not initialized at this point, so I can't create a world, and the final result of the code isNullPointerException
The call to
ClientBackgroundWorld
threw an exception when calling its superclass method, and I think my approach to creating the world is entirely wrong ;-;So... I don't know how to create a world that exists only on the client side and how to load the structures.
I seek the assistance of experienced developers to provide some guidance!
Beta Was this translation helpful? Give feedback.
All reactions