Tripwire Hook

A tripwire hook is a block that can be used to detect entities (players, mobs, items, etc.) when part of a tripwire circuit.

Phases
Tripwire hook has three phases. They are:
 * Folded Phase: This phase is the initial phase of a Tripwire Hook when it is placed at the beginning.
 * Straight Phase: This phase appears when two tripwires are connected in a horizontal line with a tripwire (placeable string).
 * Downward Phase: This phase appears when an object (mobs like hostile mobs and non-hostile mobs) touch the tripwire that is connected between two tripwire hooks connected in a horizontal line with a tripwire (placeable string). A charged or '1' signal is generated when it is in this downward phase.

Breaking
To remove a tripwire hook, it. Tripwire hooks can be broken instantly using any tool, or without a tool.

A tripwire hook will also be removed and drop itself as an item if:
 * its attachment block is moved, removed, or destroyed
 * water flows into its space
 * qwpirueiwueryqoyuiweryiohd

A tripwire hook will be destroyed without dropping itself as an item if lava flows into its space.

Fishing
Tripwire hooks can be obtained as a "junk" item from fishing.

Natural generation
Four tripwire hooks are generated naturally in each jungle temple.

Usage
Tripwire hooks can be used as crafting ingredients or as redstone components.

Crafting ingredient
Tripwire hooks can be used to craft trapped chests.

Redstone component
A tripwire hook can be used to detect mobs, items, and other entities over a large area.


 * Placement


 * To place a tripwire hook, use the control.


 * A tripwire hook can be attached to the side of any full solid opaque block.


 * In order to function correctly, a tripwire hook must be part of a "tripwire circuit": a straight line of blocks consisting of a block with a tripwire hook attached to it, a "tripwire line" (1 to 40 blocks of tripwire), and a second tripwire hook attached to another block.


 * To place tripwire, use the control with a string. Tripwire in a valid tripwire circuit has a short hitbox (0.09375 or 3/32 blocks high, with the bottom 0.0625 or 1/16 blocks above the block below), while tripwire not in a valid tripwire circuit has a taller hitbox (0.5 blocks high, bottom not raised).


 * A tripwire circuit is placed correctly when the tripwire hooks are fully extended and the tripwire line runs continuously between the tripwire hooks. Tripwire lines from separate tripwire circuits can be placed next to each other (in parallel), above each other, and can even intersect each other.


 * Activation


 * A tripwire hook in a valid tripwire circuit activates when certain entities (players, mobs, items, etc.) intersect the tripwire hook's tripwire line "hit box" (but not the tripwire hook itself), and deactivates when all entities leave or are removed from the tripwire line.


 * Entities which will not activate a tripwire circuit include: thrown potions, some arrows, thrown ender pearls, and thrown eyes of ender.


 * A tripwire hook also activates for 5 redstone ticks (0.5 seconds, barring lag) when any of its tripwires are destroyed, except when shears are used to destroy the tripwire.


 * Breaking the tripwire hook, or the block it is attached to, does not generate a pulse.


 * Behavior


 * While active, a tripwire hook:
 * powers any adjacent redstone dust to power level 15, including beneath the tripwire hook
 * powers any adjacent redstone comparators or redstone repeaters facing away from the tripwire hook to power level 15
 * strongly powers its attachment block to power level 15
 * activates any adjacent mechanism components, including above or below, such as pistons, redstone lamps, etc.


 * Tripwire produces no power itself.


 * Although destroying tripwire with shears will not activate a tripwire hook, it will change the tripwire hook's block state (its "attached" state from  to  ) which can be detected with a block update detector (BUD).

Data values
A tripwire hook has an ID name of  and is further defined by its block data. A tripwire hook also has a block state which is expected to replace the functionality of block data in a future version.

Block data
A tripwire hook's block data stores its orientation, connection status, and activation status: