Files
airdef/legacy/airdef-datapack/data/airdef/function/tick.mcfunction
T
chexit a6a13003c2
build / mod (push) Failing after 5m36s
build / game-linux (push) Has been skipped
build / game-macos (push) Has been cancelled
build / game-windows (push) Has been cancelled
build / release (push) Has been cancelled
AirDef: drones and air defence for a Horizon fork
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>
2026-10-28 19:16:52 +03:00

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