Reading a dimension's ID

Started by Ima-builder on Tue, 06/15/2021 - 05:30

Topic category: Help with modding (Java Edition)

Last seen on 04:34, 21. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Reading a dimension's ID
Tue, 06/15/2021 - 05:30

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"

Last seen on 04:34, 21. Sep 2021
Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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.