Upgrade 1ps

This commit is contained in:
Daniel Løvbrøtte Olsen 2019-09-13 17:17:05 +02:00
parent 48cff062ce
commit 1708bd1ae5
9 changed files with 43 additions and 4 deletions

View File

@ -1 +0,0 @@
execute if entity @a[nbt={Sleeping:1b}] run function 1ps:internal_loop

View File

@ -1,3 +1,3 @@
time add 125
execute as @a[nbt={SleepTimer:1s}] run tellraw @a [{"selector":"@s","color":"yellow"},{"text":" is now sleeping ","color":"yellow"}]
execute if entity @a[nbt={SleepTimer:99s}] run weather clear 0
execute as @a[nbt={SleepTimer:99s}] run function 1ps:skipday
execute if entity @a[nbt={SleepTimer:100s}] run weather clear 0

View File

@ -0,0 +1 @@
scoreboard objectives add 1ps.dayTimer dummy

View File

@ -0,0 +1 @@
execute if entity @a[nbt=!{SleepTimer:0s}] run function 1ps:internal_loop

View File

@ -0,0 +1,34 @@
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

View File

@ -0,0 +1,4 @@
{
"replace": false,
"values": ["1ps:load"]
}