How to freeze time in minecraft(JAVA)

Today I will show you how to freeze time in minecraft. This freezes all entities. Yes I know it could be a bit better but that would start getting super complex and hard to fit in a video.
COMMANDS:
/scoreboard objectives add time dummy
/execute if entity @e[scores={time=1}] as @e run data merge entity @s {Motion:[0.0,0.0,0.0], NoGravity:1}
/execute if entity @e[scores={time=2}] as @e run data merge entity @s {NoGravity:0}
/execute if entity @e[scores={time=2}] run scoreboard players reset @e time
/execute at @e[type=minecraft:item,nbt={"Item":{id:"minecraft:clock"}}] run scoreboard players set @e time 1
/scoreboard players set @e time 2

Пікірлер: 14

  • @nanachisaisho8037
    @nanachisaisho803715 күн бұрын

    how might i test for the clock but with an enchantment on it in 1.20.1?

  • @lebronjames2117
    @lebronjames2117 Жыл бұрын

    Underrated ty

  • @Shadowwalker395

    @Shadowwalker395

    Жыл бұрын

    ikr

  • @linx.cc_
    @linx.cc_ Жыл бұрын

    i tried it when i picked up the clock everything still frozen and when i broke the command blocks still frozen :(

  • @Shadowwalker395

    @Shadowwalker395

    Жыл бұрын

    you need to set the scoreboard to 0

  • @Numnum340
    @Numnum3406 ай бұрын

    what version is it??

  • @Shadowwalker395

    @Shadowwalker395

    6 ай бұрын

    I believe it is 1.20

  • @Numnum340

    @Numnum340

    6 ай бұрын

    @@Shadowwalker395 oh cuz i was using 1.19.3

  • @Shadowwalker395

    @Shadowwalker395

    6 ай бұрын

    It should be fine as not much changed in terms of commands for that update

  • @Numnum340

    @Numnum340

    6 ай бұрын

    ​​@@Shadowwalker395cuz i did this on Java so idk but it was super laggy and it was typing on chat modified data:pig and other mobs

  • @JVT23
    @JVT237 ай бұрын

    I thought this would work this is too much for me

  • @Shadowwalker395

    @Shadowwalker395

    6 ай бұрын

    I believe that was beta 1.20

  • @hearpotsbread
    @hearpotsbread7 ай бұрын

    i did everything right and noothing worked :(

  • @Shadowwalker395

    @Shadowwalker395

    7 ай бұрын

    Do you know what isnt working?