From 5b73f11e17ccee50a727aee24b457b809300dc0c Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Mon, 16 Mar 2026 04:38:43 +0900 Subject: [PATCH 1/9] =?UTF-8?q?=E6=94=BB=E6=92=83=E5=88=A4=E5=AE=9A?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tick/3.damage.mcfunction | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/3.damage.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/3.damage.mcfunction index 4bef457d6b..d75fc73f3d 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/3.damage.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/3.damage.mcfunction @@ -4,31 +4,18 @@ # # @within function asset:mob/0274.death_saw_jiki/tick/ -#> private -# @private - #declare tag DamageTarget - # 演出 particle dust 1.000 0.741 0.141 1.3 ~ ~1.2 ~ 0.5 0.4 0.5 0 20 normal playsound minecraft:entity.firework_rocket.twinkle hostile @a ~ ~ ~ 0.7 1.5 0 playsound minecraft:entity.firework_rocket.twinkle hostile @a ~ ~ ~ 0.7 2.0 0 -# 属性ダメージ - # 与えるダメージ +# ダメージ data modify storage api: Argument.Damage set value 36f - # 第一属性 data modify storage api: Argument.AttackType set value "Physical" - # 第二属性 data modify storage api: Argument.ElementType set value "Thunder" - # 補正functionを実行 function api:damage/modifier - # 対象に - tag @e[type=#lib:living,type=!player,tag=Friend,distance=..1] add DamageTarget - tag @a[tag=!PlayerShouldInvulnerable,distance=..1] add DamageTarget - execute as @e[type=#lib:living,tag=DamageTarget,distance=..1] run function api:damage/ - # リセット + execute positioned ~-0.5 ~-0.5 ~-0.5 as @a[tag=!PlayerShouldInvulnerable,dx=0] run function api:damage/ function api:damage/reset - tag @e[type=#lib:living,tag=DamageTarget,distance=..2] remove DamageTarget # クールタイムを与える scoreboard players set @s 7M.CoolTime 20 From 8d2c02f35a44169528d1d02c2199ea20097aa90e Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Mon, 16 Mar 2026 04:39:08 +0900 Subject: [PATCH 2/9] =?UTF-8?q?=E3=83=80=E3=83=A1=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=82=92=E4=B8=8E=E3=81=88=E3=82=8Bmcf=E3=81=AE=E6=8E=A1?= =?UTF-8?q?=E7=95=AA=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction | 2 +- .../tick/{3.damage.mcfunction => damage.mcfunction} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/{3.damage.mcfunction => damage.mcfunction} (94%) diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction index 9356dfaba8..48c90b4df6 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction @@ -26,4 +26,4 @@ # クールダウン scoreboard players remove @s[scores={7M.CoolTime=1..}] 7M.CoolTime 1 # ダメージ(スペクテイターでも発動するけどしゃーなし) - execute unless score @s 7M.CoolTime matches 1.. if entity @e[type=#lib:living,tag=Friend,distance=..0.75] run function asset:mob/0274.death_saw_jiki/tick/3.damage + execute unless score @s 7M.CoolTime matches 1.. if entity @e[type=#lib:living,tag=Friend,distance=..0.75] run function asset:mob/0274.death_saw_jiki/tick/damage diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/3.damage.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction similarity index 94% rename from Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/3.damage.mcfunction rename to Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction index d75fc73f3d..50a913cf4e 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/3.damage.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction @@ -1,4 +1,4 @@ -#> asset:mob/0274.death_saw_jiki/tick/3.damage +#> asset:mob/0274.death_saw_jiki/tick/damage # # # From 03467b73f69bd5b58e1074fa62b8337b5874000b Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Mon, 16 Mar 2026 04:45:26 +0900 Subject: [PATCH 3/9] =?UTF-8?q?=E3=83=80=E3=83=A1=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=82=92register=E3=81=A7=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mob/0274.death_saw_jiki/register.mcfunction | 9 +++++++++ .../mob/0274.death_saw_jiki/tick/damage.mcfunction | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/register.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/register.mcfunction index 42074d1332..b8e1ae5d5b 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/register.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/register.mcfunction @@ -1,6 +1,12 @@ #> asset:mob/0274.death_saw_jiki/register # @within asset:mob/alias/274/register +# 継承(オプション) + data modify storage asset:mob Extends append value 2004 + function asset:mob/extends +# 継承されることを前提とした、抽象的なモブであるかどうか(boolean) + data modify storage asset:mob IsAbstract set value false + # ID (int) data modify storage asset:mob ID set value 274 # Type (string) Wikiを参照 @@ -54,3 +60,6 @@ data modify storage asset:mob Resist.Water set value 1.2 # 雷倍率 (float) (オプション) data modify storage asset:mob Resist.Thunder set value 0.8 + +# ダメージ + data modify storage asset:mob Field.Damage set value 36f diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction index 50a913cf4e..0c628426b6 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction @@ -10,7 +10,7 @@ playsound minecraft:entity.firework_rocket.twinkle hostile @a ~ ~ ~ 0.7 2.0 0 # ダメージ - data modify storage api: Argument.Damage set value 36f + data modify storage api: Argument.Damage set from storage asset:context this.Damage data modify storage api: Argument.AttackType set value "Physical" data modify storage api: Argument.ElementType set value "Thunder" function api:damage/modifier From f9d92ccb6e9fd9fd32b70e4ab72f7e7f2c2a2881 Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Mon, 16 Mar 2026 04:48:00 +0900 Subject: [PATCH 4/9] =?UTF-8?q?=E3=83=80=E3=83=A1=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=81=AE=E7=99=BA=E7=94=9F=E5=88=A4=E5=AE=9A=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction index 48c90b4df6..9bd71986f3 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction @@ -26,4 +26,4 @@ # クールダウン scoreboard players remove @s[scores={7M.CoolTime=1..}] 7M.CoolTime 1 # ダメージ(スペクテイターでも発動するけどしゃーなし) - execute unless score @s 7M.CoolTime matches 1.. if entity @e[type=#lib:living,tag=Friend,distance=..0.75] run function asset:mob/0274.death_saw_jiki/tick/damage + execute unless score @s 7M.CoolTime matches 1.. positioned ~-0.5 ~-0.5 ~-0.5 if entity @p[tag=!PlayerShouldInvulnerable,dx=0] at @s run function asset:mob/0274.death_saw_jiki/tick/damage From 78712d841ae7e75b64cd77216fa0bcdcc4c5a83e Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Mon, 16 Mar 2026 04:52:39 +0900 Subject: [PATCH 5/9] =?UTF-8?q?=E6=94=BB=E6=92=83=E3=81=AE=E3=82=AF?= =?UTF-8?q?=E3=83=BC=E3=83=AB=E3=83=80=E3=82=A6=E3=83=B3=E3=81=AB=E3=83=95?= =?UTF-8?q?=E3=82=A3=E3=83=BC=E3=83=AB=E3=83=89=E3=82=92=E7=94=A8=E3=81=84?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../functions/mob/0274.death_saw_jiki/0.load.mcfunction | 9 --------- .../functions/mob/0274.death_saw_jiki/init/.mcfunction | 1 - .../mob/0274.death_saw_jiki/register.mcfunction | 4 ++++ .../functions/mob/0274.death_saw_jiki/tick/.mcfunction | 8 ++++---- .../mob/0274.death_saw_jiki/tick/damage.mcfunction | 2 +- Asset/data/asset/tags/functions/mob/load.json | 1 - 6 files changed, 9 insertions(+), 16 deletions(-) delete mode 100644 Asset/data/asset/functions/mob/0274.death_saw_jiki/0.load.mcfunction diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/0.load.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/0.load.mcfunction deleted file mode 100644 index 74fa2aedc5..0000000000 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/0.load.mcfunction +++ /dev/null @@ -1,9 +0,0 @@ -#> asset:mob/0274.death_saw_jiki/0.load -# -# MOBに利用するスコアボード等の初期化処理 -# -# @within tag/function asset:mob/load - -#> 定義類はここに -# @within function asset:mob/0274.death_saw_jiki/** - scoreboard objectives add 7M.CoolTime dummy diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction index 26901f8a43..8c16864c6c 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction @@ -1,4 +1,3 @@ #> asset:mob/0274.death_saw_jiki/init/ # @within asset:mob/alias/274/init -scoreboard players set @s 7M.CoolTime 20 diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/register.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/register.mcfunction index b8e1ae5d5b..ccbf596d1c 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/register.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/register.mcfunction @@ -63,3 +63,7 @@ # ダメージ data modify storage asset:mob Field.Damage set value 36f + +# 攻撃のクールダウン (出現してすぐはダメージを与えない) + data modify storage asset:mob Field.AttackCT._ set value 20 + data modify storage asset:mob Field.AttackCT.Max set value 20 diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction index 9bd71986f3..118a8282c9 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction @@ -23,7 +23,7 @@ # 演出 playsound entity.sheep.shear hostile @a ~ ~ ~ 0.4 2 -# クールダウン - scoreboard players remove @s[scores={7M.CoolTime=1..}] 7M.CoolTime 1 -# ダメージ(スペクテイターでも発動するけどしゃーなし) - execute unless score @s 7M.CoolTime matches 1.. positioned ~-0.5 ~-0.5 ~-0.5 if entity @p[tag=!PlayerShouldInvulnerable,dx=0] at @s run function asset:mob/0274.death_saw_jiki/tick/damage +# 攻撃のクールダウン + execute store result storage asset:context this.AttackCT._ int 0.9999999999 run data get storage asset:context this.AttackCT._ +# プレイヤーに接触したら攻撃 + execute if data storage asset:context this.AttackCT{_:0} positioned ~-0.5 ~-0.5 ~-0.5 if entity @p[tag=!PlayerShouldInvulnerable,dx=0] at @s run function asset:mob/0274.death_saw_jiki/tick/damage diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction index 0c628426b6..6c45f4c8a3 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction @@ -18,4 +18,4 @@ function api:damage/reset # クールタイムを与える - scoreboard players set @s 7M.CoolTime 20 + data modify storage asset:context this.AttackCT._ set from storage asset:context this.AttackCT.Max diff --git a/Asset/data/asset/tags/functions/mob/load.json b/Asset/data/asset/tags/functions/mob/load.json index 3c05053eb5..8889bbd361 100644 --- a/Asset/data/asset/tags/functions/mob/load.json +++ b/Asset/data/asset/tags/functions/mob/load.json @@ -44,7 +44,6 @@ "asset:mob/0292.trample_bot/0.load", "asset:mob/0287.burning_stomper/0.load", "asset:mob/0234.walleye/0.load", - "asset:mob/0274.death_saw_jiki/0.load", "asset:mob/0245.fire_creeper/load", "asset:mob/0021.demon_eye/load", "asset:mob/0175.queen_bee/load", From 3d58460c6e31c33a2c6c8e420fdb60620bde27c5 Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Mon, 16 Mar 2026 04:56:15 +0900 Subject: [PATCH 6/9] =?UTF-8?q?=E5=8F=AC=E5=96=9A=E6=99=82=E3=81=AB?= =?UTF-8?q?=E6=9C=80=E5=AF=84=E3=82=8A=E3=81=AE=E3=83=97=E3=83=AC=E3=82=A4?= =?UTF-8?q?=E3=83=A4=E3=83=BC=E3=81=AE=E6=96=B9=E5=90=91=E3=82=92=E5=90=91?= =?UTF-8?q?=E3=81=8F=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asset/functions/mob/0274.death_saw_jiki/init/.mcfunction | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction index 8c16864c6c..f9e38271d9 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction @@ -1,3 +1,5 @@ #> asset:mob/0274.death_saw_jiki/init/ # @within asset:mob/alias/274/init +# 最寄りのプレイヤーのほうを向く + execute facing entity @p[gamemode=!spectator,distance=..32] feet rotated ~ 0 run tp @s ~ ~ ~ ~ ~ From ef2c23862d93c10873a2cdb535605ea9c4ce64e3 Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Mon, 16 Mar 2026 04:56:28 +0900 Subject: [PATCH 7/9] =?UTF-8?q?no=5Fcollision=E3=82=92=E6=9C=80=E6=96=B0?= =?UTF-8?q?=E3=81=AE=E4=BB=95=E6=A7=98=E3=81=AB=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../functions/mob/0274.death_saw_jiki/tick/.mcfunction | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction index 118a8282c9..2d92b908da 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction @@ -5,14 +5,14 @@ # @within function asset:mob/alias/274/tick # 足元が空気なら少し落下 - execute if block ~ ~-0.5 ~ #lib:no_collision run tp @s ~ ~-0.5 ~ + execute if block ~ ~-0.5 ~ #lib:no_collision/ run tp @s ~ ~-0.5 ~ # 前方が階段状なら上にTPする - execute unless block ^ ^ ^1 #lib:no_collision if block ^ ^1 ^1 #lib:no_collision at @s run tp ~ ~1 ~ + execute unless block ^ ^ ^1 #lib:no_collision/ if block ^ ^1 ^1 #lib:no_collision/ at @s run tp ~ ~1 ~ # 前方が壁なら方向転換 - execute unless block ^ ^ ^1 #lib:no_collision unless block ^ ^1 ^1 #lib:no_collision at @s run tp @s ~ ~ ~ ~45 ~ + execute unless block ^ ^ ^1 #lib:no_collision/ unless block ^ ^1 ^1 #lib:no_collision/ at @s run tp @s ~ ~ ~ ~45 ~ # 前方が2m穴なら適当に方向転換 - execute unless block ~ ~-1 ~ #lib:no_collision if block ^ ^ ^1 #lib:no_collision if block ^ ^-1 ^1 #lib:no_collision if block ^ ^-2 ^1 #lib:no_collision at @s run tp @s ~ ~ ~ ~45 ~ + execute unless block ~ ~-1 ~ #lib:no_collision/ if block ^ ^ ^1 #lib:no_collision/ if block ^ ^-1 ^1 #lib:no_collision/ if block ^ ^-2 ^1 #lib:no_collision/ at @s run tp @s ~ ~ ~ ~45 ~ # プレイヤーが近くにいないなら前進する execute unless entity @a[distance=..10] at @s rotated ~ 0 run tp ^ ^ ^0.2 From 21c71a38e5eaf5c4c05c4aa5429ac274aeaeaf59 Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Mon, 16 Mar 2026 05:28:05 +0900 Subject: [PATCH 8/9] =?UTF-8?q?=E7=A7=BB=E5=8B=95=E3=81=ABattribute?= =?UTF-8?q?=E3=82=92=E7=94=A8=E3=81=84=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../functions/mob/0274.death_saw_jiki/init/.mcfunction | 3 +++ .../functions/mob/0274.death_saw_jiki/move/.mcfunction | 9 +++++++++ .../functions/mob/0274.death_saw_jiki/tick/.mcfunction | 10 ++++++---- .../data/asset/functions/mob/alias/274/move.mcfunction | 8 ++++++++ 4 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 Asset/data/asset/functions/mob/0274.death_saw_jiki/move/.mcfunction create mode 100644 Asset/data/asset/functions/mob/alias/274/move.mcfunction diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction index f9e38271d9..91bc3f6edf 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/init/.mcfunction @@ -1,5 +1,8 @@ #> asset:mob/0274.death_saw_jiki/init/ # @within asset:mob/alias/274/init +# IsBabyの1.5倍を打ち消す + execute store result entity @s Attributes[{Name:"minecraft:generic.movement_speed"}].Base double 0.006667 run attribute @s generic.movement_speed base get 100 + # 最寄りのプレイヤーのほうを向く execute facing entity @p[gamemode=!spectator,distance=..32] feet rotated ~ 0 run tp @s ~ ~ ~ ~ ~ diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/move/.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/move/.mcfunction new file mode 100644 index 0000000000..28e86ae344 --- /dev/null +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/move/.mcfunction @@ -0,0 +1,9 @@ +#> asset:mob/0274.death_saw_jiki/move/ +# +# 継承先などから実行される処理 +# +# @within asset:mob/alias/274/move + +# 壁貫通のないように移動 + data modify storage lib: Argument.SlideMove.Speed set from storage asset:context this.Speed + function lib:slide_move/ diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction index 2d92b908da..e480a6af38 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/.mcfunction @@ -14,11 +14,13 @@ # 前方が2m穴なら適当に方向転換 execute unless block ~ ~-1 ~ #lib:no_collision/ if block ^ ^ ^1 #lib:no_collision/ if block ^ ^-1 ^1 #lib:no_collision/ if block ^ ^-2 ^1 #lib:no_collision/ at @s run tp @s ~ ~ ~ ~45 ~ -# プレイヤーが近くにいないなら前進する - execute unless entity @a[distance=..10] at @s rotated ~ 0 run tp ^ ^ ^0.2 # プレイヤーが近くにいるなら追尾する - execute if entity @p[distance=5..10] at @s facing entity @p eyes positioned ^ ^ ^-100 rotated as @s positioned ^ ^ ^-400 facing entity @s eyes positioned as @s rotated ~ 0 run tp @s ^ ^ ^0.2 ~ ~ - execute if entity @p[distance=..5] at @s facing entity @p eyes positioned ^ ^ ^-100 rotated as @s positioned ^ ^ ^-100 facing entity @s eyes positioned as @s rotated ~ 0 run tp @s ^ ^ ^0.2 ~ ~ + execute at @s unless entity @p[gamemode=!spectator,distance=..5] facing entity @p[gamemode=!spectator,distance=..10] eyes positioned ^ ^ ^-100 rotated as @s positioned ^ ^ ^-400 facing entity @s eyes positioned as @s rotated ~ 0 run tp @s ~ ~ ~ ~ ~ + execute at @s facing entity @p[gamemode=!spectator,distance=..5] eyes positioned ^ ^ ^-100 rotated as @s positioned ^ ^ ^-100 facing entity @s eyes positioned as @s rotated ~ 0 run tp @s ~ ~ ~ ~ ~ + +# 前進 + function asset:mob/call.m {method:"get_speed"} + execute at @s run function asset:mob/call.m {method:"move"} # 演出 playsound entity.sheep.shear hostile @a ~ ~ ~ 0.4 2 diff --git a/Asset/data/asset/functions/mob/alias/274/move.mcfunction b/Asset/data/asset/functions/mob/alias/274/move.mcfunction new file mode 100644 index 0000000000..f2a42a91c0 --- /dev/null +++ b/Asset/data/asset/functions/mob/alias/274/move.mcfunction @@ -0,0 +1,8 @@ +#> asset:mob/alias/274/move +# +# メソッド処理のエイリアス +# +# @within asset_manager:mob/triggers/call_method/run_method.m + +# 本来の処理を呼び出す + function asset:mob/0274.death_saw_jiki/move/ \ No newline at end of file From d855b2aa34b06b5b0cfe501aaf3a67b2dda2437c Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Tue, 17 Mar 2026 06:49:31 +0900 Subject: [PATCH 9/9] =?UTF-8?q?=E7=84=A1=E9=A7=84=E3=81=AA=E3=82=A4?= =?UTF-8?q?=E3=83=B3=E3=83=87=E3=83=B3=E3=83=88=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mob/0274.death_saw_jiki/tick/damage.mcfunction | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction index 6c45f4c8a3..c1cf45d5ea 100644 --- a/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction +++ b/Asset/data/asset/functions/mob/0274.death_saw_jiki/tick/damage.mcfunction @@ -10,12 +10,12 @@ playsound minecraft:entity.firework_rocket.twinkle hostile @a ~ ~ ~ 0.7 2.0 0 # ダメージ - data modify storage api: Argument.Damage set from storage asset:context this.Damage - data modify storage api: Argument.AttackType set value "Physical" - data modify storage api: Argument.ElementType set value "Thunder" - function api:damage/modifier - execute positioned ~-0.5 ~-0.5 ~-0.5 as @a[tag=!PlayerShouldInvulnerable,dx=0] run function api:damage/ - function api:damage/reset + data modify storage api: Argument.Damage set from storage asset:context this.Damage + data modify storage api: Argument.AttackType set value "Physical" + data modify storage api: Argument.ElementType set value "Thunder" + function api:damage/modifier + execute positioned ~-0.5 ~-0.5 ~-0.5 as @a[tag=!PlayerShouldInvulnerable,dx=0] run function api:damage/ + function api:damage/reset # クールタイムを与える data modify storage asset:context this.AttackCT._ set from storage asset:context this.AttackCT.Max