I'm wondering if there's a way to run a command when someone joins a Single player world, I'm a upcoming map maker and I making my first map, I have lots of experience with Redstone but never got this far before. Currently I have different modes like: Extreme Mode, Easy Mode.

Back to the point, I need to know this because I want the player to get teleported when they join, Essentially if the player played before, And is 'far' into the map to go back to the start. I'm also making the map fully customizable with the ability to make the player die when they touch a certain block, And get their spawn point set when they touch another certain block, I've been working on this for 8 hours straight. So please answer asap.

  • 5
    Does this answer your question? Run command whenever someone joins a Minecraft server
    – Oast
    Dec 6 '21 at 15:11
  • 2
    I suggest you take our tour to understand how things work here. The whole site is moderated by trusted users.
    – pinckerman
    Dec 6 '21 at 15:13
  • 1
    Oast that doesn't work, I've tried it before and all it did was continue to teleport me to the location I have specified. I did ALL of them
    – 8572
    Dec 7 '21 at 19:32

Welcome to the arqade!

Loading a singleplayer world isn't any different from joining a multiplayer server (This is why you see a "Joining Game" message in SP). Hence, this solution also works for you. Tested in 1.18.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.