Talk:Update 1.0.5/@comment-30306703-20170315171944/@comment-30306703-20170316041120

How about the testfor command? You can hook a repeat command block to a redstone compariter and if the testfor command succeeds, it will send a redstone signal. Hook that to some repeaters for a delay, and then to a dispenser, and you have a peashooter that shoots on sight. (You need to specify the coordinates in which it will shoot.)