mojira.dev
MC-157436

Player position is constantly reset when clicking with a sword or a trident onto the ground in creative mode

The bug

When spam-clicking with the sword on the ground and run at the same time the character gets stuck.

This also happens when left clicking with the debug stick in Creative mode and when hitting blocks which can normally be broken instantaneously in Survival with a debug stick.

How to reproduce

  1. Be in gamemode creative

  2. Get a sword or a trident

  3. Look at the ground and spamclick on the left mouse button

  4. Try to run while you still spamclick with your sword/trident

Further notes by @unknown

This issue affects more than what is currently mentioned in here.

Any time the player (attemps to) break a block, but the block isn't broken server-side, the player gets teleported back to where they were when they broke that block.

This issue appears when running around while clicking the ground with a sword in creative mode I assume because the client is actually still sending 'block interaction packets' as they are technically still 'mining' the block. However, neither the client nor server break the block because the player is holding a sword.

This same issue can also be observed in survival mode when the server is lagging as the lag introduces 'block lag'. Block lag is when the player mines a block but the block re-appears due to not (yet) being broken server-side because of the lag. Before this issue was introduced the block re-appeared and that was that. Since this issue was introduced the player also gets teleported back as soon as the block re-appears. (Here's a video showing this on a vanilla singleplayer world where I caused excessive server lag for the purpose of demonstration.)

Also, while I know this isn't relevant for you guys, this issue also affects modded servers where the player isn't allowed to break certain blocks or blocks in certain areas. The block gets broken client-side, but then re-appears for the client in the next (server) tick, and since 1.14.4 (Pre-Release 4?) the player gets teleported back to the location they were at when they broke the block client-side. (Here's a video of that on a spigot 1.14.4 server with a plugin that offers such functionality.)

This is almost certainly caused by the fix for MC-156013, and MC-156852 might be in the same boat. What is the point of pre-releases anymore if changes introduced in them cause more issues than they solve and make it into the final releases for a version? Anyhow, my point is that fix implemented for MC-156013 is plain bad and I can't trust you guys to not fix this issue by doing something equally bad, like adding a check that doesn't teleport the player back if they're holding a sword.

With that said, a better fix for MC-156013 using the current method is probably to teleport the player back only if the player's hitbox intersects the re-appearing block. This would get rid of this issue as well.

Related issues

MC-156756 screen bug with the sword MC-157199 character slows down when punching grasss MC-157579 Hitting Blocks with a sword in Creative mode greatly affects player movement MC-157609 Bug while hitting a block fast with a sword MC-157678 Left clicking a sword MC-157707 Hitting blocks with a sword in creative mode "freezes" the player MC-157714 When running/walking , with sword holding left click and start hitting walls/graund , the player stutter ! MC-157867 Game Stutters when trying to break a block with a sword or trident while walking or sprinting MC-158056 Hitting blocks with a sword while in Creative Mode causes movement lag. MC-158078 Player position is moved back to its last position after a block is broken/placed MC-158157 Jittery Screen while turning or hitting blocks in creative MC-158562 Sword hitting object bug MC-158725 Left clicking block with weapon(sword,trident) while sprinting in creative mode will make game stuck MC-159013 Cancelling block breaking causes player movement to be frozen MC-159355 Attacking with a Sword in Creative mode causes jarring movements MC-159373 Movement bug while using a sword MC-159386 Shaky camera effect when a player hold the attack button in creative while holding a sword MC-159533 Getting rollback when I'm trying to breaking blocks with a Sword in Creative Mode MC-159765 Hitting a block with a sword in Creative Mode while running causes slight movement jerkiness. MC-159771 Creative Sword Glitching MC-160161 Moving works weird on 1.14 combat snapshot MC-161035 Player stops temporarily flying after hitting plants with a sword MC-161627 Break a block in creative with a sword MC-162144 Player movement jitters when constantly hitting a block with a sword in creative mode MC-162651 Camera glitch when left-clicking swords in creative MC-162805 Sword Hitting Bug MC-164371 Sword Punching MC-164738 walking/sprinting when holding down attack while holding sword or trident while looking at the ground causes your character to twitch, and sometimes jump less than a block MC-165209 Bug with weapons. MC-165210 spamming the attack button with a weapons will do somes lag. MC-165597 Non-smooth movement if left-click continuously at block while moving and holding sword/trident in creative MC-165630 Attacking a block with a SWORD in creative slows down your movement MC-165666 Swords in creative mode lag you back MC-165852 When holding left click, while holding a sword/trident in creative mode while walking lags a bit MC-165896 Sword Flying MC-165988 Creative mode - Clicking with sword on ground stops you for a moment MC-166179 Hitting blocks and moving at the same time causes stuttering MC-167050 Hitting grass causes camera bob MC-167086 Camera jitters when hitting blocks with a sword in creative mode. MC-167241 Holding left click with sword in creative makes strange movement MC-167443 Swinging Sword in Creative Mode MC-167527 Movement jitters when I hit the ground and move MC-167550 1.15 holding down left click with weapon causes frame issue MC-167584 when I hit the ground with a sword in my hands the character slows down and weirdly jumps MC-167585 Sword Bug MC-167723 Creative Tools Gliching The Game MC-167746 Hitting the ground with an item while in creative stutters MC-167976 Swords in Creative stop you for a second. MC-168121 Hitting blocks in creative mode with a sword results in stuttering movement MC-168728 Sword/Block Bug MC-170855 Attacking while camera is moving causes player to jitter MC-170888 Wierd movement in creative mode when mining a block with a sword. MC-171045 Jittering when clicking blocks with a sword in Creative MC-171093 Sword bug as updated MC-171106 Spam clicking while running broken MC-171110 attacking a block with a sword in creative causes stutter MC-171122 When you hit you sword and block teleporting back MC-171134 A player become slow when he left-click any block with a sword in hand. MC-171148 Player movement become slow when clicking blocks with a sword in hand MC-171179 It laggs when you hit a block with a sword MC-171210 Hitting the floor with trident causes the user to lag MC-171242 When you run and attack the ground with a netherite sword it glitches you out. MC-171276 Hitting blocks with sword causes you to stop moving when in creative mode MC-171319 Sword stutter in creative MC-171360 Choppy Block Hitting MC-171725 Move glitch in creative mode after hitting block with a sword MC-171790 Movement issues while using sword MC-172352 Hitting blocks with sword in creative causes movement glitches MC-172366 Screen can glitch when swinging a sword at the ground while flying in creative mode MC-172545 Sword swinging in Creative mode MC-172847 I have a little rollback went I hit the grass or tall grass with my sword in creative MC-173205 Hitting any block in creative with a sword creates a small lag spike MC-173753 Movement issue when swinging sword onto blocks in creative mode MC-173758 Left click with a sword in creative MC-173928 Glitchy running with sword. MC-174145 Hitting the ground with a sword in creative makes movment very glitchy MC-174176 hitting blocks in creative mode with a sword stutters player MC-174408 Lag MC-174456 Clicking a block with a attack item makes your jump glitch MC-174607 microfreezes when knocking on a block MC-174611 Movement MC-174897 Sword bug MC-178234 Player Lagging when hit blocks with Swords MC-178845 Lag issue MC-179579 Jitter clicking usue in creative mode. MC-180116 kind of rollback (watch the video) MC-180224 Sword teleport MC-181269 Sprinting MC-181791 debug stick freezes you in survival MC-181854 Glitchy Flying MC-182143 Sword Break Glitch MC-182473 Broken running, or stop go, when hitting blocks with a sword in creative MC-182742 Sprinting and mining causes minor lagbacks MC-182875 swinging sword at blocks in creative mode causes a jitter MC-182928 Player Stutter MC-183956 lag when using sword MC-184741 When running with a sword in creative mode and hitting any type of block, it results in choppy movement. MC-184745 Sword hit lag creative MC-185259 Continually Trying to Break Blocks with a Sword in Creative Teleports the Player Backwards MC-185374 The player sort of "jitters" when spam clicking a sword on the ground in creative

Comments

migrated

This issue affects more than what is currently mentioned in here.

Any time the player (attemps to) break a block, but the block isn't broken server-side, the player gets teleported back to where they were when they broke that block.

This issue appears when running around while clicking the ground with a sword in creative mode I assume because the client is actually still sending 'block interaction packets' as they are technically still 'mining' the block. However, neither the client nor server break the block because the player is holding a sword.

This same issue can also be observed in survival mode when the server is lagging as the lag introduces 'block lag'. Block lag is when the player mines a block but the block re-appears due to not (yet) being broken server-side because of the lag. Before this issue was introduced the block re-appeared and that was that. Since this issue was introduced the player also gets teleported back as soon as the block re-appears. (Here's a video showing this on a vanilla singleplayer world where I caused excessive server lag for the purpose of demonstration.)

Also, while I know this isn't relevant for you guys, this issue also affects modded servers where the player isn't allowed to break certain blocks or blocks in certain areas. The block gets broken client-side, but then re-appears for the client in the next (server) tick, and since 1.14.4 (Pre-Release 4?) the player gets teleported back to the location they were at when they broke the block client-side. (Here's a video of that on a spigot 1.14.4 server with a plugin that offers such functionality.)

This is almost certainly caused by the fix for MC-156013, and MC-156852 might be in the same boat. What is the point of pre-releases anymore if changes introduced in them cause more issues than they solve and make it into the final releases for a version? Anyhow, my point is that fix implemented for MC-156013 is plain bad and I can't trust you guys to not fix this issue by doing something equally bad, like adding a check that doesn't teleport the player back if they're holding a sword.

With that said, a better fix for MC-156013 using the current method is probably to teleport the player back only if the player's hitbox intersects the re-appearing block. This would get rid of this issue as well.

x9nico

Affect 19w34a

muzikbike

Can confirm for 19w35a.

muzikbike

Affects 19w36a

JUE13

Can confirm for 19w37a.

migrated

Can confirm for 19w40a

migrated

Affects 19w41a

migrated

Affects 19w42a

migrated

Affects 19w44a

migrated

Affects 19w45a

migrated

affects 19w46a

migrated

Affects 1.15 Pre-1

migrated

Affects 1.15 Pre-2

migrated

Affects 1.15 Pre-3

migrated

Affects 1.15 Pre-4

StealWonders

A video showcasing this issue from my bug report: https://www.youtube.com/watch?v=6xJ1iJUBZNI

snurre

I'm not sure why this is marked as creative, but all three videos now linked under this issue shows that it happens in survival mode.

Please update, it's an annoying bug that happens all the time as soon as a server lags a little bit(and 1.14 smp servers do lag often) 

migrated

Affects 1.15 Pre-5

migrated

Affects Release 1.15

migrated

Affects release 1.15.1

migrated

It happens with Debug Stick too

migrated

Affects 1.15.2 Pre-1

migrated

Affects 1.15.2 Pre-2

migrated

Affects release 1.15.2

migrated

Affects 20w06a

migrated

This bug is super annoying and i hope it gets fixed asap

BGM

Affects 20w08a

migrated

Affects 20w09a

migrated

Affects 20w11a

migrated

Affects 20w12a

migrated

Affects 20w13a

migrated

Affects 20w14a

migrated

Even works with the debug stick - which is unfortunately unsupported

migrated

Affects 20w15a

migrated

Affects 20w16a

migrated

Affects 20w17a

migrated

I think it is all items that when used don't allow things to be broken by it. If you using a sword in a good build you want to kill a zombie and ruin the build

migrated

Can confirm for 20w17a, both in creative using the trident/sword test, and when experiencing block lag in singleplayer worlds (which really shouldn't happen, but has started happening since the 1.16 snapshots).

migrated

Affects 20w18a

migrated

This actually only happens when you run and then spam-click. When doing it the other way round (ie spam-click then run), the player still glitches but can keep moving. 

migrated

Affects 20w19a

migrated

Affects 20w20a

 

This also happens when holding left click while moving.

migrated

Note to TorandoChaser: block lag in single player has been a thing since 2012 when "single player" was changed to 1-person multiplayer (so that it wasn't 2 different programs for single player and multiplayer with 2 different lists of bugs). Turn your view distance up higher than you computer can handle and the first two symptoms are block lag and creatures freezing for a second or more partway through their animations.

RedCMD

Isn’t that just general server lag?

ampolive

Cannot reproduce in 1.17.1 Release Candidate 2. facepalms

migrated

@ampolive That's cuz this was fixed in 20w22a. You're commenting on a bug that's already resolved.

migrated

Panda4994

Confirmed

Very Important

Player

mojang_internal_1

1.14.4, 19w34a, 19w35a, 19w36a, 19w37a, ..., 20w18a, 20w19a, 20w20a, 20w20b, 20w21a

20w22a

Retrieved