String

String is an item used to make bows, fishing rods, and leads. When placed as a block, string becomes tripwire which, when combined with tripwire hooks, can form a tripwire circuit.

Obtaining
String can be obtained from drops and fishing, and can be looted from jungle temples and dungeons.

Breaking
Tripwire can be instantly with any tool, dropping string.

Tripwire will also be removed and drop string as an item:
 * if water flows into its space
 * if a piston tries to push it or moves a block into its space

Tripwire will be destroyed without dropping string if lava flows into its space.

Cobwebs
String can be obtained from breaking cobwebs with a sword, as well as by the pushing of cobwebs by pistons and when water flows over cobwebs.

Drops
Spiders, cave spiders and cats drop up to two pieces of string upon death.

Fishing
String has a 0.6% chance of being caught when fishing with an unenchanted fishing rod. The chance decreases if the fishing rod is enchanted with Luck of the Sea.

Natural generation
Five pieces of tripwire generate naturally in every jungle temple.

Gift
Tamed cats have a chance of giving the player string as a gift. Cats may also drop 0-2 string if killed.

Usage
String can be used as a crafting ingredient and tripwire can be used as a redstone component. It can also be used to keep players from ender-pearling through that space.

Trading
Fisherman and fletcher villagers will buy 15-20 string for an emerald.

Journeyman-level Fletcher villagers buy 14 string for an emerald as part of their trade.

Fisherman villagers have 50% chance to buy 20 string as part of their first tier trade.

Redstone component
Tripwire can be used to detect entities as part of a tripwire circuit.


 * Placement


 * To place tripwire, string while pointing at a surface facing the space the tripwire should occupy.


 * In order to activate tripwire hooks, tripwire 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.


 * Activation


 * A tripwire activates if almost any entity (players, mobs, minecarts, boats, items, arrows, etc.) intersects its collision mask. The tripwire remains active until there are no entities intersecting its collision mask. Thrown potions, some arrows, thrown ender pearls, and thrown eyes of ender will not activate tripwire.


 * Behavior


 * An active tripwire updates adjacent blocks (for example, it can activate a BUD circuit). Additionally, active tripwires that are part of valid tripwire circuits will cause the attached tripwire hooks to activate (producing redstone power). Active tripwires do not themselves produce redstone power.


 * When tripwire is broken (including by being washed away by spreading water) after being part of a valid tripwire circuit, it will activate the attached tripwire hooks for 5 redstone ticks (10 game ticks, or 0.5 seconds barring lag). It will not produce the signal if it is broken using shears.

Block data
In Bedrock Edition, tripwire uses the following data values: