a6a13003c2
The mod (airdef-mod/), its generated models and sounds, the fork's patches over upstream Horizon (horizon-patches/, HORIZON_COMMIT), a cross-platform build/install/run script (tools/airdef.py), CI that builds and releases on every push (.gitea/workflows/build.yml) and a setup guide (docs/INSTALL.md). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
10 lines
744 B
MCFunction
10 lines
744 B
MCFunction
scoreboard players add $tick airdef.t 1
|
|
scoreboard players operation $m10 airdef.tmp = $tick airdef.t
|
|
scoreboard players operation $m10 airdef.tmp %= $10 airdef.tmp
|
|
execute as @e[type=item,tag=!airdef.used] if data entity @s Item.components."minecraft:custom_data".airdef run function airdef:player/dropped
|
|
execute if score $m10 airdef.tmp matches 0 as @e[type=marker,tag=airdef.target] at @s run function airdef:target/tick
|
|
execute as @e[type=marker,tag=airdef.drone] at @s run function airdef:drone/tick
|
|
execute as @e[type=marker,tag=airdef.sam] at @s run function airdef:sam/tick
|
|
execute as @e[type=marker,tag=airdef.missile] at @s run function airdef:missile/tick
|
|
execute if score $m10 airdef.tmp matches 0 run function airdef:alert/update
|