How to freeze time in minecraft(JAVA)

Channel:
Subscribers:
1,440
Published on ● Video Link: https://www.youtube.com/watch?v=KCk6erDAAyA



Category:
Guide
Duration: 2:13
178 views
3


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