Dimension ID list | Write here the ID of your dimension!

Started by RaolTheBest on Fri, 05/31/2019 - 19:26

Topic category: Advanced modding

Last seen on 08:23, 20. Jun 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Dimension ID list | Write here the ID of your dimension!
Sat, 06/15/2019 - 16:56 (edited)

In MCreator 1.9.0, it will be possible to change the ID of dimensions.

To not cause conflicts between mods, I thought it would be a good idea to make a list of all the dimension IDs uses by the MCreator mods, so when adding a new dimension you can see here if there is any free dimension ID. This list will also include some non-Mcreator dimensions ids.

If you decide to add a new dimension to your mod, and want it to be compatible with other mods, please check this list. Try to not use simple numbers (little ones or round ones) because it's very likely that they are already used by many mods.

You can comment here and your dimension ID will be added.

This page was made on a mobile and will be reformatted when I will be in front of my computer.

 

Normal means this dimension was added by an Mcreator mod

Bold means this dimension was added by Vanilla Minecraft

Italic means this dimension was added by a non-Mcreator mod (it seems that some of these mods have dynamic IDs that change when they find a conflicting ID)

 

-17 | Oh The Biomes You'll Go | Evergardens

-5 | Oh The Biomes You'll Go | Abyss

-1 | Minecraft | Nether

0 | Minecraft | Overworld

1 | Minecraft | End

4 | Gigano's Addition Mod | Ultimamagica

7 | The Twilight Forest | Twilight Forest

15 | Oh The Biomes You'll Go | Stellaris

20 | The Betweenlands | The Betweenlands

1024 | Chaotica | Wintermint

1025 | Chaotica | Peppermint

1026 | Chaotica | Spearmint

1027 | Chaotica | Chaotica

1028 | Chaotica | Cinnamon

Edited by RaolTheBest on Sat, 06/15/2019 - 16:56
Last seen on 09:57, 20. Jun 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
Nice idea. I have moved this…
Sat, 06/01/2019 - 15:14

Nice idea. I have moved this to Advanced modding and pinned this topic.

Last seen on 08:23, 20. Jun 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Thank you :D
Sat, 06/01/2019 - 17:53

Thank you :D

Last seen on 10:28, 20. Jun 2019
Joined Nov 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
4-ultimamagica add to list…
Sun, 06/09/2019 - 19:44

4-ultimamagica

add to list pls

 

Last seen on 22:28, 19. Jun 2019
Joined Jul 2018
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Chaotica Dimensions: …
Sun, 06/09/2019 - 20:43

Chaotica Dimensions: 
Wintermint = 1024
Peppermint = 1025
Spearmint = 1026
Chaotica = 1027
Cinnamon = 1028

Last seen on 07:40, 20. Jun 2019
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Stellaris = 15 Abyss= -5…
Sun, 06/09/2019 - 23:23

Stellaris = 15

Abyss= -5

Evergardens = -17

 

Last seen on 08:23, 20. Jun 2019
Joined Jun 2016
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Is ultramagica a mod or a…
Mon, 06/10/2019 - 10:25

Is ultramagica a mod or a dimension?

Last seen on 06:40, 20. Jun 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
Even better would be if…
Mon, 06/10/2019 - 20:51

Even better would be if MCreator used a method like this to dynamically find a free ID (And yes, you can also implement it by yourself so your mods are compatible dimensions of any other mod no matter what. Just replace the id parameter in DimensionManager.registerDimension()).

 

@Nullable
	public static Integer findFreeDimensionID() {
		for (int i = 2; i < Integer.MAX_VALUE; i++) {
			if (!DimensionManager.isDimensionRegistered(i)) {
				System.out.println("Found free dimension ID = " + i);
				return i;
			}
		}
		System.out.println("Could not find a free dimension ID");
		return null;
	}

 

Last seen on 09:57, 20. Jun 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
Nuparu00, the issue with…
Tue, 06/11/2019 - 18:04

Nuparu00, the issue with this approach is that if the user adds another mod with this approach, current dimension ID of existing dimensions can change on existing worlds. For example, mod A found free ID 3, but then user installed mod B who happens to register his dimension as 3, so mod A then uses ID 4, but mod A already has dimension under ID 3 stored in the existing world saves and these dimensions now belong to mod B.

Or am I missing something?

Last seen on 06:40, 20. Jun 2019
Joined Aug 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
As far as I know (and as my…
Tue, 06/11/2019 - 23:07

As far as I know (and as my testing showed), the id does not seem to have any role in the saves, as the string name (and possibly also the suffix) that is passed in DimensionType is used instead, so I guess that the id works more like a way to identify the dimensions in a one session.

What could possibly happen is that the mod that uses the recommended way of finding id finds the id 3, because it is really free, and then is loaded another mod that tries to register a hardcoded id 3, which would result in a conflict and a crash.

Last seen on 09:57, 20. Jun 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
I will do some testing to…
Wed, 06/12/2019 - 14:02

I will do some testing to see how this will perform and possibly completely eliminate the need to define dimension IDs in that case. Thanks for the idea and info!