Command Block Tutorial #159: Time Manipulation Commands in Minecraft (1.19+)
In this video I will show how to give yourself an special clock that gives you the ability to control time in your Minecraft world.
Commands:
* To get the Master Time Clock (Impulse command):
/give @p minecraft:clock{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Master Time Clock\"}"}}
* To activate the Master Time Clock:
Scoreboard Commands (To add and remove):
- /scoreboard objectives add Time minecraft.used:minecraft.carrot_on_a_stick
- /scoreboard objectives remove Time
1. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:clock",tag:{display:{Name:"{\"text\":\"Master Time Clock\"}"}}}]}] run item replace entity @p hotbar.4 with minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Resume Time\"}"}}
2. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:clock",tag:{display:{Name:"{\"text\":\"Master Time Clock\"}"}}}]}] run item replace entity @p hotbar.3 with minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Stop Time\"}"}}
3. Repeater Command Block: /execute as @a[nbt={Inventory:[{Slot:-106b,id:"minecraft:clock",tag:{display:{Name:"{\"text\":\"Master Time Clock\"}"}}}]}] run item replace entity @p hotbar.5 with minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Speed Up Time\"}"}}
4. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{display:{Name:"{\"text\":\"Resume Time\"}"}}}}] run scoreboard players set @e[scores={Time=1..}] Time 0
5. Chain Command Block: /gamerule doDaylightCycle true
6. Chain Command Block: /gamerule randomTickSpeed 3
7. Chain Command Block (Optional): /effect clear @e[type=!minecraft:player]
8. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{display:{Name:"{\"text\":\"Stop Time\"}"}}}}] run scoreboard players set @e[scores={Time=1..}] Time 0
9. Chain Command Block: /gamerule doDaylightCycle false
10. Chain Command Block: /gamerule randomTickSpeed 0
11. Chain Command Block (Optional): /effect give @e[type=!minecraft:player] minecraft:slowness 999 6
12. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:carrot_on_a_stick",tag:{display:{Name:"{\"text\":\"Speed Up Time\"}"}}}}] run scoreboard players set @e[scores={Time=1..}] Time 0
13. Chain Command Block: /time add 250
14. Chain Command Block: /gamerule randomTickSpeed 1000
15. Chain Command Block (Optional): /effect give @e[type=!minecraft:player] minecraft:speed 999 4
16. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:clock",tag:{display:{Name:'{"text":"Master Time Clock"}'}}}}] run clear @p minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Resume Time\"}"}}
17. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:clock",tag:{display:{Name:'{"text":"Master Time Clock"}'}}}}] run clear @p minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Stop Time\"}"}}
18. Repeater Command Block: /execute if entity @a[nbt={SelectedItem:{id:"minecraft:clock",tag:{display:{Name:'{"text":"Master Time Clock"}'}}}}] run clear @p minecraft:carrot_on_a_stick{Enchantments:[{id:infinity,lvl:1,}],display:{Name:"{\"text\":\"Speed Up Time\"}"}}
Music:
1. Gaming Sound FX:
* Monkeys Spinning Monkeys (Kevin MacLeod) - Gaming Background Music (HD):
https://www.youtube.com/watch?v=pr42a...
Other Videos By RedstoneKnightX
Other Statistics
Minecraft Statistics For RedstoneKnightX
RedstoneKnightX presently has 1,527,317 views for Minecraft across 384 videos, with His channel uploaded over 2 days worth of Minecraft videos. This is 85.45% of the total watchable video on RedstoneKnightX's YouTube channel.