I'm trying to give a command block a command to run InGame, then power it and test its redstone output from a comparator. Have 2 sticky pistons "fighting" over a redstone block. Piston clock A piston clock produces a loop of pulses by passing a block back and forth (or around, with many pistons) and drawing off a redstone pulse when the block is in a. To place a block of redstone, use the Place Block control. The command in the second command block is up to you to. Firstly, should all the players go. Click Save after you've changed this setting to Enabled. Just stuff the command blocks away. And directly after this you would do this: Click to reveal. In 1. you could just put the pressure plate immediately above the command block. Problem is it's going to generate millions of "Block Placed" lines in the logs. Block G3 setblock pos1 redstone_block. In other words, when it comes to comparators and conditional command blocks, we have equivalents to the old commands:I powered the command block with a button but when the button wasn't pressed anymore the command block had still a redstone output. Hi, i'm building this undergrounds city, and I cant get the command block to operate how I would like it. 4. How can I. Columns B and I contain the command setblock posY stone. I've included images of the redstone and command in case it's not a bug and it's my incompetence. The player will also need a crafting table. A block of redstone is a mineral block equivalent to nine redstone dust. Web 1 syntax 2 arguments 3 result 4 output 5 history syntax trigger adds 1 to the current value of. You can have a redstone signal if you put a comparator sticking out from the command block This will require a repeating command block pointing into a redstone comparator for a redstone output. Any mechanic will do as long as it produces a command block or redstone output. You can place them both anywhere, but make it so that they can connect. Companion Map. Best. This was considerably faster compared to the pillar of observers. Basically if it's 1, it will set its own SuccessCount to 0. In it type the following command: execute if entity @a This command. 3) Top command blocks all set ot "Chain", "Conditional" and "Always On". Redstone. Improve this answer. It detects vibrations caused by actions and events in a radius around it and emits a redstone signal, and, if it was triggered by a player, also activates nearby sculk shriekers. In order to forceload chunks 0,0 to 1,2, the player should use /forceload add 0 0 31 47, which loads chunks 0,0 to 1,2 (1,2 inclusive, 2×3 chunks). Executing when a player enters a. I am not sure you can, but you could just /setblock a repeater in front of a redstone block. 19, just start with:Hi. command blocks respond to redstone inputs just like any other redstone component. Place a block: setblock ~ ~ ~ minecraft:command_block {SuccessCount:15} Update a block: data merge block ~ ~ ~ {SuccessCount:15} Set the output strength to the marker entity's outputStrength score (or whatever):The command block can power a redstone comparator facing away from it, with the signal strength reflecting the success count of the command. Unfortunately, the answer for the format is: N/A. /teleport @p 8210. Setting it back to Impulse makes the command block not work at all, despite the command not changing. Repeat Command Blocks (blue) are the same as Impulse blocks, but will execute the command every tick rather than once, so long as the block is powered. setting the command again, which you did, will reset the success count back to 0, turning the comparator off. Using that same redstone path connecting the redstone clock to the command block, make another pathway leading off that, but. I'm curious to see if there is a way to detect if a certain block is NOT in the expected position. A redstone comparator can be used to measure the state of a container, and outputs a signal strength in proportion to how full the container is (0 for empty, 15 for full, etc. Block G1 setblock pos2 redstone_block. Earliest known publication: February 2, 2014Hi! I wanted to remove the command block messages that appear repeatedly in the game chat, I've tried / gamerule commandblockoutput false, but it didn't work. It always has permissions of 2 level [Java Edition only] /1 level [Bedrock Edition only], so it can be used to allow a specific use of a command by players who can't use that command in general (for example, allowing anyone to obtain a specific item with /give without allowing everyone to /give themselves whatever they. 0. Next, make a path of redstone dust by placing 15 redstone like the picture below. Once you're done setting up command blocks, type /gamemode s for survival mode or /gamemode a for adventure mode. I have Minecraft 1. •. If the command block is successful in clearing golden boots it will let out a redstone output. To make the smelting process more efficient, it is possible to use hoppers to ensure a furnace is never left empty. Follow. IMPORTANT: If you have commands in command blocks that were written with the older Bedrock-specific syntax, those commands will continue to work like they always have. (But I can see from the comments that you've already found it). I'm tryging to make a command block output a redstone signal at a specific time of day. This replaces a clock and is also faster. I'm trying to have it output a redstone signal to open a piston door, when a player gets within range. What I want to do is to simply make redstone activate when a player moves. An observer will detect the change in the redstone's signal to activate an impulse chain. r/redstone A chip A chipThe hopper is a redstone component that can be used to manage items. The help command simply generates output inside the command block. Also, command blocks have an arrow on them, a command block set to "chain" mode (so it turns green) will only run its command if the command block pointing to it has completed its command, so if you can run your commands in order you only have to test the output of the last command block. 6s open. Set the Block Type to Repeat. The length is determined by the second set of coordinates. These are. That will put one at your feet pointing up. It also takes 1 Redstone Tick for a signal to stop through a Comparator. Instead of making a machine, just set up another command block coming out of the comparator with this command: /blockdata <Insert Coords> {SuccessCount:0} Share. Put testfor @p[name=Name,x=X,y=Y,z=Z,r=maxRadius] in an impulse, unconditional, needs redstone command block that would activate when the pressure plate is activated. It points towards the front of the comparator (away from you when you place it). Here is a filter I wrote (with help in understanding the code from a sethbling is a filter I wrote (with help in understanding the code from a sethblingI suspect the output value is the sum of the output values of the commands: if you run for 5 entities a command returning 1, the result is 1+1+1+1+1 and that is what reflects the output signal strength. getInput, turn a redstone output on or off on a given side of a computer using rs. 3. I'm sure I can build this much more efficiently, but for now this is what I've come up with. Please consider visiting this post for info on how you can create a command chain. The next (repeating, indigo) command block is set to Conditional, which means that it will only activate, and thus only activate the chain command blocks that it's pointing into, when the condition in the block behind it is met. There is no redstone needed, place the command blocks as I did in the included picture. 11. sorry about that you cant see the whole command in the execute command blocks, so I wrote them here: 1st if: setblock ~ ~ ~ minecraft:repeater[powered=true,facing=west]. This will require a repeating command block pointing into a redstone comparator for a redstone output. You'll want to fill a hopper with 18 of the named item, providing it's stackable. Sculk sensors can be mined with any tool. He wants to detect when a player types a specific phrase in the chat and receive an output as a result, not spam the chat with blank text. Note that randomizers, like the majority of redstone circuits, will only work in active chunks. Please correct me if it has to be so! 9. On chat: /scoreboard objectives add SteppedOnDiamond dummy "SOD". This is wrong, it sets the redstone block to two blocks above the player with the active effect. Let's break this down. If you specify a condition and that condition is true then the command block can output a redstone signal. 6. 0. Chapter 4: Redstone Mechanisms. There’s a single redstone torch on that front side, and there are two torches on the back side. - Write in command block "execute if data block xyz Items [ {id:"minecraft:book"}] run time set night". Torches will also activate any redstone components above or beside them, such as pistons or lamps. Redstone Discussion and Mechanisms; Commands, Command Blocks and Functions; Conditional impulse command block? Search Search all Forums. In Survival mode, acquiring or modifying command blocks without enabling cheat mode is not possible. Then if every command executed successfully, you should see the text: "Command executed successfully" 6 times. Let's say you wanted to pair a button to set the time of day to midnight. They are particularly useful for the /weather and /time set commands, as they are only available in cheat mode otherwise. ). If you want to set up multiple commands, use redstone wire to link them up. /give @p minecraft:command_block. I'm wondering if there's any way to reset a Command Block that is outputting to a comparator without running the command again. Special thanks to @Penguin for pointing out in a. Place a block: setblock ~ ~ ~ minecraft:command_block {SuccessCount:15} Update a block: data merge block ~ ~ ~ {SuccessCount:15} Set the output strength to the marker entity's outputStrength score (or whatever): Minecraft Wiki 5 mn 30 d. 1. 5] run setblock -6 62 290 redstone_block. Generally the idea in 1. Each command block stores exactly one command. This means that the Output signal will register one-tenth of a second slower than the input signals. Place your other commands along this line. Using a second repeating command block, you can use the following command to detect when the score reaches 1200: /scoreboard players test count dummy_objective 1200 In conditional chain command blocks following the above command, you will need to set the score back to 0, then execute the commands that you want: /scoreboard players set. golden_apple. To enable command blocks, go to the bottom of the page and click Enable Command Blocks. 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. Eu não escrevi "local rs = require (" redstone ")". The /testfor command is used to detect entities which you filter based on arguments in player selector or/and NBT Tags. Share. NOTE: On servers this broadcasts a message to the entire server . I'd like to testfor in a function or…Redstone signals have a maximum power level of 15 and that level drops by 1 for every block of [[redstone dust]] the signal travels through. A redstone comparator is a block that can produce an output signal from its front by reading chests, lecterns, beehives and similar blocks, or repeat a signal without. The command block will perform server commands when attached to a redstone circuit. Let's break this down. Repeat Command Blocks (blue) are the same as Impulse blocks, but will execute the command every tick rather than once, so long as the block is powered. I want to be able to say a simple keyword in chat, such as "Toggle" or "Machine, toggle [thing]", and have a command block output a redstone signal of some sort. When I have a specific item held in my offhand it emits a redstone output. Then you just check if it is powered by redstone. Some of them are: Door, Trapdoor, and Fence Gate; Iron Doors and Trapdoors; TNT; Command Block; Door, Trapdoor, &. Build all this correctly. Build the main part of the map or large things as needed with SPC/WorldEdit. An observer requires a pickaxe to be mined. Try /help for a list of commands" An example of the command I am using is: "/clone 13 43 56 15 45 18 ~3 ~5 ~7" Everytime the command will not be executed and the previous output will state "Unknown Command" I need someone who can tell me what is wrong, and specifically what I need to do to fix it!The Block of Redstone is a Redstone-related Block that was added in Update 0. Step 1: Place down a chest on the ground. dtschida •. Is there an easy way to test and see if the iron block is being powered via a command block? Thanks in advance! ShadeszDuring my testing on a command block machine; I used a repeating command block that has /kill @e [name=select-paint] in it and a Chain, conditional, needs redstone, command block that has /setblock ~ ~3 ~ redstone_block in it with a comparator as an output to another node of command blocks. This will make a redstone block appear at the coords while the button is pressed and you are near, then disappear when the button is unpressed. When the minute is over, it reaches command blocks which teleport. 4. I'd like the player to cross over a pressure plate which fires off a command block that does some running narration. Hit T to open the console (the chat bar), or press / to open it and automatically enter / to the line you are typing. When a command block is set to "auto", it will no longer require a redstone signal to activate its. How to use Command. Idea #1 Two command block commands: /Redstone input /Redstone output after the command you could do a number for frequency It would be a command…Minecraft redstone proximity detectors are hard to make, inefficient and unreliable. If lamps that get lit with this command touch eachother, they will provide a block update. Place this command in a conditional chain command block running off of the previous conditional chain command blocks. I have a problem. Counts entities (players, mobs, items, etc. 3 redstone is hidden around the map, each used in this contraption (I removed. and it will only activate the command block when a diamond is put into the hopper, and all the items put in will be stored in chests. It always succeeds, creates no lag, and this output is invisible to all players (even creative players if you turn off output tracking for the block). Naturally, these new command block would be configured to spawn more command blocks ad infinitum. Along the side/bottom left of the picture is the actual command. /scoreboard players test @a Deaths 5 If you need to create a redstone signal you can /setblock x y z redstone_block from the next command block in the chain. ATTACHMENTS 2021-09-10_13. Well I’m on bedrock but I’m sure it’s the same. It's target blocks btw, he places target blocks with specific signal strengths to create the redstone output. Command block reads a relative coord which targets an iron block. Click Chain to switch to Repeat, which forces the block to run its. The death will most likely be done either by bow or by splash potion. In 1. first computer needs to take a rendstone signal input and output the same strength signal until it receives a new signal, then it will output that signal, so on soforth. It would be easier to run a clear command on a fill clock which clears "0" of the named item and use a comparator from. Thank you, I set the command to replace an air block with air since all I needed was the redstone signal. Next, you will need to add the code to create a tower of redstone blocks to your existing command. The player is able to place redstone dust on top of the iron block and turn the dust on and off at will. Click Impulse to switch to Chain, which makes the block run after the block behind it runs. Command Blocks in columns A and B are set as Impulse, Unconditional and Needs Redstone. This block cannot be crafted, and only server. Im trying to make a wave spawn kind of thing and i would like a command block to activate its comparator redstone signal when the command blocks command is negative. Place down a command block, and say /time set midnight. Using a second repeating command block, you can use the following command to detect when the score reaches 1200: /scoreboard players test count dummy_objective 1200 In conditional chain command blocks following the above command, you will need to set the score back to 0, then execute the commands that you want: /scoreboard players set count. Minecraft: home set command Minecraft command tutorial #08: /defaultgamemode 45lovers: minecraft command. This tag is responsible for tracking. Note that you cannot use non-player entities here, although you can use fake scoreboard players:Light multiple lamps in a certain volume. The command block will perform server commands when attached to a redstone circuit. The redstone signal coming out of a power source starts at 15 and decreases by 1 for each block the line of redstone dust is extended. With that said, follow these steps to obtain a command block in Minecraft Java on Windows, macOS, and Linux. I want to detect a specific player within an area with the command block then inform it to me, how do i do it? I am currently using "execute positioned 133 69 725 as @ a [x=6,dy=3,dz=1] run give thi106 air" that detect anybody who cross it, but when I change it to a specific person by replacing. You can have a redstone signal if you put a comparator sticking out. You should have 4 command blocks aligned with each other, with all of their arrows pointing into the next one in one direction, like this: R> C> C> C> R= Repeating command block C= Conditional chain command block >=. Redstone components include power components (such as redstone torches, buttons, and pressure plates), transmission components (such as redstone dust and redstone repeaters), and mechanism components (such as pistons, doors, and redstone lamps). Allright, now to an alternative solution to your problem: 1. Use the display link on a block to link it, and then place it on the block that will be read from. 80 votes, 17 comments. Command Blocks output a property called "Success Count", which represents the number of times the most recently-used command of this Command Block…You can use the tellraw command to give custom text in chat, you can also use command blocks to create custom names for items and entities. /scoreboard players set @p. The first command you can run is. Now. A comparator will output a strength of 1 adding one more increases the strength to 2 which could trigger a command block. The stats command. Leave a space above it for a redstone block. It acts as a permanently powered redstone power source that can be pushed by pistons. Comparators output the same signal strength, that they received with a two tick (1 redstone tick) delay. How to obtain a command block in game. Code: /testfor @a [score_nameofscore_min=number,score_nameofscore=number] and then signal will be output when player hits that score. This episode cov. The front is the output, while the back and the two sides are inputs. Ideally, this would allow me to detect which player killed the mob, but that part isn't pertinent for now. The easiest way would probably be to reverse the order of the two commandblocks and just play the sound at the target location instead. ; Output a short pulse from the. A logic gate can be thought of as a simple device that will return a number of outputs, determined by the pattern of inputs and rules that the logic gate follows. If [Air Block] is present on specified stand, a Pumpkin/Flag will replace it 2. Using a redstone block, you could alternate it between two different command blocks. ok, so first off the commands won't work currently because although you have a command block chain you have an 'Incomplete' on as you have all the command blocks as chain command blocks so you have the middle of the chain but no start, to fix that try replacing the first chain command block (The one furthest back) with a repeating. First are the power source components in Minecraft, these components omit power that can then be used to activate devices such as pistons, doors, lights, or command blocks. Columns B and I contain the command setblock posY stone. Repeating Command block: Unconditional, Always Active, 0 Tick, testfor @a, point this block into the comparator. Enter the "testfor" command. 15. you can use the setblock command in 1. /tellraw @a [" "]The redstone comparator is a block which can maipulate signal strength outputs from other redstone components, certain blocks, and item frames. but use different rules for calculating the signal strength output for each one. Command blocks only update when a redstone current is being applied to it. For instance, a command to detect nearby players. Special thanks to @Penguin for pointing out in a. Basically, I want a redstone signal to be sent out when the player stands on a Snow block in order to delete the block (replace it . Blocks of redstone are always active and cannot be turned off. Use online command generators, as they make things much easier. The commandblock is also always active. Type /give player command_block, making sure to substitute your own name for the "player" part of the command. 5 It works fine for me (I guess because I'm an operator), but when my friends try it out for themselves by pressing the button, nothing happens. Ok so here's what I did (just did all over again): - Put one chest down. And 1 day I realized that the effect command don’t work in console and manually adding it in Minecraft chat, also sometimes command blocks don't give you the effect when it should be. g. How to obtain a command block in game. In your case, you want to detect when a player eats a golden apple, so you would do something like: /scoreboard objectives add eatGoldenApple minecraft. 15? The easiest way to accomplish this is to have a command block summon an Item entity with an age of minus 15 minutes on top of a pressure plate on a block on which a redstone torch is attached to. Share. just entered the range. Open up the command block interface. The clickEvent command is what I'm having trouble with. I was trying a simple set-up with two command blocks and a comparator in the middle, but I'm a beginner and am obviously missing the correct syntax (especially to test for a particular. Block G2 setblock pos3 redstone_block. Always active chain command block (right after the repeating one):The command to get a command block is: "/give @s command_block" or "/setblock ~ ~ ~ command_block". 2 Answers. I would get 1 mana every 10 seconds. Press "E" and either search up redstone or find it in the "Redstone" tab. If using fill commands to move the redstone block is not satisfactory then we can still create a piston with a command block that will move the redstone block to the next command block and repeat ad infinitum. By adding a torch to the side of the command block and connecting it with redstone to the comparator's side input, you will reset the comparator after each test. Command Blocks. I need to fit a small redstone device in a 2x2 area, but the device requires the redstone signal of a command block. That means the tag isn't added to the player because the command block is either to far away (increase distance) or it's not being powered right. It is a very interesting solution as it is a refinement of the command block source type solution removing its main drawback; involving a command of this type (two-lined for readability): 1. You now know how to check the input of a redstone signal on a given side of a computer using rs. level 2. The command /execute if entity @e [type=squid,limit=10] could send out 50% of a max redstone signal strength if 5 squids were found for example. Once you have it setup make sure to place a Redstone Dust on top of your command block by holding the Shift Key and Right Clicking the top of the Command block. A place for all things about commands and command blocks in vanilla Minecraft; to share, to question, to discuss, and more! Please read the pinned post before posting. (This is what is happening in the particular example; Kevin Y has given a fine illustration of the situation. The command "/give" puts items into a players inventory and has two arguments: the player and the item to give. This article assumes familiarity with the basics of redstone structures. The Link can be paused with a Redstone signal. Discord. They will execute a command when they receive a redstone signal. IronAnvil's answer is spot on when it comes to command block contraptions. Once you get to a part that needs Command Blocks, just make a small server and add them then. I'm still stuck on the most basic command trying to make it work. Next Place your 3 random items into the. (This will be the chest in which the smelted/cooked items will be put) Step 2: Attach a hopper to the chest. That's to hide all the command output in the chat. CryptoVariations: The output comparator can be replaced with a redstone torch on the command block, producing a signal strength 15 output. However, /forceload query gives result in chunk coordinates. The /time set command is especially useful, as it allows players. testforblock <position: x y z> <tileName: Block> [blockStates: block states] position: x y z : CommandPosition Specifies the coordinates of the block to test. While power source components all share the same basic function, what distinguishes them from each other. It requires a Comparator to do so, except a Comparator can not send redstone signals upwards or to the side, only forward. Players can sneak to avoid making vibrations and wool can be used to occlude and block them. command blocks respond to redstone inputs just like any other redstone component. Type /gamemode c and hit Enter to enter creative mode. Each cmd block just runs 1 'say' command. There. This replaces a clock and is also faster. Command block reads a relative coord which targets an iron block. The interface of a display link with a Target as a source and a Lectern as an output. r is the max radius,. Structure blocks are available using the /setblock, /fill, or /give commands, and are available in the Creative inventory in Java Edition. Right-click the command block. I searched for a command like this /execute positioned 292. I'm working on an adventure mode map, and running into a snag. What I want to do is: Press a button. The answer is. Non-conditional command blocks will always be set to 1. GameStop Moderna Pfizer Johnson & Johnson AstraZeneca Walgreens Best Buy Novavax SpaceX Tesla. The Command Block is a redstone-powered block that was made available in 1. Left command block: /setblock x y z. Note that the maximum signal strength of redstone is 15, so any score above that (or below 0) won't change anything about the redstone Output. The way those work is if the previous command block returns something that is not null, then the conditional command block will then run its command. A hopper clock produces timed pulses by moving items back and forth between 2 hoppers feeding into each other and taking a redstone output with comparators. so, some of us want these, and i have never seen one anywhere so i made some, some use redstone blocks as a bit of a io solution and others are straight up command blocks, ill label the redstone ones as (rs) all of these designs are made with repeating and chain command blocks and have to be connected. Or a player pushed a button. 3 Dual Block Piston Clock (C) 10. r/redstone • I found this weird bug where pistons that are placed under a powered block don't get updated when the block is de-powered if the redstone dust on top of the block has a signal strength that is an even number. 9 just use an IMPULSE command with. 00 run tp @p[distance=. The console will no longer show such logged messages (indicated by the "INFO" section), but the console will still show messages from chat (indicated by the "CHAT" section), which the commandBlockOutput gamerule controls instead. What this does it forces a player with at least 1 death to execute a command, and the second part resets their score. Block G2 setblock pos3 redstone_block. A transmission circuit is a redstone circuit that allows redstone signals to move from one place to another. I have a solution, I used this method to make the Voltz Warz map. Click any of the following options to change the command block's conditions: Impulse - The block will execute its command once per right-click. 5 64 1291. A repeat command block kills an item with that score triggering a chain command block. Instead, take your comparator output from one of the hoppers leading to the chest, and have the brief pulse it produces (as the cookie passes through the hopper) increment a counter. However the question may arise for normal survival or non-command-block. Similar to the blocks that send out Redstone signals without having a Redstone component in their recipe, we also have similar blocks that get triggered by Redstone signals. Because sometimes you might want something that only detects blocks and not players, and sometimes you might want something that detects only. 4. In Java Edition, the success count is usually 0 or 1, except for certain commands like /function and /execute. Here you go: summon minecraft:falling_block ~ ~2 ~ {BlockState:{Name:"command_block"},Time:1,TileEntityData:{Command:"/fill ~-15 ~5 ~-20 ~-15 ~1 ~-20 redstone_block. A redstone torch can be attached to: the top or side of any full solid opaque block (stone, dirt, blocks of gold, etc. For instance, a command to detect nearby players. SPC doesn't work on servers so all the normal command block commands work perfectly. used:minecraft. - Put command block one space away from chest. 1. Mining signal. You should now see the command block on the ground. setblock x y z redstone_block Replace x,y, and z with whatever the coordinates are next to your redstone dust. The ability activates through commandblock 1, comparator detecs that it gave an output through the iron block, commandblock 2 and 3 replace the iron block and redstone with air blocks, the other. The logAdminCommands gamerule will prevent logging commands and outputting to the console. It is somewhat confirmed by the contrived command below: [/p] [p]execute as @e[type=villager,distance=. 2 - The Pretty Scary Update. I simply want one command block to test for the time of day or night (e. The help command simply generates output inside the command block. Block G1 setblock pos2 redstone_block. 2. My problem is simple. /pulse [x,y,z] If length not set, default button pulse. It looks like the command block impulses redstone signal based on the last commands success. Redstone components are the blocks used to build redstone circuits. 12. then use a CHAIN command block with. Yes. The help command simply generates output inside the command block. So you get a repeating command block that is always on, and in it you put the following: testfor (entity or player name here) that’s it! You could also detect in a certain radius or coordinate using testfor entity or player name here[r=(radius here) Example: testfor JeremythekidRS OrThe JSON text component uses the "score" tag to display a score based on target and objective. The command rounds your number down. Then I would suggest ignoring the command itself, and just setting the command block's SuccessCount directly. . 🐟🐟🐟🐟🐟🐟🐟. 8. If the source isn't. Here's the code: /execute if block -272 70 199 minecraft:stone_button [powered=true] run say Hello, blocks! Now the wiki says if block execute command works like /execute if block <position> <block> <command>. 7 snapshots go /setblock (coordinates) (then block ID) for wieless redstone you can use a redstone block its a really cool feature. It only went off when I destroyed the commandblock! I don't know if that has to be so or if it's a bug. From there, place your redstone or any redstone contraption that needs the input. And when it does, the signal doesn't affect the next block. (this is optional, but recommended) Connect the output of the rising edge detector to a T-Flip-Flop. I don't know why, but you just can't. Web catches fire from lava. 8. Command block really aren't meant to interface with plugins. Hello, I'm new to this subreddit and fairly new to command blocks. I was hoping just a comparator would work, but I haven't quite figured out how they work with command blocks. A redstone lamp can be used to produce switchable light. Command Blocks will have three different types they can be set to. Place 15 Redstone. Enable Command Blocks. Redstone output from command blocks. Impulse Command Blocks (orange) are the regular old command block. In the snapshot just released today (13w03a) there is a new command, the "testfor" command.