minecraft-expanded-datapack/data/undeadm-core/functions/init.mcfunction

53 lines
1.4 KiB
Mcfunction
Raw Normal View History

2021-02-20 11:10:44 +00:00
# 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
# random lib calls
function undeadm-random:init
2021-02-20 11:10:44 +00:00
#weapons mod
function undeadm-m1:init
#villager mod
function undeadm-m2:init
2021-02-20 11:10:44 +00:00
### 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
scoreboard objectives add me-core_drinkP minecraft.used:minecraft.potion
scoreboard objectives add me-core_drinkM minecraft.used:minecraft.milk_bucket
2021-02-20 11:10:44 +00:00
scoreboard objectives add me-core_rc minecraft.used:minecraft.carrot_on_a_stick
scoreboard objectives add me-core_shift minecraft.custom:minecraft.sneak_time
scoreboard objectives add me-core_talk minecraft.custom:minecraft.talked_to_villager
2021-02-20 11:10:44 +00:00
## 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