How to setup a clock in 1.9?
Hello, I'm trying to set a clock but been having difficulties with the arrangement of the blocks and deciding which if the blocks are condition or unconditional setting. I am testing for a button being pressed thus activating following fill commands.
Commands in order:
/testforblock X Y Z minecraft:stone_button
/fill X1 Y1 Z1 X2 Y2 Z2 minecraft:air
/fill X1 Y1 Z1 X2 Y2 Z2 minecraft:stone
In the repeating block there is no command and is working as a clock
In 1.8.9. I could set a clock connecting to a command block /testforblock -89 57 678 minecraft:stone_button 5 which means it's active/true. The comparator does not repeat the signal but still active the command block /say hey. Once the button is pressed the /testforblock block is inactive but is then active again because it is testing for the button that isn't pressed. I am trying to do this into 1.9.
Best Answer
Step 1: Look at the button, type /testforblock, then press tab, space, tab, space, then tab.
Step 2: Once you have the command ready, (for me it's /testforblock 77 72 56 stone_button 13) it should work when pressed. They way to find this out is get a random number after the block, press enter, and it should give you an error saying the number you should've pressed.
Step 3: This part's all about being quick. Since the command's in your chat history, it makes it much easier. First, click the button. Right after that, enter your chat, press the up arrow, and press enter. It should give you a new number because that's the number it is while it's pressed. When the button's placed on a block facing the way you have it in a picture, the number is 13.
Step 4: Copy the command. Put it in your repeating command block, and it should work! If it either doesn't work or you're confused, let me know and I can make a video about it!
Note: This works in 1.9 or higher.
Pictures about "How to setup a clock in 1.9?"



LED Digital Clock Instructions by UNIQHOME
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Charlotte May, Tima Miroshnichenko, Tima Miroshnichenko, Brett Sayles


