mirror of
https://codeberg.org/vlw/mc-daynight.git
synced 2026-04-12 18:59:38 +02:00
13 lines
788 B
MCFunction
Executable file
13 lines
788 B
MCFunction
Executable file
# Stop main execution loop
|
|
schedule clear _daynight:tick
|
|
|
|
# Restore initial advance_time gamerule state
|
|
execute as @e[ name=daynight_entity_daytime, type=armor_stand, x=0.0, y=0.0, z=0.0 ] if score @s daynight_score_runtime_gamerule_advancetime matches 1 run gamerule advance_time true
|
|
execute as @e[ name=daynight_entity_daytime, type=armor_stand, x=0.0, y=0.0, z=0.0 ] if score @s daynight_score_runtime_gamerule_advancetime matches 0 run gamerule advance_time false
|
|
|
|
# Remove runtime scoreboards
|
|
scoreboard objectives remove daynight_score_runtime_daytime_tick
|
|
scoreboard objectives remove daynight_score_runtime_advance_time_mtick
|
|
scoreboard objectives remove daynight_score_runtime_gamerule_advancetime
|
|
|
|
kill @e[ name=daynight_entity_daytime, type=armor_stand, x=0.0, y=0.0, z=0.0 ]
|