48 lines
1.2 KiB
Mcfunction
48 lines
1.2 KiB
Mcfunction
# for debug
|
|
tellraw @a[scores={me-debugging=1..}] "undeadm-core:scoreboards"
|
|
|
|
# auto init clear (no more init during the game!)
|
|
data modify storage undeadm-core:init status set value 1
|
|
|
|
# try to init other modules
|
|
|
|
#weapons mod
|
|
function undeadm-m1:init
|
|
|
|
### core module
|
|
|
|
## core system
|
|
|
|
# for debug!
|
|
scoreboard objectives add me-debugging dummy
|
|
|
|
## tick counter
|
|
|
|
scoreboard objectives add me-core_tickC dummy
|
|
scoreboard players set $tps me-core_tickC 20
|
|
|
|
## assigners
|
|
|
|
scoreboard objectives add me-core_uid dummy
|
|
scoreboard players set $count me-core_uid 0
|
|
|
|
## player input checkers
|
|
|
|
# check for right click
|
|
scoreboard objectives add me-core_rc minecraft.used:minecraft.carrot_on_a_stick
|
|
|
|
# check for shifting
|
|
scoreboard objectives add me-core_shift minecraft.custom:minecraft.sneak_time
|
|
|
|
## custom entity trackers
|
|
|
|
# to keep custom entities alive for a specific amount of time: timer
|
|
scoreboard objectives add me-core_entityT dummy
|
|
|
|
# to keep custom entities alive for a specific amount of time: maxtime
|
|
scoreboard objectives add me-core_entityMT dummy
|
|
|
|
# to keep custom entities in check for a specific amount of time: control1
|
|
scoreboard objectives add me-core_entityC1 dummy
|
|
|