The 14w07a snapshot brought many, many new features. This update has really made a mapmaker's dream come true, and some processes are much less of a hassle to deal with. Such commands include the /execute command and checking for player/mob rotation. I've done something that makes use of these commands, which otherwise wouldn't be possible in older versions, using torches! These commands are truly, truly amazing.
Which is your favorite use? Mine is the second one.
Sorry for any noticeable lag, I was recording on a much older laptop. I'm awaiting the desktop one to return from repair in a week.
How it works:
There is clock testing for a player with a torch in their hotbar, that they are selecting. If that is true, then a clock will turn on as long as the player is holding the torch. The clock has this command:
In the dark area as shown in the video, there is a layer of carpets, and redstone lamps underneath. What the clock does is, when holding a torch place a glowstone block under the player, then replace everything else around the player with redstone lamps.
The same /testfor mechanism is used from above, except there are now three more command blocks with /testfor. Each /testfor is looking for a player in a position with a certain rotation value. An example command used in the video:
A single /testfor from those is connect with the command blocks testing for the player holding the torch with an AND gate. There are 3 AND gates present, if each one results in a positive output then there is a command block that will place a redstone block near the torch to turn it on. If all three torches are turned on, they will trigger yet another AND gate and open the piston door.
The same /testfor mechanism is used from the dynamic lighting. This takes advantage of the new and powerful /execute command. Did you know that you can execute a command within an execute command? Well, there is a clock that runs when the player is holding a torch. The command I used is: