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>
11 lines
885 B
MCFunction
11 lines
885 B
MCFunction
# ПУ M903: тягач + полуприцеп (блоки), пакет ТПК — поворотная модель
|
|
$summon marker ~ ~ ~ {Tags:["airdef.sam","airdef.patriot","airdef.new"],Rotation:[$(yaw)f,0f],data:{prefix:"patriot_box",dy:1.0d,top:0,step:100,np:1,byaw:$(yaw),kind:"patriot"}}
|
|
$execute rotated $(yaw) 0 run setblock ^ ^ ^ airdef:patriot_trailer[facing=$(f)]
|
|
$execute rotated $(yaw) 0 run setblock ^ ^ ^3 airdef:patriot_truck[facing=$(f)]
|
|
execute as @e[type=marker,tag=airdef.new] run function airdef:new_id
|
|
scoreboard players set @e[tag=airdef.new] airdef.ammo 4
|
|
scoreboard players set @e[tag=airdef.new] airdef.cd 40
|
|
tag @e[tag=airdef.new] remove airdef.new
|
|
playsound minecraft:block.anvil.place master @a ~ ~ ~ 2 0.6
|
|
tellraw @a [{"text":"[AirDef] ","color":"gold"},{"text":"Patriot развёрнут: дальность 160, 4 ракеты PAC-3","color":"aqua"}]
|