Holding right-click prioritizes continuing to use off-hand item over placing main-hand item
The bug
Holding right-click prioritizes continuing to use off-hand item over main-hand item.
How to reproduce
- Put a shield in off-hand
- Create a large area of farmland, and place a stack of seeds in main hand
- Try to plant the whole area, while right-clicking and walking around
What happens: The first block of farmland you target gets planted, then you start blocking, and you don't stop blocking until you release the mouse button.
What I expected: blocking would stop once I was targeting a farmland block with nothing planted in it, and I would plant a seed in it.
Linked Issues
testing discovered1
is duplicated by4
Created Issue:
Holding right-click prioritizes continuing to use off-hand item over main-hand item
To reproduce:
Put a sword in off-hand.
Create a large area of farmland, and place a stack of seeds in main hand.
Try to plant the whole area, while right-clicking and walking around.What happens: The first block of farmland you target gets planted, then you start sword blocking, and you don't stop sword-blocking until you release the mouse button.
What I expected: Sword-blocking would stop once I was targeting a farmland block with nothing planted in it, and I would plant a seed in it.
I realize sword-blocking is scheduled to be removed, but this seems to be a general issue. Another way to encounter the error is to put a stack of chorus fruit in off-hand while trying to plant the field. You plant one block and then start eating the chorus fruit and don't stop until you finish eating or you release right click, even though you have plenty of time to start targeting other unplanted farmland.
Environment
Windows 7, Java 1.8.0_25 64 bit
To reproduce:
Put a s
word in off-hand.
Create a large area of farmland, and place a stack of seeds in main hand.
Try to plant the whole area, while right-clicking and walking around.What happens: The first block of farmland you target gets planted, then you start
swordblocking, and you don't stopsword-blocking until you release the mouse button.What I expected:
Sword-blocking would stop once I was targeting a farmland block with nothing planted in it, and I would plant a seed in it.I realize sword-blocking is scheduled to be removed, but this seems to be a general issue. Another way to encounter the error is to put a stack of chorus fruit in off-hand while trying to plant the field. You plant one block and then start eating the chorus fruit and don't stop until you finish eating or you release right click, even though you have plenty of time to start targeting other unplanted farmland.
To reproduce:
Put a shield in off-hand.
Create a large area of farmland, and place a stack of seeds in main hand.
Try to plant the whole area, while right-clicking and walking around.What happens: The first block of farmland you target gets planted, then you start blocking, and you don't stop blocking until you release the mouse button.
What I expected: blocking would stop once I was targeting a farmland block with nothing planted in it, and I would plant a seed in it.
is duplicated by
A comment with security level 'global-moderators' was removed.
is duplicated by
is duplicated by
Windows 7, Java 1.8.0_25 64 bit
To reproduce:
Put a shield in off-hand.
Create a large area of farmland, and place a stack of seeds in main hand.
Try to plant the whole area, while right-clicking and walking around.What happens: The first block of farmland you target gets planted, then you start blocking, and you don't stop blocking until you release the mouse button.
What I expected: blocking would stop once I was targeting a farmland block with nothing planted in it, and I would plant a seed in it.
The bug
Holding right-click prioritizes continuing to use off-hand item over main-hand item.
How to reproduce
- Put a shield in off-hand
- Create a large area of farmland, and place a stack of seeds in main hand
- Try to plant the whole area, while right-clicking and walking around
What happens: The first block of farmland you target gets planted, then you start blocking, and you don't stop blocking until you release the mouse button.
What I expected: blocking would stop once I was targeting a farmland block with nothing planted in it, and I would plant a seed in it.
Holding right-click prioritizes continuing to use off-hand item over placing main-hand item
Confirmed for 16w06a, the same is for making a farm land out of dirt.
In my opinion, the correct behaviour should be as follows:
Right click to plant the first seed in the farmland area, but the shield shouldn't start blocking unless the player releases & re-presses RMB. Instead other areas of farmland are planted as you move around whilst continuing to hold RMB. An action with the off hand really shouldn't start as a result of holding down RMB too long for an action that completes with the main hand. See
MC-97176, for an example of the same effect with food in main hand and torch in off hand.Seems to be fixed as of 1.16-pre4.
The placing blocks (including seeds) aspect seems to be fixed as of 1.15.2, probably earlier. There do seem to be other cases that are still affected (e.g. tilling with a hoe with a shield in the offhand), though. But that can go into a separate report. I'll figure out what version this was actually fixed in.
Fixed 17w47b (confirmed present in 17w47a).