Place block in dimension other than the current one, same coordinates

Started by dna337 on

Topic category: Help with modding (Java Edition)

Last seen on 19:01, 14. Apr 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Place block in dimension other than the current one, same coordinates
Sun, 01/21/2024 - 18:58 (edited)

I'm working on a mod that adds new dimensions. Instead of the traditional portal, there's a block called a "Portal Hub" that allows you to select a portal block to place above it.

https://imgur.com/a/ceu8rAE

The portal block above has a custom procedure that teleports the player to the other dimension, then places a Portal Hub block under the player, so they'll be able to easily teleport back. Unfortunately, my code is not working. Here is my procedure, which is activated whenever the player touches the custom portal block.

https://imgur.com/a/sX1xDIb

Read the comments on the blocks for more information.

Edited by dna337 on Sun, 01/21/2024 - 18:58
Last seen on 20:32, 15. Oct 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This might work. In the…
Sun, 01/21/2024 - 18:57

This might work. In the dimension element, there is a trigger called when player enters dimension. When they enter place the portal block. I think this is what you are trying to do, if not let me know.

Last seen on 19:01, 14. Apr 2024
Joined Aug 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@AwesomeCoderDude Thank you,…
Sun, 01/21/2024 - 19:25

@AwesomeCoderDude Thank you, this is exactly what I was looking for! The solution was much simpler than I thought.

Last seen on 20:32, 15. Oct 2024
Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
No problem! I know what it…
Sun, 01/21/2024 - 20:01

No problem! I know what it is like to design something and have it not work. Let me know if you need any more help!