mojira.dev
MC-172880

Contraption making piston ghost blocks

The Bug

The contraption as shown in figure

[media]


will create ghost blocks after running for some time.

How to reproduce

  1. Load

[media]
  1. Activate the observer as marked in figure shown above
    → ❌ Ghost blocks will appear after some time as shown in figure

    [media]

Ghost pistons seem to occur more frequently with some slight lag, thus potentially also more likely on SMP; in order to be able to reproduce this bug better in Creative or on SSP testworlds, insert:

/gamerule randomTickSpeed 100000
the contraption will more likely/faster produce ghostpistons then; if not, play around with the randomTickSpeed, but don't forget to set it back to the default value 3 when you're done.

Attachments

Comments 22

AMNOTBANANAAMA

Are these "ghost" pistons or actual pistons? That is to say, when you place a block directly next to these pistons do they disappear? And just to confirm, did this occur in singleplayer?

 they aren't ghost blocks, and it did occur in singleplayer and also later i did the same thing on multiplayer

I could recreate this in 20w09a, however, for me it's ghost blocks (can walk on them, but as soon as I rightclick them or re-enter the world, they were gone).

I recorded it, just in case it's needed.

@unknown You resolved this bugpost as Duplicate of MC-54026, however, said bugpost is resolved as "Cannot Reproduce" - should that old bugpost be now reopened instead?

@unknown Reproduction steps: Load structure from

[media]

Activate Observer, as shown here

[media]

It may take sometime until ghostblocks are created, but there definitely will be.

[media]

12 more comments

Confirmed for 1.16.2 pre-1.

this bug happen when a blockevent try to push a moving block in the 1st or 2nd tick

here is some setup that make it more clear,trying to push at the 2nd tick:

[media]

The reason is in PistonMovingBlockEntity.java (mojang mappings)

if the client dont receive a packet to turn the moving block back into a block,the block entity progress of the moving block will still increase clientside but the animation stop and a counter: "deathTicks" will increase

when it go over 5,the moving block block turn into a block clientside and remove the blockentity,so the block can be pushed clientside and create a ghost block

this can happen if there is a server side lagspike and the client can execute about 7~8 ticks before the next server tick

a solution could be raising that "deathTicks" limit, or removing it (I dont know the the effects, it could leave some glitched extending pistons when players have a bad internet conection, EDIT:bad idea, moved ghost blocks will just get stuck,they are already stuck for 6 tick after moving)

a solution could be comparing the tick of creation with the current tick because it's synced with the server tick and wont be affected by how many times the client tick

Minecraft386882

Confirmed in 1.21.3

I am unable to reproduce this issue, can you confirm that you are still able to reproduce this issue on the latest version?

yonatan tart

Meri Diana

(Unassigned)

Confirmed

Platform

Important

Networking

Pistons, ghost-block, ghostblock, mojang_internal_1, piston, redstone, slimeblock, slimeblocks

1.15.2, 20w08a, 20w09a, 20w12a, 20w13b, ..., 21w06a, 21w20a, 1.17, 1.17.1 Pre-release 1, 1.21.3

Retrieved