Forix Posted January 16, 2021 Share Posted January 16, 2021 (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 January 16, 2021 by Forix Quote Link to comment Share on other sites More sharing options...
ChampionAsh5357 Posted January 17, 2021 Share Posted January 17, 2021 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. Quote Link to comment Share on other sites More sharing options...
Forix Posted January 17, 2021 Author Share Posted January 17, 2021 Ok so, it's possible to dynamically register new dimensions by creating new json dimension file while the server is running? Quote Link to comment Share on other sites More sharing options...
ChampionAsh5357 Posted January 17, 2021 Share Posted January 17, 2021 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? Quote Link to comment Share on other sites More sharing options...
Forix Posted January 17, 2021 Author Share Posted January 17, 2021 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 Quote Link to comment Share on other sites More sharing options...
ChampionAsh5357 Posted January 17, 2021 Share Posted January 17, 2021 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. Quote Link to comment Share on other sites More sharing options...
Forix Posted January 18, 2021 Author Share Posted January 18, 2021 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. Quote Link to comment Share on other sites More sharing options...
Forix Posted January 18, 2021 Author Share Posted January 18, 2021 You know in 1.15 it was so much easier with the DimensionManager class Quote Link to comment Share on other sites More sharing options...
ChampionAsh5357 Posted January 18, 2021 Share Posted January 18, 2021 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. Quote Link to comment Share on other sites More sharing options...
Forix Posted January 18, 2021 Author Share Posted January 18, 2021 Thanks you i'm going to check this Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.