Feroov Posted August 4, 2022 Posted August 4, 2022 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 Quote
Luis_ST Posted August 4, 2022 Posted August 4, 2022 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. Quote
Feroov Posted August 4, 2022 Author Posted August 4, 2022 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 😁 Quote
Luis_ST Posted August 4, 2022 Posted August 4, 2022 You can take a look at the EndGatewayFeature, it's a vanilla example. Quote
Recommended Posts
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.