19 lines
866 B
Mcfunction
19 lines
866 B
Mcfunction
|
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
|
||
|
|