User:Thriplerex/Tripwire

Tripwire
A tripwire is a small, gray wire that appears when string is placed. Tripwire is primarily used to output redstone signals when attached to tripwire hooks on opposite ends. Upon collision with most entities, a redstone pulse will be sent to the tripwire hooks connecting the tripwire. Tripwire's low visibility makes it an effective way of creating traps. Tripwire (along with tripwire hooks), generate only in jungle temples.

Usage
To activate a tripwire when it is connected, an entity (most mobs, minecarts, boats, arrows, items, etc.) must move on, through or over it. However, thrown potions, some arrows, thrown Ender pearls, and thrown eyes of Ender will not activate tripwire hooks. Destroying the tripwire while not holding shears will trigger a redstone pulse. The redstone signal must connect to the tripwire hook to be activated, not the tripwire itself. Tripwire can be connected to other tripwire for up to 40 blocks. You can connect hooks with tripwire on the ground or connect hooks through air (see details below). When a tripwire connection is formed, the hooks must be placed on both sides of the connection for it to have the ability to be activated.

Tripwires can also be used to help decorate a structure with vines. Placing a floating block of tripwire in midair without any attachments prevents vine blocks growing through it. This lets the player control where and how wide/long they want their vines to grow, or allows them to add patterns into the middle of large swaths of vines. This is particularly useful for high-altitude construction or floating islands that the player wants to have vines dangling from. Without a block to stop them, the vines will continue down until they hit the ground, but floating tripwires can keep them short and irregular without being seen for a more natural look (otherwise the player would have to use signs or other blocks that are conspicuous and/or bulky).

Placing and removing tripwires
Tripwires are placed with string. This item can be placed like normal string can be placed. Tripwires connect like redstone wire, and can connect to tripwire on all four sides. Tripwire can be placed in the air, by placing it next to any solid block. Tripwire can also be placed on other tripwires. When breaking a block below tripwire, the tripwire is broken, activating the signal and string is dropped. If tripwire is placed on any block with transparency (glass, leaves, signs, air, chests, pistons, glowstone, slabs, stairs etc.), it will not connect to tripwire hooks or tripwire placed on any block that is not glass or leaves. Yet, when one of these blocks is broken, the tripwire is not dropped nor activated (the tripwire remains in the air). This the same for when one is broken that has another tripwire placed on top. Tripwire has the same function when in the air as if it was on the ground. When making tripwires, Dinnerbone stated there either needs to be no blocks under any wire/hook or all blocks under the wire/hook; however this is not actually the case. Since this "mix and match" is based on whether or not the underlying block has a transparency value, any block with a transparency value can be "mixed and matched" with air. When breaking tripwire itself, it activates any tripwire or tripwire hooks that it was connected to. To disarm tripwire without activating the signal, you must break the block with shears. This will remove the block and drop string, yet will not activate the signal. Tripwire has the hitbox of a slab when it is not connected to tripwire hooks. When it is connected, the hitbox is the same as redstone wire, unless it's placed in the air. Tripwire can be "stacked" on itself when being placed, like stacking signs on signs, but it will still float after removing the tripwire/block under it.