mojira.dev
MC-297102

Item use continues when going into spectator mode.

When you hold right click (or the keybind you put to the use function) on an item that is consumable (e.g. food, bows, tridents) then have an external thing put you into spectator (e.g. command block, datapack, other player using commands), you will keep using the item until you release.

When you use f3+f4 however, it instantly releases.

See attached video for more clarification.

Steps to reproduce:

  1. Have some items that are “consumable” (bows, tridents, food, item with consumable component) ready in your inventory.

  2. Have a command block ready with some repeaters for delay.

  3. Switch into any gamemode except spectator mode.

  4. Click the button that will activate the repeaters and start charging up your item.

  5. When you are in spectator mode, release and the item should trigger. (For food it should trigger once the consume seconds timer is up)

Linked issues

Attachments

Comments 1

trplnr

(Unassigned)

Unconfirmed

(Unassigned)

1.21.5

Retrieved