How to make an item teleport to a dimension and makes u return?

Started by garfieeeeld on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make an item teleport to a dimension and makes u return?

I tried with the  Switch dimension but it kills me from fall damage

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Not sure if you mean just,…
Sat, 04/06/2024 - 13:33

Not sure if you mean just, like, random fall damage out of nowhere, or, 'the item teleports you into midair and then you die of fall damage.' If it's a code issue rather than a design issue, you could simply add an 'override fall distance' function to the dimension swapping code. Even still, there's probably going to be other issues. (Say, if there's a solid wall in the dimension you're trying to teleport into.) 

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It just teleported me to the…
Mon, 09/23/2024 - 17:03

It just teleported me to the sames coordinates of the overwold, so the player had a great chance of suffocating. Thanks anyway

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Like the end or nether you…
Tue, 09/24/2024 - 01:15

Like the end or nether you can make a custom structure which you spawn on when you enter. You can either make it like the end so you always tp to set coordinates when entering the dimension or like the nether which spawns a new portal when you enter if theres none nearby. Otherwise depending on your dimension generation type you can make the player tp to something like 0 65 0 every time if its end generation. Nether and overworld are a lot more variable so that ways not really possible for them.