Jump to content

Recommended Posts

Posted (edited)

Hi,

There is a way to create multiple worlds from a dimension? Like when a player connect to server, i have to create a new world from my custom dimension. What is common within these worlds is the dimension which is the same. I actually have my custom dimension with the new json system

Edited by Forix
Posted

I would say don't do that and just register multiple dimensions. Each 'world' is a dimension, so having multiple 'world' with the same dimension qualifier will make it problematic to handle when saving or loading data. However, you can have two JSONs holding the same information under different dimension names.

Posted
18 minutes ago, Forix said:

Ok so, it's possible to dynamically register new dimensions by creating new json dimension file while the server is running?

You cannot dynamically register new dimension within JSON. I think I'm going to need a clearer goal of the task at hand. What are you trying to accomplish on the user end?

Posted

i'm actually creating a skyblock mod. the user have to type in the tchat a command to create his island. Each player have is own island, and the thing what i want to do is that each island is in his own dimension

Posted
2 hours ago, Forix said:

i'm actually creating a skyblock mod. the user have to type in the tchat a command to create his island. Each player have is own island, and the thing what i want to do is that each island is in his own dimension

Ah ok. Well, that would be quite complicated. You would need to create a new key for every dimension you create and store them somewhere for easy access. You would also need to construct the ServerWorld, add a world border listener, update the world cache, and send a packet to the player with the required information. This also requires ejecting players from broken worlds or proper teleportation when needed. There are about a hundred other checks that are also necessary. Although, a question I might ask is that why make this a mod? This seems like more a server plugin.

Posted

i'm doing this mod for a modded minecraft server. I know that there is things which can support both mods and plugin like magma, but we want to use only mods without plugins.

Posted
8 minutes ago, Forix said:

You know in 1.15 it was so much easier with the DimensionManager class

Well, yes. Now there's a bunch of new caveats. If you really want to attempt this, a similar mod named Hyperbox by Commoble accomplished this. That's probably the best I can do as the process of actually handling is quite complicated and problematic at times.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.