Minecraft 1.15 E24 Off switch Part II
Channel: hotzst
Date: 06/04/2020

In this #Minecraft episode I continue to spend time in my #Redstone test world to investigate how to switch off machines automatically before the chunk gets unloaded.
Minecraft wiki on redstone clock:  https://minecraft.gamepedia.com/Mechanics/Redstone/Clock_circuit
Chunck loading in Minecraft: https://technical-minecraft.fandom.com/wiki/Chunk_Loading
Zero tick farms fixed in 1.16 by Ilmango: https://www.youtube.com/watch?v=I4qBVRw8UKM


Below you find all the commands used:
Create the objectives (used in chat, as they are only required once)
/scoreboard objectives add players dummy
/scoreboard objectives add zero dummy
/scoreboard players set @a zero 0


Commands used in command blocks on a redstone clock:
scoreboard players set @a players 0
The above triggers this one:
execute if entity @a run scoreboard players set @a players1
Separately ticked:
execute if score @a players = @s zero