This is a Fabric mod that can:
- Add and remove dimensions when the server is running or when the server is initializing.
- Synchronize dimension info to client when dimension changes if the client has the mod.
- Allow suppressing the "Worlds using Experimental Settings are not supported" warning, through config or code.
For the dynamic dimension functionality, this mod is required on server but not required on client. If the client does not have the mod, the command completion of dimension id will not update if dimension changes.
If you only want the functionality of disabling the warning, this mod is only required on client.
All APIs are in DimensionAPI
class. You can refer to the javadoc.
Dynamically add a new dimension based on a preset.
Example: /dims add_dimension "aaa:ccc" void
Currently, the only built-in preset is void
. Other mods can add presets via the API.
Dynamically add a new dimension. That new dimension's dimension type and chunk generator will be the same as the templateDimension
.
This command only clones the dimension type and world generator. It will not clone the things in world (blocks, entities, ...).
Example: /dims clone_dimension minecraft:overworld "aaa:bbb"
will dynamically add dimension aaa:bbb
whose world generation is the same as the overworld.
Dynamically remove a dimension.
This command will not delete the world saving of that dimension.
Show the dimension config of a dimension. It includes the dimension type id and chunk generator config.
Add this into repositories
maven { url 'https://jitpack.io' }
Add this into dependencies
modApi("com.github.iPortalTeam:DimLib:${dimlib_version}") {
exclude(group: "net.fabricmc.fabric-api")
}