10 lines
584 B
Mcfunction
10 lines
584 B
Mcfunction
|
tellraw @a[scores={me-debugging=1..}] "undeadm-m1:use/magic_missile"
|
||
|
|
||
|
## spawn projectile
|
||
|
execute unless score @s me-weap_staffCD > $0 me-weap_staffCD run function undeadm-m1:spawn/fire_blast
|
||
|
|
||
|
# set CD equal to entity max time + 10
|
||
|
execute unless score @s me-weap_staffCD > $0 me-weap_staffCD run execute at @s as @e[tag=FireBlast] if score @s me-core_uid = @p me-core_uid run scoreboard players operation @p me-weap_staffCD = @s me-core_entityMT
|
||
|
|
||
|
execute unless score @s me-weap_staffCD > $0 me-weap_staffCD run scoreboard players operation @s me-weap_staffCD += $10 me-weap_staffCD
|