MyWorlds/ZNPCs/Worldguard for teleportation/player run commands?
Server is a backend server running Paper 1.20.4 on a server network.
I am trying to figure out a way for a command to be run when a player enters an area, failing which I would station an NPC from ZNPCs to right click for the command. I want it to be automatic to increase the immersiveness of the experience.
I have 2 things I want to accomplish for teleportation:
1. Automatically teleport to an area when walking to a specific point to another place within the same dimension, and back when they walk into the area they teleport to.
This is for a spawn where walking into some teleport pads moves the player to specific parts of spawn and back if they walk back on the same area. Doable with Multiverse core but wanting to move away from it.
2. Automatically teleport to an area when walking to a specific point to another place in a different world (e.g from world to world_resource), and back when they walk into the same area they teleported to.
This can be done and has already been setup using Multiverse Core, but I am trying to transition away from it into My_Worlds. Issue is I cannot seem to figure out how their teleport function works.
I have 1 thing I want to accomplish for commands:
1. Have a player run a command when they enter a location, to allow them to enter a dungeon (MythicDungeons), enter a shop inventory, go to a resource world, or any other action of my choice.
I think Worldguard regions does this but I really want a more elegant solution.
Appreciate any advice from experienced owners.
11 Replies
Bump
Bump
worldguard regions support running a command when a player enters it
Otherwise I suppose command blocks or a custom plugin would work if the individual plugin doesn't have a "portal" that can be setup
Oh thanks, I didn't know that
I was gonna have a tutorial where it shoves the player around and then drops them into a hole where they get automatically teleported
But couldn't figure out the teleportation without them doing an action
You can just do tp @a[x=29477,y=2047,z=2047,distance=..5]
X y and z are center coordinates and distance is just distance in this case radius of 5 blocks
Like in a command block?
Yup
Its a selector so pretty much any kind of command execution thingy
Issue is i'm trying to figure out a more elegant plugin based approach that can handle other dimensions too
This works for point to point in a spawn or so but cross dimension is a bit of a problem, I think my_worlds can do that
Currently i'm wondering how to execute a series of events where when a player walks into a "portal" they get sent into a dungeon which is the equivalent of running the command "/md play TutNewplayer". I can't give them the permission to do so at any time as I want them to go through the portal
There has to be a solution out there people have done before, something this obvious should have a solution
Skript :KEK:
I know at least one person in this discord who would shank you for suggesting that but valid(?)
Idk, there is probably a lot of different ways to do it but that (especially if you have skript already installed and stuff) wouldn't be the worst option
Another option for making the tutorial would be typewriter, but it sounds as if ur deep already so idk if switching is the thing
I'm using a plugin called tutorialcreator, it can help shove the player into the mythicdungeon
Thing is outside of being in an active tutorial I cannot figure out how to get people in a specific zone to run a command
This one btw https://discord.com/channels/348681414260293634/1312809566043377664