Started by
DerexXD
on
Topic category: Help with Minecraft modding (Java Edition)
I have a block that takes you to another dimension when right clicked
However, I want to make sure they do not suffocate so I made two add block at the entity position, they both add air
But this is only adding the blocks it to the overworld coordinates, not the new ones in the other dimension. Any help?
the x y and z values in the new dimension should be the same, just make sure the actual procedure is being called in the new dimension and not the overworld
As seph said, you have the call the dimension first, then set it to air.
yes, I'm calling the coordinates after they move dimensions though
Hey Derex. You can do this through:
You wont be teleported to the same coordinates however, but you can if you simply store the player coordinates in NBT tags and teleport the player there, then playing the second procedure.
correction*
Additionally, you might want to delete 4 blocks of air as you are spawned at the vertices of a block and not in the middle. Hope that helps.
ok i'll try that
thanks guys! It worked!