How Redstone works.
There are multiple components to redstone. There is redstone dust, redstone repeaters, redstone torches, redstone, comparators, levers, buttons, pressure plates, and redstone blocks. Redstone acts as the "electricity" of Minecraft.
Redstone dust: Redstone dust carries a signal up to 15 blocks. The more blocks it travels the weaker it gets. Note: Redstone can be destroyed by lava and broken by water, it can also change it's direction in an adjacent angle.
Redstone dust: Redstone dust carries a signal up to 15 blocks. The more blocks it travels the weaker it gets. Note: Redstone can be destroyed by lava and broken by water, it can also change it's direction in an adjacent angle.
Redstone repeater: Redstone repeaters renews a signal allowing the signal to go another 15 blocks but it adds a delay depending on the setting. Any block that is connected to the output becomes a source block, allowing anymore redstone connected to that source block go for another 15 blocks.
Redstone torches: Redstone torches make a full signal. You can put them on the ground or on a wall. The redstone torch can be turned off by inputting a signal into the block it is placed on. It can also make the block above it a power source when it is on. Redstone torches also has a three tick delay and are not instant.
Redstone comparator: A redstone comparator can act like a lock. When input B (the side) has a larger signal than input A (the back) then the signal will not continue but when input B is less than input A the signal will continue. It can also act like a sensor, seeing if there is any item in the container block in input A. It also tests if there something in a container block that is connected to input A. "Something," means if a command is successful, if there is an item in a chest, furnace, dropper, dispenser, brewing stand, or hopper.
Redstone block: Redstone blocks powers anything adjacent to it as a full signal but does not make any blocks adjacent to it a source block. It also powers thing instantly.