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

migrated
[media][media][media][media][media][media][media][media][media]
migrated

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?

migrated

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

migrated

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.

migrated

@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?

migrated

@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]

migrated

Could a moderator please confirm me that this bugpost will be reviewed again by a Dev, or maybe Mr. Siverman specifically?

I can reproduce the fake duplication / ghostblocks in current snapshot 20w09a after all, and I provided also a structure block file, with which this happening can be confirmed.

On a side note: Unfortunately, I can't chose something like a Mojira mod role at "Viewable by All Users", so I have to ping everyone by messaging publicly.
I would find it great if it would be possible to do so, annotations solely towards Mojira mods and higher; for some bugposts, it could be good if not the whole public could see some remarks, and not everyone watching a bugpost would get pinged.

migrated

Thanks for the repro @unknown. This will indeed be looked at.

migrated

@unknown Thank you 💙

migrated

Can confirm for 20w13a, am on mobile, thus can't test right now for b-snap.
Demo of ghostpistons here https://www.youtube.com/watch?v=DplyWcJj258

migrated

Confirmed for 20w14a.

migrated

Confirmed for 20w17a.

In case the OP doesn't mind, I'm willing to take over this bugpost.

Johnibur

Can't confirm in 20w18a.

migrated

Can confirm for 20w18a.

[media]

Johnibur

Thanks Meri, I wasn't able to reproduce on server as before.

migrated

No problem Johnibur, it didn't create any ghostblocks for me at first, too, only 2 times 1 ghostpiston directly when I logged in, or relogged; after that it didn't create any ghostpistons for at least 10 minutes. After I relogged 3 times, they were created like crazy.
I usually test in SSP, but good call, I'll test this from now on on SMP as well.

migrated

Confirmed for 1.16 pre-5.

migrated

Confirmed for 1.16.1, requesting ticket ownership.

migrated

Confirmed for 1.16.2 pre-1.

migrated

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)

migrated

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

rkullenius

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

migrated

(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