2021-02-20 11:10:44 +00:00
|
|
|
tellraw @a[scores={me-debugging=1..}] "undeadm-core:scoreboards"
|
|
|
|
|
|
|
|
## custom scoresboard systems
|
|
|
|
|
|
|
|
# tickC - tick distributor handling
|
|
|
|
scoreboard players add $current me-core_tickC 1
|
|
|
|
execute if score $current me-core_tickC = $tps me-core_tickC run scoreboard players operation $current me-core_tickC -= $tps me-core_tickC
|
|
|
|
|
|
|
|
# entity maxtime
|
|
|
|
execute as @e[tag=EntityTimer] run scoreboard players add @s me-core_entityT 1
|
|
|
|
execute as @e[tag=EntityTimer] if score @s me-core_entityT >= @s me-core_entityC1 run tag @s add Control1
|
|
|
|
execute as @e[tag=EntityTimer] if score @s me-core_entityT >= @s me-core_entityPI run tag @s add PostInit
|
|
|
|
execute as @e[tag=EntityTimer] if score @s me-core_entityT >= @s me-core_entityMT run tag @s add Dying
|
|
|
|
|
|
|
|
## clean scoreboards (these represent bool checks)
|
|
|
|
scoreboard players reset @a me-core_rc
|
|
|
|
scoreboard players reset @a me-core_shift
|
2021-02-21 11:49:32 +00:00
|
|
|
scoreboard players reset @a me-core_drinkP
|
|
|
|
scoreboard players reset @a me-core_drinkM
|