Posted January 16, 20214 yr 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 January 16, 20214 yr by Forix
January 17, 20214 yr 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.
January 17, 20214 yr Author Ok so, it's possible to dynamically register new dimensions by creating new json dimension file while the server is running?
January 17, 20214 yr 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?
January 17, 20214 yr Author 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
January 17, 20214 yr 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.
January 18, 20214 yr Author 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.
January 18, 20214 yr 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.