Spawn in a dimension above the surface

Started by SubwayGarbage on Thu, 04/14/2022 - 21:21

Topic category: Help with modding (Java Edition)

Last seen on 20:34, 29. Jun 2022
Joined Apr 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Spawn in a dimension above the surface
Thu, 04/14/2022 - 21:21

So i have an item that teleports me to a dimension, but it teleports me to Y:5, where is stone. Is there a way to change the Y?

Last seen on 19:18, 4. Jun 2022
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
my Idea is get the worldā€¦
Sat, 05/14/2022 - 00:15

my Idea is get the world hight then go down check is block at ~ ~-1 ~ is solid if it is then get the y and set the spawn at Y to the value otherwise go down