Minecraft command block order I need help in redstone

Minecraft command block order I need help in redstone - High angle of crop person holding hands with ethnic boy stuck in dirty puddle in poor village

I would like to make a command block that when he found someone(testfor) in a specific condition (like, survival mode) a redstone signal will appear and activate another command block(the command doesn't matter)

If you can please to post a picture of how this setup (in redstone) should look like I will be pleased.



Best Answer

Place a command block with the /testfor @p[whatever] command.
Then, a redstone comparator facing outwards from the command block.
From there, place your redstone or any redstone contraption that needs the input.

Note: If the comparator's signal isn't strong enough (1 block worth of power), place a Redstone Repeater after the comparator and any output should now have 15 strength.

A comparator only outputs a signal power of 1 if the command succeeds. Add a repeater to make that 15.




Pictures about "Minecraft command block order I need help in redstone"

Minecraft command block order I need help in redstone - Smiling ethnic seller consulting diverse clients on menu
Minecraft command block order I need help in redstone - Frustrated female driver in white t shirt and jeans sitting on ground near damaged car with hands on head during car travel in sunny summer day
Minecraft command block order I need help in redstone - Storage of many cargo containers in bright sunshine



How do you use Redstone with command blocks?

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 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 set a block of Redstone?

    In the crafting menu, you should see a crafting area that is made up of a 3x3 crafting grid. To make a block of redstone, place 9 redstones (also called redstone dust) in the 3x3 crafting grid.

    How do you chain a command block in Minecraft?

    The command to get a command block is: "/give @s command_block" or "/setblock ~ ~ ~ command_block". A chain command block is essentially the opposite of an impulse command block. Impulse command blocks will only execute once when it is activated. Chain command blocks will execute every time it is triggered.



    how to activate Redstone with a command block




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

    Images: Ahmed akacha, Kampus Production, Gustavo Fring, Kelly