You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Load an empty world somehow
Load the buildings within the TitleScreen area into the empty world
Spawn the player entity at a certain location
Render the camera in front of the player entity
Create a custom Screen and implement all the buttons from the TitleScreen
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 is NullPointerException
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!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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