minecraft-datapacks/datapacks/1ps-1556049967/data/1ps/functions/skipday.mcfunction

35 lines
2.6 KiB
Mcfunction

execute store result score @s 1ps.dayTimer run time query daytime
scoreboard players remove @s 1ps.dayTimer 24000
execute if entity @s[scores={1ps.dayTimer=..-16384}] run time add 16384
execute if entity @s[scores={1ps.dayTimer=..-16384}] run scoreboard players add @s 1ps.dayTimer 16384
execute if entity @s[scores={1ps.dayTimer=..-8192}] run time add 8192
execute if entity @s[scores={1ps.dayTimer=..-8192}] run scoreboard players add @s 1ps.dayTimer 8192
execute if entity @s[scores={1ps.dayTimer=..-4096}] run time add 4096
execute if entity @s[scores={1ps.dayTimer=..-4096}] run scoreboard players add @s 1ps.dayTimer 4096
execute if entity @s[scores={1ps.dayTimer=..-2048}] run time add 2048
execute if entity @s[scores={1ps.dayTimer=..-2048}] run scoreboard players add @s 1ps.dayTimer 2048
execute if entity @s[scores={1ps.dayTimer=..-1024}] run time add 1024
execute if entity @s[scores={1ps.dayTimer=..-1024}] run scoreboard players add @s 1ps.dayTimer 1024
execute if entity @s[scores={1ps.dayTimer=..-512}] run time add 512
execute if entity @s[scores={1ps.dayTimer=..-512}] run scoreboard players add @s 1ps.dayTimer 512
execute if entity @s[scores={1ps.dayTimer=..-256}] run time add 256
execute if entity @s[scores={1ps.dayTimer=..-256}] run scoreboard players add @s 1ps.dayTimer 256
execute if entity @s[scores={1ps.dayTimer=..-128}] run time add 128
execute if entity @s[scores={1ps.dayTimer=..-128}] run scoreboard players add @s 1ps.dayTimer 128
execute if entity @s[scores={1ps.dayTimer=..-64}] run time add 64
execute if entity @s[scores={1ps.dayTimer=..-64}] run scoreboard players add @s 1ps.dayTimer 64
execute if entity @s[scores={1ps.dayTimer=..-32}] run time add 32
execute if entity @s[scores={1ps.dayTimer=..-32}] run scoreboard players add @s 1ps.dayTimer 32
execute if entity @s[scores={1ps.dayTimer=..-16}] run time add 16
execute if entity @s[scores={1ps.dayTimer=..-16}] run scoreboard players add @s 1ps.dayTimer 16
execute if entity @s[scores={1ps.dayTimer=..-8}] run time add 8
execute if entity @s[scores={1ps.dayTimer=..-8}] run scoreboard players add @s 1ps.dayTimer 8
execute if entity @s[scores={1ps.dayTimer=..-4}] run time add 4
execute if entity @s[scores={1ps.dayTimer=..-4}] run scoreboard players add @s 1ps.dayTimer 4
execute if entity @s[scores={1ps.dayTimer=..-2}] run time add 2
execute if entity @s[scores={1ps.dayTimer=..-2}] run scoreboard players add @s 1ps.dayTimer 2
execute if entity @s[scores={1ps.dayTimer=..-1}] run time add 1
execute if entity @s[scores={1ps.dayTimer=..-1}] run scoreboard players add @s 1ps.dayTimer 1