When summoning a lightning bolt and killing it during the same game tick (using a chain command block and repeat command block) there is a discrepancy in the number of entities displayed.
All command blocks activated with 30 game tick pulse from wood button.
Signs are placed next to the command blocks to show the commands in each.
Leftmost: Intended behavior; summons 30 lightning bolts and displays all
Middle: Repeating command block set to summon, chain block set to kill; displays 3 bolts with no sound
Rightmost: Repeating command block set to kill, chain block set to summon; displays a reduced number of bolts with sound, command block log in previous tests shows that all bolts were killed.
video at low resolution because of 10mb filesize limit
Attachments
Comments 4
I don't see the issue. The order of commands matters, and on the right, the lightning is allowed to exist for a tick before being destroyed
Should I open a new ticket about the middle one (some showing despite the fact that they should be killed)? If yes, you can mark this as wai.
Clients have more FPS than servers have TPS (even in singleplayer, there's a server), as such frames are made for situations not only between ticks, but also during ticks; which causes the random visibility of the middle one.
Also tryashtar is right, the latter allows all lightning to exist for 1 tick, and the last one for however long it wants. It's just like math, doing X=X+1 then X=X*5 gives a different result than X=X*5 and then X=X+1.
added labels