Reading a dimension's ID

Started by Ima-builder on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Reading a dimension's ID

I made a mod with a teleporter item in it in 2020.2 , I am trying to update the mod to 1.16.5, but I am having an issue with dimension IDs.

When you would set a destination it would save the ID of the dimension you where in and then when you wanted to teleport check to make sure you where in the same dimension.

The issue I am having now is that I can't figure out what type of output the "Get dimension ID of provided world" and "ID of dimension ## is in" blocks give, I would assume it should be numbers, but that doesn't work

The only thing I could find about my issue was was the change log saying "Dimension ID and dimension comparison procedures may need to be redone in some cases"

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I figured it out, they…
Wed, 06/16/2021 - 00:28

I figured it out, they output text now, but to use them as text you need to put it on a create text with block.

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
emm,so could you tell me how…
Tue, 10/03/2023 - 14:18

emm,so could you tell me how to send player to a dimension which is created by other mod?