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

Started by garfieeeeld on

Topic category: Help with modding (Java Edition)

Last seen on 19:06, 7. Apr 2024
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

Last seen on 13:54, 28. Apr 2024
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.)