From 5a5b26bbbb378981597c8cfc252fa471df0f20c0 Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Wed, 15 Jul 2026 08:56:40 +0900 Subject: [PATCH 1/2] =?UTF-8?q?Metadata=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1009.arrow/hit_entity/from_non-player/as_target.mcfunction | 1 + .../1009.arrow/hit_entity/from_player/as_target.mcfunction | 3 +++ .../data/asset/functions/object/1009.arrow/register.mcfunction | 1 + 3 files changed, 5 insertions(+) diff --git a/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_non-player/as_target.mcfunction b/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_non-player/as_target.mcfunction index e59ef5b2c3..aa625c5493 100644 --- a/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_non-player/as_target.mcfunction +++ b/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_non-player/as_target.mcfunction @@ -14,6 +14,7 @@ data modify storage api: Argument.Damage set from storage asset:context this.Damage data modify storage api: Argument.AttackType set from storage asset:context this.AttackType data modify storage api: Argument.ElementType set from storage asset:context this.ElementType + execute if data storage asset:context this.Metadata run data modify storage api: Argument.Metadata set from storage asset:context this.Metadata # execute if data storage asset:context this.AdditionalMPHeal run data modify storage api: Argument.AdditionalMPHeal set from storage asset:context this.AdditionalMPHeal # modifier をかける data modify storage api: Argument.MobUUID set from storage asset:context this.MobUUID diff --git a/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_player/as_target.mcfunction b/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_player/as_target.mcfunction index 45cf9e608e..887e31360f 100644 --- a/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_player/as_target.mcfunction +++ b/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_player/as_target.mcfunction @@ -9,6 +9,8 @@ #declare score_holder $UserID #declare tag 1009.Player +tellraw @a {"storage":"asset:context","nbt":"this"} + # プレイヤー特定 execute store result score $UserID Temporary run data get storage asset:context this.UserID execute as @a if score @s UserID = $UserID Temporary run tag @s add 1009.Player @@ -19,6 +21,7 @@ data modify storage api: Argument.Damage set from storage asset:context this.Damage data modify storage api: Argument.AttackType set from storage asset:context this.AttackType data modify storage api: Argument.ElementType set from storage asset:context this.ElementType + execute if data storage asset:context this.Metadata run data modify storage api: Argument.Metadata set from storage asset:context this.Metadata execute if data storage asset:context this.AdditionalMPHeal run data modify storage api: Argument.AdditionalMPHeal set from storage asset:context this.AdditionalMPHeal # modifier をかける execute as @a[tag=1009.Player] run function api:damage/modifier diff --git a/Asset/data/asset/functions/object/1009.arrow/register.mcfunction b/Asset/data/asset/functions/object/1009.arrow/register.mcfunction index f589fccdb0..b841828ed5 100644 --- a/Asset/data/asset/functions/object/1009.arrow/register.mcfunction +++ b/Asset/data/asset/functions/object/1009.arrow/register.mcfunction @@ -24,6 +24,7 @@ data modify storage asset:object Field.Damage set value 1 data modify storage asset:object Field.AttackType set value "Physical" data modify storage asset:object Field.ElementType set value "None" + # data modify storage asset:object Field.Metadata set value # data modify storage asset:object Field.AdditionalMPHeal set value # data modify storage asset:object Field.UserID set value # data modify storage asset:object Field.MobUUID set value From a9123b706aea6191f54c80467be06a5eb92f3f73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=91=A0=E7=92=83?= <87566955+Lapis-LJA@users.noreply.github.com> Date: Wed, 15 Jul 2026 09:33:28 +0900 Subject: [PATCH 2/2] =?UTF-8?q?debug=E3=81=AE=E6=AE=8B=E3=82=8A=E3=82=92?= =?UTF-8?q?=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1009.arrow/hit_entity/from_player/as_target.mcfunction | 2 -- 1 file changed, 2 deletions(-) diff --git a/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_player/as_target.mcfunction b/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_player/as_target.mcfunction index 887e31360f..56b9460b2b 100644 --- a/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_player/as_target.mcfunction +++ b/Asset/data/asset/functions/object/1009.arrow/hit_entity/from_player/as_target.mcfunction @@ -9,8 +9,6 @@ #declare score_holder $UserID #declare tag 1009.Player -tellraw @a {"storage":"asset:context","nbt":"this"} - # プレイヤー特定 execute store result score $UserID Temporary run data get storage asset:context this.UserID execute as @a if score @s UserID = $UserID Temporary run tag @s add 1009.Player