Creating a Custom Dimension

There are only three dimensions in Minecraft, and adding a custom one can make a mod very interesting and large. However, for a dimension, you need a lot of code.

The mod class code required for a custom dimension should look like this:

public static int dimension = 5;DimensionManager.registerProviderType(dimension, WorldProviderExample.class, false);DimensionManager.registerDimension(dimension, dimension);

It is suggested to make the dimension ID configurable for compatibility with other mods.


The WorldProvider contains several important settings for your dimension. Mainly, it sets the WorldChunkManager, which is a class that mostly handles biomes. In this case, ...

Get Minecraft™ Mod Development in 24 Hours, Sams Teach Yourself now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.