mojira.dev
MC-13129

Floating/grounded restriction on tripwire behaves inconsistently.

Let me start out by saying that I understand the intention that tripwire must be entirely floating or entirely grounded. I'm not calling that a bug. However, I believe a specific aspect of the implementation is unduly inconsistent. This has been mentioned before in discussion of MC-13077 (dupe) and MC-570 (WAI), but not clearly explicated as different from the obvious intended behavior.

I am seeing inconsistent behavior when there is a block under a Tripwire Hook, but not the tripwire itself. Specifically, if the tripwire itself is floating:

  • If there is a block underneath a tripwire hook facing north or east (south or west end of a tripwire line), then the hook will be inactive, just like if the tripwire line itself is partially on the ground and partially suspended. That's fine.

  • However, if there is a block underneath a tripwire hook facing south or west (north or east end of a tripwire line), then the tripwire will function normally, and in addition the tripwire and hooks will spontaneously toggle between the “connected” and “disconnected” states, with accompanying sound effects.

The above also holds in reverse: a grounded tripwire works even if the south or west-facing hook has no block under it.

For consistency, a block underneath a south or west-facing tripwire hook should also prevent the tripwire line from functioning.

The attached image shows a test rig. The displayed tripwires will spontaneously connect/disconnect a few times a minute — see how some of the hooks are in the disconnected state.

Linked issues

Attachments

Comments 17

Let me quote Dinnerbone:

This is intentional behaviour. Tripwire can be all floating or all grounded, but not a mixture of both. It behaves in subtly different ways depending on its suspension status, so it logically just cannot function while in a mixed state.

I'm not disagreeing with Dinnerbone. Dinnerbone is saying that tripwires don't function when at a mixed height. I observe that, in all other cases but this one, that non-functioning is specifically shown in-game by putting the hooks in a “disconnected” state (drawn with a raised-up bent hook). This bug report is a case where the disconnected state does not happen, whereas in all other cases it does:

  1. All of the wire and hooks in air: Functional.

  2. All of the wire and hooks on blocks: Functional.

  3. Some of the wire in the air, some on a block: Disconnected.

  4. All of the wire in air, south hook on block: Disconnected.

  5. All of the wire in air, north hook on block: Functional, glitchy. ← This is the bug.

There are two possible interpretations of Dinnerbone's remark: that tripwires are inconsistent/glitchy if mixed and that tripwires would be inconsistent/glitchy if allowed to be mixed. The fact that mixed wires ordinarily show a disconnected state indicates the latter is the appropriate interpretation, and so this case where the hooks do not become consistently disconnected is a bug.

Alright reopened.

MC-16990 was closed as a duplicate of this but I don't see where it's mentioned here that this also happens if the block is placed under the West hook (disconnected) as the South hook (as you mentioned).

Confirmed for 1.7.9 and 14w17a

7 more comments

I still don't even get the point of having a suspended and non-suspended versions. If it's flush with the floor and has enough distance to be set off, if those blocks weren't there it would still be set off.

Actually is seems sort of backwards how it is set up. The floor version doesn't look like it would be pulled enough to be set off, but the suspended version is the one that is moved more up. You could use the suspended version (moved up more) and it looks perfectly fine (try with glass or glowstone). I'm not sure why they complicated things for a miniscule height difference...

Added an image, basic description follows,

There is a Tripwire and a peice of string next to each of these dual BUD Switches. Tripwirehooks with string facing NORTH AND EAST trigger both buds as they should, but Tripwirehooks with string facing WEST OR SOUTH don't trigger one of the BUDs. This idicates that Tripwirehooks facing WEST OR SOUTH do not connect to the peice of string. This is most likely responsible for most of the Tripwirehooks not working when one tripwirehook doesn't have a block under it.

I assume to fix it you make the tripwire recognize string in every direction. I hope it's that simple.

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

Yeah this is still an issue, the device I put in the image tripwirehookfix.jpg still performs exactly the same as it did last year when I uploaded the picture. Edit The picture has had the description wrong for a while now, the text on the left is correct, whereas the text on the right is not.

Because "suspended" state of tripwire and tripwire hook was removed, this bug is now irrelevant. Issue that was showed by @unknown is now described in MC-115322

Kevin Reid

(Unassigned)

Confirmed

inconsistent, tripwire

Minecraft 1.5.1, Minecraft 1.6.4, Minecraft 1.7.1, Minecraft 1.7.2, Minecraft 14w32a, ..., Minecraft 1.8.1-pre3, Minecraft 1.8.1-pre4, Minecraft 15w42a, Minecraft 1.10.2, Minecraft 16w42a

Retrieved