From 6ca804abe353a2442caa298565f192eef6ed90ae Mon Sep 17 00:00:00 2001 From: EllaCoat Date: Thu, 19 Sep 2024 18:31:29 +0900 Subject: [PATCH] =?UTF-8?q?FieldOverride=20=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0005.slash_effect_abs/init/.mcfunction | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Asset/data/asset/functions/object/0005.slash_effect_abs/init/.mcfunction b/Asset/data/asset/functions/object/0005.slash_effect_abs/init/.mcfunction index 2b2582c36f..92fdbb3c73 100644 --- a/Asset/data/asset/functions/object/0005.slash_effect_abs/init/.mcfunction +++ b/Asset/data/asset/functions/object/0005.slash_effect_abs/init/.mcfunction @@ -7,16 +7,12 @@ # アイテムディスプレイに表示するItemをFieldから代入する data modify entity @s item set from storage asset:context this.item -# 初期設定を行う(一時ストレージからもってくる) - execute unless data storage asset:temp 5.Color run data modify storage asset:temp 5.Color set value 0 - execute unless data storage asset:temp 5.Second run data modify storage asset:temp 5.Second set value 10 - execute unless data storage asset:temp 5.Scale run data modify storage asset:temp 5.Scale set value 5f - data modify entity @s item.tag.display.color set from storage asset:temp 5.Color - execute store result score @s General.Object.Tick run data get storage asset:temp 5.Second -1 - data modify storage asset:context this.Scale set from storage asset:temp 5.Scale - -# リセット - data remove storage asset:temp 5 +# 初期設定を行う(FieldOverride) + execute unless data storage asset:context this.Color run data modify storage asset:context this.Color set value 0 + execute unless data storage asset:context this.Second run data modify storage asset:context this.Second set value 10 + execute unless data storage asset:context this.Scale run data modify storage asset:context this.Scale set value 5f + data modify entity @s item.tag.display.color set from storage asset:context this.Color + execute store result score @s General.Object.Tick run data get storage asset:context this.Second -1 # タグ付け tag @s add 5.SlashEffectInit