mojira.dev
MC-88821

Minecraft Clock runs out of order

I created a Minecraft clock with a repeating block and chain blocks in a row.

Commands in the right order:
Added Scoreboard : *Sneak - stat.sneakTime
*Countdown - dummy
/scoreboard players tag @a[score_Sneak_min=1,rx=-85,rxm=-90] add Spawn
/scoreboard players add @a[tag=Spawn] Countdown 1
/scoreboard players set @a[tag=!Spawn,score_Countdown_min=1] Countdown 0
/scoreboard players tag @a[tag=Spawn] remove Spawn
/scoreboard players set @a[score_Sneak_min=1] Sneak 0

So I thought if I sneak and look to the sky my countdown goes up and if i look away or stop sneaking the timer resets

But now if i'm at full screen or a window which fills the whole screen it doesn't work - the countdown only goes up to different numbers and then again to 0 without moving my player
When my window is small or at the half of the screen it works correctly
But then if my game runs a while at this map it fails agein

So I think the problem is that the game doesn't perfom this commands in the right order

Attachments

Comments 4

In the screenshot you have 7 command blocks, whereas you've only listed 5 commands. Are you missing some, or are they empty?

I think I found the issue:
I believe the issue is, that your Scoreboard Sneak updates out of sync with your clock.
Therefor there is no guarantee that at the start of each clock cycle the Sneak scoreboard will actually be 1
Take these two commands and put them on a clock:

  • /execute @a[score_Sneak=0] ~ ~ ~ /say hi

  • /scoreboard players set @a Sneak 0

If you sneak it will still say hi sometimes (most of the time it will not)

Cannot confirm for 15w41b it works as it should and increases only when looking up and sneaking and else resets itself to 0

Alexander Hübener

(Unassigned)

Unconfirmed

Minecraft 15w37a, Minecraft 15w38a

Retrieved