How to make switches to different worlds?

Hello!

I’m developing a Sponge-based mod. Among other things, I want to implement the following:

This is the entry point world. The rectangles P1-P3 are “portals” - using them, the user can switch to other worlds, which represent places from my novel (e. g. a castle, a village, a place inside a building etc.).

The entry point world allows the user to walk around and get an overview of the world of my novel. If he or she is interested in some aspect, then the portals can be used to explore a part of the world in greater detail.

Question: How can I implement this switching to different worlds technically?

One option would be to creat a giant map, subdivide it into regions (each of which corresponds to a particular place, i. e. one for P1, one for P2 etc.) and set up portals so that if the user enters the portal, he or she is teleported to the respective part of the map.

Are there any other options?

Thanks

Dmitri Pisarenko

You could use a multiworld plugin + a portal/teleportation plugin to achieve this. Usually teleportation plugins (like BLWarps or ProjectPortals) can teleport players when

  • entering a command in chat
  • stepping on a pressureplate
  • clicking a sign
  • entering a specific region of the world (this can be a “portal” too)

Both plugins can teleport you to a different world or a location on the same world. That’s just a matter of preference :wink:

1 Like

Tzk, many thanks for your response.

Does any of these options work in a multiplayer setting (several users walk around the world and teleport themselves to different worlds/locations) ?

Thanks

Dmitri

Yes. just like a normal portal it teleports the player (and only this player) which entered the portal. Same for signs, plates etc.

1 Like