Bows, crossbows, and tridents drawn in survival/creative/adventure mode can be released in spectator mode
The bug / Steps to reproduce
Place down a command block with a pressure plate on top that sets players who stand on it to spectator mode. Get a bow and arrow, draw back the bow but do not release. Step on the plate to enter spectator mode then release the bow to fire the arrow.
This bug allows you shoot arrows in a situation where a map maker most likely doesn't want it. In and of itself it's quite a cool concept but doesn't seem to work as it should!
Demonstration video: https://youtu.be/myDDq4Ks27A?t=1m35s
The same bug occurs with tridents in 1.13 and later.
Code analysis
Code analysis by [Mod] Avoma can be found in this comment.
2015-06-26, 11:17 AM
2024-11-03, 10:34 AM
22
11
arrow, bow, game-mode-switch, gamemode, shoot, spectator, trident
Minecraft 1.8.7 - 24w44a
Minecraft 1.8.7, Minecraft 16w07b, Minecraft 1.10.2, Minecraft 16w42a, Minecraft 16w43a, Minecraft 1.11.2, Minecraft 17w14a, Minecraft 17w15a, Minecraft 17w17b, Minecraft 1.12 Pre-Release 5, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w43c, Minecraft 18w44a, Minecraft 19w04b, 1.15.2, 1.16 Pre-release 6, 1.16 Release Candidate 1, 1.16, 1.16.2, 1.16.3, 1.16.4, 20w46a, 20w49a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w11a, 1.17, 1.17.1, 1.18.1, 1.18.2, 22w18a, 1.19 Pre-release 1, 1.19.2, 1.19.3, 1.20.1, 1.20.6, 1.21, 24w44a
-