Started by
dna337
on
Topic category: Help with modding (Java Edition)
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.
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.
Read the comments on the blocks for more information.
Edited by dna337 on Sun, 01/21/2024 - 18:58
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.
@AwesomeCoderDude Thank you, this is exactly what I was looking for! The solution was much simpler than I thought.
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!