-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...ata/asset/functions/mob/0392.ecual_first/ai/animation/7_0_holy_ray/beam/damage.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#> asset:mob/0392.ecual_first/ai/animation/7_0_holy_ray/beam/damage | ||
# | ||
# ダメージ処理 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/animation/7_0_holy_ray/beam/loop | ||
|
||
# ダメージ設定 | ||
# ダメージ | ||
data modify storage lib: Argument.Damage set value 20.0f | ||
# 第一属性 | ||
data modify storage lib: Argument.AttackType set value "Magic" | ||
# 第二属性 | ||
data modify storage lib: Argument.ElementType set value "Water" | ||
# 死亡ログ | ||
data modify storage lib: Argument.DeathMessage set value '[{"translate": "%1$sは%2$sの光線により身を焼かれて息絶えた","with":[{"selector":"@s"},{"nbt":"Return.AttackerName","storage":"lib:","interpret":true}]}]' | ||
# ダメージを与える | ||
execute as @e[tag=this,distance=..100] run function lib:damage/modifier | ||
execute as @a[tag=AW.Temp.Target,distance=..5] run function lib:damage/ | ||
# リセット | ||
function lib:damage/reset | ||
|
||
# 着弾タグを消す | ||
tag @a[tag=AW.Temp.Target,distance=..5] remove AW.Temp.Target |
30 changes: 30 additions & 0 deletions
30
.../data/asset/functions/mob/0392.ecual_first/ai/animation/7_0_holy_ray/beam/loop.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#> asset:mob/0392.ecual_first/ai/animation/7_0_holy_ray/beam/loop | ||
# | ||
# ループ処理 | ||
# | ||
# @within function | ||
# asset:mob/0392.ecual_first/ai/animation/7_0_holy_ray/beam/ | ||
# asset:mob/0392.ecual_first/ai/animation/7_0_holy_ray/beam/loop | ||
|
||
# ビームはブロックを破壊します | ||
execute unless block ^ ^ ^0.5 #lib:air unless block ^ ^ ^0.5 #lib:unbreakable run setblock ^ ^ ^0.5 air destroy | ||
|
||
# 着弾検知 | ||
execute positioned ~-0.5 ~-0.5 ~-0.5 if entity @p[tag=!PlayerShouldInvulnerable,dx=0] run tag @s add AW.Landing | ||
execute unless block ^ ^ ^1 #lib:no_collision run tag @s add AW.Landing | ||
|
||
# ターゲットにタグ付与 | ||
tag @a[tag=!PlayerShouldInvulnerable,dx=0] add AW.Temp.Target | ||
|
||
# 演出 | ||
particle dust 0.72 1 1 1 ~ ~ ~ 0.1 0.1 0.1 0 1 | ||
particle electric_spark ~ ~ ~ 0.15 0.15 0.15 0.1 2 | ||
particle fishing ~ ~ ~ 0.15 0.15 0.15 0.1 2 | ||
execute if predicate lib:random_pass_per/5 run particle end_rod ~ ~ ~ 0.15 0.15 0.15 0 1 | ||
execute if predicate lib:random_pass_per/25 run particle glow ~ ~ ~ 0.15 0.15 0.15 0 1 | ||
|
||
# 着弾 | ||
execute if entity @s[tag=AW.Landing] run function asset:mob/0392.ecual_first/ai/animation/7_0_holy_ray/beam/damage | ||
|
||
# 再起 | ||
execute positioned ^ ^ ^0.5 if entity @s[tag=!AW.Landing,distance=..45] run function asset:mob/0392.ecual_first/ai/animation/7_0_holy_ray/beam/loop |