Command Block Help

Command Block Help - Man in Blue Crew Neck T-shirt Holding Brown Short Coated Dog

So, I want to be able to activate a redstone signal using a command block, but from way across the map. How can I do this?



Best Answer

Use /setblock. For example:

The left command block is whatever you want to put in it. For my example, I used

testfor @a

(This command tests if anybody is online...pretty simple).

The right command block is

setblock x y z redstone_block

Replace x,y, and z with whatever the coordinates are next to your redstone dust. So, I put a torch next to the left command block. It gets powered, makes a signal, powers the setblock command block, that command blocks sets a redstone block next to the redstone dust, and viola.




Pictures about "Command Block Help"

Command Block Help - Three People Donating Goods
Command Block Help - Free stock photo of adult, africa, car
Command Block Help - Two Men Carrying Boxes



Quick Answer about "Command Block Help"

  • Enable cheats in your world or Realm settings.
  • Turn on Creative Mode in your world or Realm settings.
  • Open the chat box and enter “/give [your username] command_block”
  • Place the block where you want it.


  • What are good commands for command block?

    Basic Minecraft commands
    • 1. /help. Use the /help command to learn about other commands. ...
    • 2. /time.
    • 3. /gamerule. Use the /gamerule command to toggle different rules in the world. ...
    • 4. /tell. Use the /tell command to send a chat message only to a specific player or players. ...
    • 5. /kill. ...
    • 6. /give. ...
    • 7. /clear. ...
    • 8. /effect.


    How do you work a command block?

    Usage
  • A command block can execute commands when activated by redstone power. ...
  • To execute the command, in Java Edition in multiplayer enable-command-block in the server. ...
  • To enter command or modify the command block, use the Use Item control on the command block to open the command block GUI (graphical user interface).


  • What cool things can you do with command blocks?

    Steps to Use a Command Block
  • Place the Command Block in Creative Mode. Before you can program and use the command block, you need to place the command block on the ground. ...
  • Add a Redstone Device. Next, you need to add a redstone device next to the command block. ...
  • Program the Command Block. ...
  • Activate the Command Block.




  • How to get a lightning stick/staff in Minecraft (Command Block Tutorial)




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

    Images: Mikhail Nilov, RODNAE Productions, RODNAE Productions, RODNAE Productions