-
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
32 changed files
with
407 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
14 changes: 14 additions & 0 deletions
14
Asset/data/asset/functions/mob/0392.ecual_first/ai/animation/8_0_quietus_rain/.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,14 @@ | ||
#> asset:mob/0392.ecual_first/ai/animation/8_0_quietus_rain/ | ||
# | ||
# クワイタスレイン アニメーション | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/animation/ | ||
|
||
# アニメーション再生 | ||
execute if score @s AW.AnimationTick matches 1 as @e[type=item_display,tag=AW.Root.This,distance=..100] run function animated_java:ecual/animations/8_0_quietus_rain/play | ||
|
||
# アニメーション終了処理 | ||
execute if score @s AW.AnimationTick matches 151 run function asset:mob/0392.ecual_first/ai/animation/8_0_quietus_rain/end | ||
|
||
# クワイタスレイン 発動 | ||
execute if score @s AW.AnimationTick matches 31 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/0.summon |
9 changes: 9 additions & 0 deletions
9
Asset/data/asset/functions/mob/0392.ecual_first/ai/animation/8_0_quietus_rain/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,9 @@ | ||
#> asset:mob/0392.ecual_first/ai/animation/8_0_quietus_rain/end | ||
# | ||
# 終了処理 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/animation/8_0_quietus_rain/ | ||
|
||
# デバッグ用 アニメーションループ | ||
scoreboard players set @s AW.AnimationNum 80 | ||
scoreboard players set @s AW.AnimationTick -250 |
34 changes: 34 additions & 0 deletions
34
Asset/data/asset/functions/mob/0392.ecual_first/ai/animation/9_0_water_wall/.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,34 @@ | ||
#> asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/ | ||
# | ||
# ウォーターウォール アニメーション | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/animation/ | ||
|
||
# 近くのプレイヤーの方を向く | ||
tag @s add AW.Temp.This | ||
execute if predicate api:global_vars/difficulty/max/normal if score @s AW.AnimationTick matches 1..36 as @p[tag=!PlayerShouldInvulnerable,distance=..100] run function asset:mob/0392.ecual_first/ai/general/2.rotate | ||
execute if predicate api:global_vars/difficulty/min/hard if score @s AW.AnimationTick matches 1..36 as @p[tag=!PlayerShouldInvulnerable,distance=..100] run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/predict/ | ||
execute if score @s AW.AnimationTick matches 71..96 as @p[tag=!PlayerShouldInvulnerable,distance=..100] run function asset:mob/0392.ecual_first/ai/general/2.rotate | ||
tag @s remove AW.Temp.This | ||
|
||
# アニメーション再生 | ||
execute if score @s AW.AnimationTick matches 1 as @e[type=item_display,tag=AW.Root.This,distance=..100] run function animated_java:ecual/animations/9_0_water_wall/play | ||
|
||
# アニメーション終了処理 | ||
execute if score @s AW.AnimationTick matches 96 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/end | ||
|
||
# 予告線 | ||
execute if score @s AW.AnimationTick matches 16 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/announce | ||
|
||
# ウォーターウォール 発動 | ||
execute positioned ^ ^ ^1 if score @s AW.AnimationTick matches 38 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
execute positioned ^ ^ ^4 if score @s AW.AnimationTick matches 41 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
execute positioned ^ ^ ^7 if score @s AW.AnimationTick matches 44 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
execute positioned ^ ^ ^10 if score @s AW.AnimationTick matches 47 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
execute positioned ^ ^ ^13 if score @s AW.AnimationTick matches 50 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
execute positioned ^ ^ ^16 if score @s AW.AnimationTick matches 53 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
execute positioned ^ ^ ^19 if score @s AW.AnimationTick matches 56 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
execute positioned ^ ^ ^22 if score @s AW.AnimationTick matches 59 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
execute positioned ^ ^ ^25 if score @s AW.AnimationTick matches 62 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
execute positioned ^ ^ ^28 if score @s AW.AnimationTick matches 65 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
execute positioned ^ ^ ^31 if score @s AW.AnimationTick matches 68 run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon |
11 changes: 11 additions & 0 deletions
11
...data/asset/functions/mob/0392.ecual_first/ai/animation/9_0_water_wall/announce.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,11 @@ | ||
#> asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/announce | ||
# | ||
# 予告線 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/ | ||
|
||
execute anchored eyes run summon item_display ^ ^ ^2 {interpolation_duration:0,teleport_duration:0,Tags:["AW.AnnounceInit"],brightness:{sky:15,block:15},transformation:{left_rotation:[0f,0f,0.383f,0.924f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,20f],scale:[0f,0f,40f]},item:{id:"minecraft:light_blue_stained_glass",Count:1b}} | ||
|
||
execute anchored eyes positioned ^ ^ ^2 as @e[tag=AW.AnnounceInit,distance=..0.1] run tp @s ^ ^ ^ ~ ~ | ||
|
||
execute anchored eyes positioned ^ ^ ^2 as @e[tag=AW.AnnounceInit,distance=..0.1] run function asset:mob/0392.ecual_first/ai/projectile/announce_line/1.init.m {Num:-20} |
9 changes: 9 additions & 0 deletions
9
Asset/data/asset/functions/mob/0392.ecual_first/ai/animation/9_0_water_wall/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,9 @@ | ||
#> asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/end | ||
# | ||
# 終了処理 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/ | ||
|
||
# デバッグ用 アニメーションループ | ||
scoreboard players set @s AW.AnimationNum 90 | ||
scoreboard players set @s AW.AnimationTick 0 |
34 changes: 34 additions & 0 deletions
34
...data/asset/functions/mob/0392.ecual_first/ai/animation/9_0_water_wall/predict/.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,34 @@ | ||
#> asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/predict/ | ||
# | ||
# 偏差向き | ||
# | ||
# @within function | ||
# asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/ | ||
|
||
# 攻撃対象にTagを付与 | ||
tag @p[tag=!PlayerShouldInvulnerable,distance=..100] add AW.Temp.Target | ||
|
||
# 攻撃対象のベクトルを取得 | ||
execute as @p[tag=AW.Temp.Target,distance=..100] run function api:player_vector/get | ||
|
||
# セッション開ける | ||
function lib:array/session/open | ||
|
||
# ベクトルを10倍する | ||
data modify storage lib: Array set from storage api: Return.Vector | ||
data modify storage lib: Mul set value 25 | ||
function lib:array/math/scalar_multiply | ||
|
||
# 別のstorageに移す | ||
data modify storage asset:temp Predict.X set from storage lib: MulResult[0] | ||
data modify storage asset:temp Predict.Z set from storage lib: MulResult[2] | ||
|
||
# セッション閉じる | ||
function lib:array/session/close | ||
|
||
# マクロで偏差撃ちする | ||
execute as @p[tag=AW.Temp.Target,distance=..100] at @s run function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/predict/m with storage asset:temp Predict | ||
|
||
# リセット | ||
tag @p[tag=AW.Temp.Target,distance=..100] remove AW.Temp.Target | ||
data remove storage asset:temp Predict |
17 changes: 17 additions & 0 deletions
17
...ata/asset/functions/mob/0392.ecual_first/ai/animation/9_0_water_wall/predict/m.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,17 @@ | ||
#> asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/predict/m | ||
# | ||
# 偏差実行 | ||
# | ||
# @input args | ||
# X : Double | ||
# Z : Double | ||
# @within function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/predict/ | ||
|
||
# マーカー召喚 | ||
$execute positioned ~$(X) ~ ~$(Z) if entity @s[distance=..30] run summon marker ~ ~ ~ {Tags:["AW.Predict"]} | ||
|
||
# 向き調整 | ||
execute as @e[type=wither_skeleton,tag=AW.Temp.This,distance=..64,sort=nearest,limit=1] at @s facing entity @e[type=marker,tag=AW.Predict,distance=..64,limit=1] feet rotated ~ 0 run tp @s ^ ^ ^ ~ 0 | ||
|
||
# マーカー削除 | ||
kill @e[type=marker,tag=AW.Predict,distance=..30] |
11 changes: 11 additions & 0 deletions
11
...t/data/asset/functions/mob/0392.ecual_first/ai/animation/9_0_water_wall/summon.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,11 @@ | ||
#> asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/summon | ||
# | ||
# ウォーターウォール 召喚 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/animation/9_0_water_wall/ | ||
|
||
execute positioned ^-6 ^ ^ run function asset:mob/0392.ecual_first/ai/projectile/water_wall/0.summon | ||
execute positioned ^-3 ^ ^ run function asset:mob/0392.ecual_first/ai/projectile/water_wall/0.summon | ||
execute positioned ^ ^ ^ run function asset:mob/0392.ecual_first/ai/projectile/water_wall/0.summon | ||
execute positioned ^3 ^ ^ run function asset:mob/0392.ecual_first/ai/projectile/water_wall/0.summon | ||
execute positioned ^6 ^ ^ run function asset:mob/0392.ecual_first/ai/projectile/water_wall/0.summon |
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
8 changes: 8 additions & 0 deletions
8
.../data/asset/functions/mob/0392.ecual_first/ai/projectile/quietus_rain/0.summon.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,8 @@ | ||
#> asset:mob/0392.ecual_first/ai/projectile/quietus_rain/0.summon | ||
# | ||
# クワイタスレイン 召喚 | ||
# | ||
# @within function asset:mob/0392.ecual_first/** | ||
|
||
# マーカーを召喚 | ||
execute summon marker at @s run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/1.init |
23 changes: 23 additions & 0 deletions
23
Asset/data/asset/functions/mob/0392.ecual_first/ai/projectile/quietus_rain/1.init.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/projectile/quietus_rain/1.init | ||
# | ||
# 初期化処理 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/0.summon | ||
|
||
# スコア初期化 | ||
scoreboard players set @s AW.ProjectileTick 0 | ||
|
||
# タグ付け | ||
tag @s add AW.QuietusRain | ||
|
||
# マーカーを呼ぶ | ||
tp 0-0-0-0-0 ^ ^ ^ ~ ~ | ||
|
||
# 演出のためにランダムな方向を向かせる | ||
execute store result entity 0-0-0-0-0 Rotation[0] float 0.01 run random value 0..36000 | ||
|
||
# TP | ||
execute at @e[type=marker,tag=AW.Marker.SummonPoint,distance=..64] rotated as 0-0-0-0-0 run tp @s ~ ~ ~ ~ 0 | ||
|
||
# マーカーを戻してあげる | ||
execute in overworld run tp 0-0-0-0-0 0.0 0.0 0.0 |
21 changes: 21 additions & 0 deletions
21
Asset/data/asset/functions/mob/0392.ecual_first/ai/projectile/quietus_rain/2.tick.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,21 @@ | ||
#> asset:mob/0392.ecual_first/ai/projectile/quietus_rain/2.tick | ||
# | ||
# クワイタスレイン Tick処理 | ||
# | ||
# @within function asset:mob/0392.ecual_first/tick/ | ||
|
||
# スコア上昇 | ||
scoreboard players add @s AW.ProjectileTick 1 | ||
|
||
# 召喚 | ||
execute if score @s AW.ProjectileTick matches 1 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/summon/1 | ||
execute if score @s AW.ProjectileTick matches 31 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/summon/2 | ||
execute if score @s AW.ProjectileTick matches 51 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/summon/3 | ||
|
||
# 回転 | ||
execute as @e[type=item_display,tag=AW.QuietusRainMagic,distance=7..8] at @s run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotate/1 | ||
execute as @e[type=item_display,tag=AW.QuietusRainMagic,distance=14.5..15.5] at @s run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotate/2 | ||
execute as @e[type=item_display,tag=AW.QuietusRainMagic,distance=22..23] at @s run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotate/3 | ||
|
||
# キル | ||
execute if score @s AW.ProjectileTick matches 360 run kill @s |
8 changes: 8 additions & 0 deletions
8
.../data/asset/functions/mob/0392.ecual_first/ai/projectile/quietus_rain/rotate/1.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,8 @@ | ||
#> asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotate/1 | ||
# | ||
# 回転 1段階 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/2.tick | ||
|
||
# 幾何学を使用して回転させる | ||
execute facing entity @e[type=marker,tag=AW.Marker.SummonPoint,distance=..10,sort=nearest,limit=1] feet positioned ^ ^ ^7.5 rotated ~2 0 positioned ^ ^ ^-7.5 run tp @s ^ ^ ^ ~ ~ |
8 changes: 8 additions & 0 deletions
8
.../data/asset/functions/mob/0392.ecual_first/ai/projectile/quietus_rain/rotate/2.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,8 @@ | ||
#> asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotate/2 | ||
# | ||
# 回転 2段目 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/2.tick | ||
|
||
# 幾何学を使用して回転させる | ||
execute facing entity @e[type=marker,tag=AW.Marker.SummonPoint,distance=..20,sort=nearest,limit=1] feet positioned ^ ^ ^15 rotated ~-2 0 positioned ^ ^ ^-15 run tp @s ^ ^ ^ ~ ~ |
8 changes: 8 additions & 0 deletions
8
.../data/asset/functions/mob/0392.ecual_first/ai/projectile/quietus_rain/rotate/3.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,8 @@ | ||
#> asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotate/3 | ||
# | ||
# 回転 3段目 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/2.tick | ||
|
||
# 幾何学を使用して回転させる | ||
execute facing entity @e[type=marker,tag=AW.Marker.SummonPoint,distance=..25,sort=nearest,limit=1] feet positioned ^ ^ ^22.5 rotated ~2 0 positioned ^ ^ ^-22.5 run tp @s ^ ^ ^ ~ ~ |
14 changes: 14 additions & 0 deletions
14
...s/mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon.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,14 @@ | ||
#> asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
# | ||
# 設置水魔法 召喚 | ||
# | ||
# @within function asset:mob/0392.ecual_first/** | ||
|
||
# 本体召喚 | ||
summon item_display ~ ~ ~ {Tags:["AW.WaterMagic","AW.QuietusRainMagic","AW.ProjectileInit"],interpolation_duration:30,teleport_duration:1,brightness:{sky:15,block:15},transformation:{left_rotation:[0.7071f,0f,0f,0.7071f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0f,0f,0.01f]},item:{id:"minecraft:leather_horse_armor",Count:1b,tag:{display:{color:33023},CustomModelData:20364}},Passengers:[{id:"item_display",Tags:["AW.WaterMagicDisplay","AW.ProjectileInit"],interpolation_duration:30,teleport_duration:1,brightness:{sky:15,block:15},transformation:{left_rotation:[0.7071f,0f,0f,0.7071f],right_rotation:[0f,0f,0f,1f],translation:[0f,0.1f,0f],scale:[0f,0f,0.01f]},item:{id:"minecraft:leather_horse_armor",Count:1b,tag:{display:{color:33023},CustomModelData:20365}},Passengers:[{id:"item_display",Tags:["AW.WaterMagicDisplay","AW.ProjectileInit"],interpolation_duration:30,teleport_duration:1,brightness:{sky:15,block:15},transformation:{left_rotation:[0.7071f,0f,0f,0.7071f],right_rotation:[0f,0f,0f,1f],translation:[0f,0f,0f],scale:[0f,0f,0.01f]},item:{id:"minecraft:leather_horse_armor",Count:1b,tag:{display:{color:33023},CustomModelData:20366}}}]}]} | ||
|
||
# Init処理 | ||
execute as @e[type=item_display,tag=AW.WaterMagic,tag=AW.ProjectileInit,distance=..0.01] run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/1.init | ||
|
||
# リセット | ||
scoreboard players reset $AW.Temp Temporary |
14 changes: 14 additions & 0 deletions
14
...ons/mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/1.init.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,14 @@ | ||
#> asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/1.init | ||
# | ||
# 初期化処理 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
|
||
# スコア初期化 | ||
scoreboard players set @s AW.ProjectileTick 0 | ||
|
||
# TP | ||
execute at @s run tp @e[type=item_display,tag=AW.ProjectileInit,distance=..0.01] ~ ~ ~ ~ 0 | ||
|
||
# タグ外し | ||
execute at @s run tag @e[type=item_display,tag=AW.ProjectileInit,distance=..0.01] remove AW.ProjectileInit |
13 changes: 13 additions & 0 deletions
13
.../data/asset/functions/mob/0392.ecual_first/ai/projectile/quietus_rain/summon/1.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,13 @@ | ||
#> asset:mob/0392.ecual_first/ai/projectile/quietus_rain/summon/1 | ||
# | ||
# 召喚 1段目 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/2.tick | ||
|
||
function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute positioned ^ ^ ^7.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/max/normal rotated ~120 ~ positioned ^ ^ ^7.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/max/normal rotated ~240 ~ positioned ^ ^ ^7.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/min/hard rotated ~90 ~ positioned ^ ^ ^7.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/min/hard rotated ~180 ~ positioned ^ ^ ^7.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/min/hard rotated ~270 ~ positioned ^ ^ ^7.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon |
12 changes: 12 additions & 0 deletions
12
.../data/asset/functions/mob/0392.ecual_first/ai/projectile/quietus_rain/summon/2.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/0392.ecual_first/ai/projectile/quietus_rain/summon/2 | ||
# | ||
# 召喚 2段目 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/2.tick | ||
|
||
execute positioned ^ ^ ^15 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/max/normal rotated ~120 ~ positioned ^ ^ ^15 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/max/normal rotated ~240 ~ positioned ^ ^ ^15 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/min/hard rotated ~90 ~ positioned ^ ^ ^15 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/min/hard rotated ~180 ~ positioned ^ ^ ^15 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/min/hard rotated ~270 ~ positioned ^ ^ ^15 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon |
12 changes: 12 additions & 0 deletions
12
.../data/asset/functions/mob/0392.ecual_first/ai/projectile/quietus_rain/summon/3.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/0392.ecual_first/ai/projectile/quietus_rain/summon/3 | ||
# | ||
# 召喚 3段目 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/2.tick | ||
|
||
execute positioned ^ ^ ^22.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/max/normal rotated ~120 ~ positioned ^ ^ ^22.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/max/normal rotated ~240 ~ positioned ^ ^ ^22.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/min/hard rotated ~90 ~ positioned ^ ^ ^22.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/min/hard rotated ~180 ~ positioned ^ ^ ^22.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon | ||
execute if predicate api:global_vars/difficulty/min/hard rotated ~270 ~ positioned ^ ^ ^22.5 run function asset:mob/0392.ecual_first/ai/projectile/quietus_rain/rotated_water_magic/0.summon |
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
8 changes: 8 additions & 0 deletions
8
Asset/data/asset/functions/mob/0392.ecual_first/ai/projectile/water_wall/0.summon.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,8 @@ | ||
#> asset:mob/0392.ecual_first/ai/projectile/water_wall/0.summon | ||
# | ||
# 衝撃波 召喚 | ||
# | ||
# @within function asset:mob/0392.ecual_first/** | ||
|
||
# 元となるMobを召喚 | ||
execute summon marker run function asset:mob/0392.ecual_first/ai/projectile/water_wall/1.init |
26 changes: 26 additions & 0 deletions
26
Asset/data/asset/functions/mob/0392.ecual_first/ai/projectile/water_wall/1.init.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,26 @@ | ||
#> asset:mob/0392.ecual_first/ai/projectile/water_wall/1.init | ||
# | ||
# 初期化処理 | ||
# | ||
# @within function asset:mob/0392.ecual_first/ai/projectile/water_wall/0.summon | ||
|
||
# TP | ||
tp @s ~ ~ ~ ~ 0 | ||
|
||
# タグ付け | ||
tag @s add AW.WaterWall | ||
|
||
# スコア初期化 | ||
scoreboard players set @s AW.ProjectileTick 0 | ||
|
||
# ループ処理 | ||
scoreboard players set $AW.Temp Temporary 32 | ||
execute if block ~ ~ ~ #lib:no_collision unless block ~ ~-0.25 ~ #lib:no_collision run scoreboard players set $AW.Temp Temporary -100 | ||
execute at @s if score $AW.Temp Temporary matches 1.. run function asset:mob/0392.ecual_first/ai/projectile/water_magic/1.1.loop | ||
|
||
# ループしてもダメだったらキル | ||
execute if score $AW.Temp Temporary matches 0 run kill @s | ||
|
||
# リセット | ||
scoreboard players reset $AW.Temp Temporary | ||
execute at @s run tag @e[tag=AW.Temp.This,distance=..0.001] remove AW.Temp.This |
Oops, something went wrong.