Skip to content

Commit

Permalink
被ダメ演出を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Lapis-LJA committed Feb 16, 2024
1 parent 22129ef commit c5b2ad6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#> asset:mob/0152.desire/hurt/1.trigger
#
# Mobの被ダメージに実行されるfunction
#
# @within tag/function asset:mob/hurt

execute if data storage asset:context {id:152} run function asset:mob/0152.desire/hurt/2.hurt
12 changes: 12 additions & 0 deletions Asset/data/asset/functions/mob/0152.desire/hurt/2.hurt.mcfunction
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#> asset:mob/0152.desire/hurt/2.hurt
#
# Mobの被ダメージ時の処理
#
# @within function asset:mob/0152.desire/hurt/1.trigger

# 演出
particle minecraft:cloud ~ ~1.3 ~ 0 0 0 0.05 20
particle dragon_breath ~ ~1.3 ~ 0 0 0 0.05 30
playsound minecraft:entity.evoker.cast_spell hostile @a ~ ~ ~ 0.7 1
playsound minecraft:entity.evoker.cast_spell hostile @a ~ ~ ~ 0.7 0.8
playsound minecraft:entity.evoker.cast_spell hostile @a ~ ~ ~ 0.7 0.6
1 change: 1 addition & 0 deletions Asset/data/asset/tags/functions/mob/hurt.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"values": [
"asset:mob/0152.desire/hurt/1.trigger",
"asset:mob/0265.dark_familiar/hurt/1.trigger",
"asset:mob/0264.dark_summoner/hurt/1.trigger",
"asset:mob/0273.hell_blade/hurt/1.trigger",
Expand Down

0 comments on commit c5b2ad6

Please sign in to comment.