Use a command block to "Sense" a player in a certain area

Use a command block to "Sense" a player in a certain area - Laundry drying on clothesline near condominium entrance

On my friends and my server, we have a skyblock map. My issue is when somebody joins they spawn above the Void. What I need is for a command block to determine if a player is near the Void and send a redstone signal to another command block that will teleport them to the main island.



Best Answer

What you need is if they "spawn" above void then go to the spot you want to be the spawn point and type in the chat bar /setworldspawn

This will set the worlds spawn to that spot instead of trying to have lots of command blocks

:)




Pictures about "Use a command block to "Sense" a player in a certain area"

Use a command block to "Sense" a player in a certain area - Facade of old residential building near drying laundry
Use a command block to "Sense" a player in a certain area - From below of contemporary high apartment building located in residential district against blue sky
Use a command block to "Sense" a player in a certain area - Facade of aged apartment building with white walls located in green area of town



How do you get a command block to work in a certain area?

How to get a Command Block
  • Enable cheats in your world or Realm settings.
  • Turn on Creative Mode in your world or Realm settings.
  • Open the chat box and enter \u201c/give [your username] command_block\u201d
  • Place the block where you want it.


  • How do you test a player in minecraft in a certain area?

    2. Type the Command
  • Test if Players are within 10 blocks. In this example, we will test to see if there are any players within a 10 block radius with the following command: /testfor @a[r=10] ...
  • Test if Mooshrooms are within 50 blocks. ...
  • Test if Nearest Player is at Level 20 experience.




  • BLOCK BREAKING DETECTION!? -- Command Block Tutorial




    More answers regarding use a command block to "Sense" a player in a certain area

    Answer 2

    Why not just get the Essentials plugin and set the spawn somewhere else? You can use the /setspawn command. This is, of course, assuming you're using Bukkit.

    Answer 3

    Actually, you can just use /setworldspawn and that will make everyone spawn in the same general area.

    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Meruyert Gonullu, Olga Lioncat, Andreea Ch, Andreea Ch