Skip to content

Commit

Permalink
移動スピンアニメーション追加
Browse files Browse the repository at this point in the history
  • Loading branch information
EllaCoat committed Aug 10, 2024
1 parent ecb9f98 commit b4a31fd
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@

# 居合い切り移動
execute if score @s AV.AnimationNum matches 62 run function asset:mob/0391.axia_first/ai/animation/6_2_moving_iai/

# スピン移動
execute if score @s AV.AnimationNum matches 63 run function asset:mob/0391.axia_first/ai/animation/6_3_moving_spin/

# 斬撃砲

Check failure on line 34 in Asset/data/asset/functions/mob/0391.axia_first/ai/animation/.mcfunction

View workflow job for this annotation

GitHub Actions / lint

Failed to resolve namespaced ID “asset:mob/0391.axia_first/ai/animation/7_0_zangekihou/” in cache category “function” (rule: “strictFunctionCheck”)
execute if score @s AV.AnimationNum matches 70 run function asset:mob/0391.axia_first/ai/animation/7_0_zangekihou/
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 第二属性
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}]}]'
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
# ダメージを与える
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# ダメージ
# 引数の設定
# 与えるダメージ
data modify storage lib: Argument.Damage set value 45.0f
data modify storage lib: Argument.Damage set value 40.0f
# 第一属性
data modify storage lib: Argument.AttackType set value "Physical"
# 第二属性
Expand Down
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
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
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

0 comments on commit b4a31fd

Please sign in to comment.