Files
airdef/legacy/airdef-datapack/data/airdef/function/player/dropped.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

7 lines
461 B
MCFunction

# Пульт срабатывает, если его бросить (Q), и сразу возвращается бросившему:
# ПКМ и Shift в тиковых функциях Horizon пока не видны.
tag @s add airdef.used
function airdef:player/act with entity @s Item.components."minecraft:custom_data"
data modify entity @s PickupDelay set value 0s
execute on origin at @s run tp @e[type=item,tag=airdef.used,sort=nearest,limit=1] ~ ~ ~