Skip to content

Commit

Permalink
死亡時処理と被弾処理 追記
Browse files Browse the repository at this point in the history
  • Loading branch information
EllaCoat committed Sep 19, 2024
1 parent c6128eb commit ef0fac0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@
#
# Mobの死亡時の処理
#
# @within function asset:mob/0393.labyria_first/_/death
# @within function asset:mob/0393.labyria_first/_/death

# デバッグ用
kill @e[type=marker,tag=AZ.Marker.SummonPoint]

# モデル削除
function animated_java:labyria/remove/all
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,17 @@
#
# Mobの被ダメージ時の処理
#
# @within function asset:mob/0393.labyria_first/_/hurt
# @within function asset:mob/0393.labyria_first/_/hurt

# モデルを紐づけ
tag @e[type=item_display,tag=AZ.ModelRoot,sort=nearest,limit=1] add AZ.Root.This

# 効果音
playsound entity.player.hurt hostile @a ~ ~ ~ 1 1

# 待機時 稀に怯む
# execute if score @s AZ.AnimationNum matches 10..11 if predicate api:global_vars/difficulty/max/normal unless score @s AZ.FalterCount matches 3.. if predicate lib:random_pass_per/25 run function asset:mob/0392.ecual_first/ai/general/6.falter_start
# execute if score @s AZ.AnimationNum matches 10..11 if predicate api:global_vars/difficulty/min/hard unless score @s AZ.FalterCount matches 2.. if predicate lib:random_pass_per/15 run function asset:mob/0392.ecual_first/ai/general/6.falter_start

# 紐づけ終了
tag @e[type=item_display,tag=AZ.Root.This,distance=..100] remove AZ.Root.This

0 comments on commit ef0fac0

Please sign in to comment.