-
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
6 changed files
with
83 additions
and
2 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
38 changes: 38 additions & 0 deletions
38
Asset/data/asset/functions/mob/0391.axia_first/ai/animation/6_3_moving_spin/.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,38 @@ | ||
#> asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/ | ||
# | ||
# スピン移動 アニメーション | ||
# | ||
# @within function asset:mob/0391.axia_first/ai/animation/ | ||
|
||
# 対象プレイヤー保存 | ||
execute if score @s AV.AnimationTick matches 1 run scoreboard players operation @s AV.UUID = @p[tag=!PlayerShouldInvulnerable,distance=..100] UserID | ||
|
||
# プレイヤーの方を向く | ||
# 移動中は対象プレイヤーの方を向く | ||
tag @s add AV.Temp.This | ||
scoreboard players operation $AV.Temp AV.UUID = @s AV.UUID | ||
execute as @a if score @s UserID = $AV.Temp AV.UUID run function asset:mob/0391.axia_first/ai/general/2.rotate | ||
scoreboard players reset $AV.Temp AV.UUID | ||
|
||
# アニメーション再生 | ||
execute if score @s AV.AnimationTick matches 1 as @e[type=item_display,tag=AV.Root.This,distance=..100] run function animated_java:axia/animations/8_0_moving_spin/play | ||
|
||
# アニメーション終了処理 | ||
execute if score @s AV.AnimationTick matches 83 run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/end | ||
|
||
# 移動 | ||
# TP | ||
execute if score @s AV.AnimationTick matches 20..70 at @s positioned ^ ^ ^0.415 run function asset:mob/0391.axia_first/ai/general/1.teleport | ||
|
||
# ダメージ&サウンド | ||
execute if score @s AV.AnimationTick matches 20 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
execute if score @s AV.AnimationTick matches 25 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
execute if score @s AV.AnimationTick matches 30 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
execute if score @s AV.AnimationTick matches 35 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
execute if score @s AV.AnimationTick matches 40 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
execute if score @s AV.AnimationTick matches 45 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
execute if score @s AV.AnimationTick matches 50 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
execute if score @s AV.AnimationTick matches 55 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
execute if score @s AV.AnimationTick matches 60 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
execute if score @s AV.AnimationTick matches 65 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
execute if score @s AV.AnimationTick matches 70 at @s run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage |
25 changes: 25 additions & 0 deletions
25
...t/data/asset/functions/mob/0391.axia_first/ai/animation/6_3_moving_spin/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,25 @@ | ||
#> asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/damage | ||
# | ||
# ダメージ処理 | ||
# | ||
# @within function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/ | ||
|
||
# サウンド | ||
function asset:mob/0391.axia_first/ai/general/5.slash_sound | ||
|
||
# ダメージ | ||
# 引数の設定 | ||
# 与えるダメージ | ||
data modify storage lib: Argument.Damage set value 35.0f | ||
# 第一属性 | ||
data modify storage lib: Argument.AttackType set value "Physical" | ||
# 第二属性 | ||
data modify storage lib: Argument.ElementType set value "Fire" | ||
# デスログ | ||
data modify storage lib: Argument.DeathMessage append value '[{"translate": "%1$sは%2$sによってみじん切りにされてしまった","with":[{"selector":"@s"},{"nbt":"Return.AttackerName","storage":"lib:","interpret":true}]}]' | ||
# 補正functionを実行 | ||
function lib:damage/modifier | ||
# ダメージを与える | ||
execute as @a[tag=!PlayerShouldInvulnerable,distance=..3] at @s run function lib:damage/ | ||
# リセット | ||
function lib:damage/reset |
12 changes: 12 additions & 0 deletions
12
Asset/data/asset/functions/mob/0391.axia_first/ai/animation/6_3_moving_spin/end.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,12 @@ | ||
#> asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/end | ||
# | ||
# 終了処理 | ||
# | ||
# @within function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/ | ||
|
||
# デバッグ用 アニメーションループ | ||
scoreboard players set @s AV.AnimationNum 63 | ||
scoreboard players set @s AV.AnimationTick 0 | ||
|
||
# デバッグ用 | ||
scoreboard players reset @s AV.UUID |