Jump to content

[1.19.1] Spawn structure where you spawn in the Dimension


Feroov

Recommended Posts

Basically I have a custom dimension with a custom biome, I currently don't use a traditional portal but a normal block that is like a teleporter (teleports on right click) I wanted to know how can I make one of my structures spawn on the location where player spawns when I switch dimensions. Or to put in another words you know how in nether a portal spawns inside nether when you enter nether, that "portal" would be a custom structure instead. I hope I did explain it well. I apologize for confusion 

Link to comment
Share on other sites

Subscribe to PlayerChangedDimensionEvent, inside there you can place the Structure.
The Event is only fired on server so you can get the Level via the Server and the given ResourceKey.
You can take a look at the place command for how  you place a structure.

How larger is the structure? Since if this is not so larger  you could also use a feature.

Link to comment
Share on other sites

26 minutes ago, Luis_ST said:

Subscribe to PlayerChangedDimensionEvent, inside there you can place the Structure.
The Event is only fired on server so you can get the Level via the Server and the given ResourceKey.
You can take a look at the place command for how  you place a structure.

How larger is the structure? Since if this is not so larger  you could also use a feature.

Yeah mine isn't too big, it's small (like a custom portal enterance some sorts), I'll take a look over this thank you I appreciate it 😁

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.