From d3dc0469bb7078d4c8a01e68a388f6a1c9017b0f Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Sun, 11 Jan 2026 20:30:05 +0900 Subject: [PATCH 1/8] =?UTF-8?q?=E7=A7=BB=E5=8B=95=E9=80=9F=E5=BA=A6?= =?UTF-8?q?=E3=81=AE=E3=83=90=E3=83=95=E3=81=AE=E6=B8=9B=E5=B0=91=E3=82=92?= =?UTF-8?q?=E3=82=B9=E3=82=BF=E3=83=83=E3=82=AF=E3=81=AE=E6=B8=9B=E5=B0=91?= =?UTF-8?q?=E3=81=A7=E8=A1=A8=E7=8F=BE=E3=81=99=E3=82=8B=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trigger/3.main.mcfunction | 1 + .../effect/0210.fading_speed/end/.mcfunction | 2 +- .../0210.fading_speed/given/.mcfunction | 3 +++ .../effect/0210.fading_speed/init/.mcfunction | 14 ++++++++++++ .../effect/0210.fading_speed/load.mcfunction | 10 --------- .../modifier/add.m.mcfunction | 8 +++++++ .../0210.fading_speed/modifier/add.mcfunction | 21 ++++++++++++++++-- .../modifier/remove.mcfunction | 4 +--- .../0210.fading_speed/re-given/.mcfunction | 4 ++-- .../0210.fading_speed/register.mcfunction | 16 ++++++++------ .../effect/0210.fading_speed/tick/.mcfunction | 22 +++++-------------- .../tick/reduce_stack.mcfunction | 18 +++++++++++++++ .../asset/tags/functions/effect/load.json | 1 - 13 files changed, 81 insertions(+), 43 deletions(-) create mode 100644 Asset/data/asset/functions/effect/0210.fading_speed/init/.mcfunction delete mode 100644 Asset/data/asset/functions/effect/0210.fading_speed/load.mcfunction create mode 100644 Asset/data/asset/functions/effect/0210.fading_speed/modifier/add.m.mcfunction create mode 100644 Asset/data/asset/functions/effect/0210.fading_speed/tick/reduce_stack.mcfunction diff --git a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction index ad922f30ef..367eb4a08d 100644 --- a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction +++ b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction @@ -21,5 +21,6 @@ # EffectAssetのendのタイミングでエフェクトをgiveしても上手くいかないため # TODO: 治り次第直す data modify storage api: Argument.ID set value 210 + data modify storage api: Argument.Stack set value 5 function api:entity/mob/effect/give function api:entity/mob/effect/reset diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/end/.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/end/.mcfunction index 9a20aac115..fb3abb8135 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/end/.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/end/.mcfunction @@ -7,7 +7,7 @@ # 補正を削除する function asset:effect/0210.fading_speed/modifier/remove -# 効果時間終了時、デバフを付与 +# 薄れゆく速さ(デバフ)を付与 data modify storage api: Argument.ID set value 211 function api:entity/mob/effect/give function api:entity/mob/effect/reset diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/given/.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/given/.mcfunction index 2651fda6c0..b2e02b06df 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/given/.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/given/.mcfunction @@ -4,5 +4,8 @@ # # @within function asset:effect/0210.fading_speed/_/given +# 初期化 + function asset:effect/0210.fading_speed/init/ + # 補正を付与する function asset:effect/0210.fading_speed/modifier/add diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/init/.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/init/.mcfunction new file mode 100644 index 0000000000..117727e023 --- /dev/null +++ b/Asset/data/asset/functions/effect/0210.fading_speed/init/.mcfunction @@ -0,0 +1,14 @@ +#> asset:effect/0210.fading_speed/init/ +# +# +# +# @within function +# asset:effect/0210.fading_speed/given/ +# asset:effect/0210.fading_speed/re-given/ + +# (Duration - 1)をIntervalとして設定 + execute store result storage asset:context this.UpdateInterval.Max int 0.9999999999 run data get storage asset:context Duration + data modify storage asset:context this.UpdateInterval._ set from storage asset:context this.UpdateInterval.Max + +# Durationをそのままフィールドに入れておく + data modify storage asset:context this.Duration set from storage asset:context Duration diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/load.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/load.mcfunction deleted file mode 100644 index 2c16b57e78..0000000000 --- a/Asset/data/asset/functions/effect/0210.fading_speed/load.mcfunction +++ /dev/null @@ -1,10 +0,0 @@ -#> asset:effect/0210.fading_speed/load -# -# Effectに利用するスコアボード等の初期化処理 -# ※ExtendsSafeを有効化した状態での使用は非推奨です -# -# @within tag/function asset:effect/load - -#> 定義類はここに -# @within function asset:effect/0210.fading_speed/** - scoreboard objectives add 5U.Tick dummy diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/modifier/add.m.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/modifier/add.m.mcfunction new file mode 100644 index 0000000000..51a681928e --- /dev/null +++ b/Asset/data/asset/functions/effect/0210.fading_speed/modifier/add.m.mcfunction @@ -0,0 +1,8 @@ +#> asset:effect/0210.fading_speed/modifier/add.m +# +# +# +# @within function asset:effect/0210.fading_speed/modifier/add + +# + $attribute @s generic.movement_speed modifier add 00000001-0000-0003-0000-00d200000000 "210.FadingSpeed" $(Amount) multiply diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/modifier/add.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/modifier/add.mcfunction index 6473ecdcc9..6f5c63a3cc 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/modifier/add.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/modifier/add.mcfunction @@ -5,6 +5,23 @@ # @within function # asset:effect/0210.fading_speed/given/ # asset:effect/0210.fading_speed/re-given/ +# asset:effect/0210.fading_speed/tick/reduce_stack -# 移動速度+80% - attribute @s generic.movement_speed modifier add 00000001-0000-0003-0000-00d200000000 "210.FadingSpeed" 0.8 multiply +#> Private +# @private + #declare score_holder $Stack + #declare score_holder $Amount + +# そもそもStackが1なら補正を付ける意味がないのでreturn + execute if data storage asset:context {Stack:1} run return fail + +# 移動速度を((Stack - 1) * Amount)% 得る + execute store result score $Stack Temporary run data get storage asset:context Stack 0.9999999999 + execute store result score $Amount Temporary run data get storage asset:context this.Amount 100 + execute store result storage asset:temp Args.Amount float 0.01 run scoreboard players operation $Stack Temporary *= $Amount Temporary + function asset:effect/0210.fading_speed/modifier/add.m with storage asset:temp Args + +# リセット + scoreboard players reset $Stack Temporary + scoreboard players reset $Amount Temporary + data remove storage asset:temp Args diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/modifier/remove.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/modifier/remove.mcfunction index ca07ac4be1..ad25ee4a3f 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/modifier/remove.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/modifier/remove.mcfunction @@ -6,9 +6,7 @@ # asset:effect/0210.fading_speed/end/ # asset:effect/0210.fading_speed/re-given/ # asset:effect/0210.fading_speed/remove/ +# asset:effect/0210.fading_speed/tick/reduce_stack # 移動速度バフを削除 attribute @s generic.movement_speed modifier remove 00000001-0000-0003-0000-00d200000000 - -# ついでにスコアもリセット - scoreboard players reset @s 5U.Tick diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/re-given/.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/re-given/.mcfunction index d89024d21c..fb0e1e9d27 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/re-given/.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/re-given/.mcfunction @@ -18,8 +18,8 @@ function api:damage/ function api:damage/reset -# スコアを初期化 - scoreboard players reset @s 5U.Tick +# 初期化 + function asset:effect/0210.fading_speed/init/ # 補正を削除 function asset:effect/0210.fading_speed/modifier/remove diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction index 59707947b7..b3dea4c0bb 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction @@ -13,17 +13,17 @@ # 説明文 (TextComponentString[]) data modify storage asset:effect Description set value ['{"text":"移動速度が極端に上昇するが、徐々に低下していく"}'] # 効果時間 (int) (default = API || error) - data modify storage asset:effect Duration set value 1000 + data modify storage asset:effect Duration set value 200 # スタック (int) (default = API || 1) - data modify storage asset:effect Stack set value 1 + # data modify storage asset:effect Stack set value 5 # 効果時間の操作方法 (default = API || "replace") - # data modify storage asset:effect DurationOperation set value + data modify storage asset:effect DurationOperation set value "forceReplace" # スタックの操作方法 (default = API || "replace") - # data modify storage asset:effect StackOperation set value + data modify storage asset:effect StackOperation set value "forceReplace" # 最大効果時間 (int) (default = 2147483647) # data modify storage asset:effect MaxDuration set value # 最大スタック (int) (default = 2147483647) - data modify storage asset:effect MaxStack set value 1 + # data modify storage asset:effect MaxStack set value 1 # 悪い効果か否か (boolean) data modify storage asset:effect IsBadEffect set value false # 死亡時のエフェクトの処理 (default = "remove") @@ -33,7 +33,9 @@ # エフェクトをUIに表示するか (boolean) (default = true) # data modify storage asset:effect Visible set value # エフェクトのスタックををUIに表示するか (boolean) (default = true) - data modify storage asset:effect StackVisible set value false + # data modify storage asset:effect StackVisible set value false # フィールド - # data modify storage asset:effect Field set value {} + data modify storage asset:effect Field.Amount set value 0.2 + # data modify storage asset:effect Field.UpdateInterval.Max set value 200 + # data modify storage asset:effect Field.UpdateInterval._ set value 200 diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/tick/.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/tick/.mcfunction index 0394505e2c..16049f5863 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/tick/.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/tick/.mcfunction @@ -4,20 +4,8 @@ # # @within function asset:effect/0210.fading_speed/_/tick -# スコア - scoreboard players add @s 5U.Tick 1 - -# 初期速度 +80% -# 200tick経過するごとに移動速度-20% -# 0 - 199 80% -# 200 - 399 60% -# 400 - 599 40% -# 600 - 799 20% -# 800 - 999 0% - execute if entity @s[scores={5U.Tick=200}] run attribute @s generic.movement_speed modifier remove 00000001-0000-0003-0000-00d200000000 - execute if entity @s[scores={5U.Tick=200}] run attribute @s generic.movement_speed modifier add 00000001-0000-0003-0000-00d200000000 "210.FadingSpeed" 0.6 multiply - execute if entity @s[scores={5U.Tick=400}] run attribute @s generic.movement_speed modifier remove 00000001-0000-0003-0000-00d200000000 - execute if entity @s[scores={5U.Tick=400}] run attribute @s generic.movement_speed modifier add 00000001-0000-0003-0000-00d200000000 "210.FadingSpeed" 0.4 multiply - execute if entity @s[scores={5U.Tick=600}] run attribute @s generic.movement_speed modifier remove 00000001-0000-0003-0000-00d200000000 - execute if entity @s[scores={5U.Tick=600}] run attribute @s generic.movement_speed modifier add 00000001-0000-0003-0000-00d200000000 "210.FadingSpeed" 0.2 multiply - execute if entity @s[scores={5U.Tick=800}] run attribute @s generic.movement_speed modifier remove 00000001-0000-0003-0000-00d200000000 +# インターバルのデクリメント +# インターバルが0になるごとにスタックを1下げる + execute store result storage asset:context this.UpdateInterval._ int 0.9999999999 run data get storage asset:context this.UpdateInterval._ + execute if data storage asset:context this.UpdateInterval{_:0} run function asset:effect/0210.fading_speed/tick/reduce_stack + execute if data storage asset:context this.UpdateInterval{_:0} run data modify storage asset:context this.UpdateInterval._ set from storage asset:context this.UpdateInterval.Max diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/tick/reduce_stack.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/tick/reduce_stack.mcfunction new file mode 100644 index 0000000000..5e6dcdebc9 --- /dev/null +++ b/Asset/data/asset/functions/effect/0210.fading_speed/tick/reduce_stack.mcfunction @@ -0,0 +1,18 @@ +#> asset:effect/0210.fading_speed/tick/reduce_stack +# +# +# +# @within function asset:effect/0210.fading_speed/tick/ + +# スタックが1ならreturn + execute if data storage asset:context {Stack:1} run return fail + +# スタックを1減らす + execute store result storage asset:context Stack int 0.9999999999 run data get storage asset:context Stack + +# 補正を更新 + function asset:effect/0210.fading_speed/modifier/remove + function asset:effect/0210.fading_speed/modifier/add + +# 効果時間を元に戻す + data modify storage asset:context Duration set from storage asset:context this.Duration diff --git a/Asset/data/asset/tags/functions/effect/load.json b/Asset/data/asset/tags/functions/effect/load.json index 6fe4e83f31..45971e08a5 100644 --- a/Asset/data/asset/tags/functions/effect/load.json +++ b/Asset/data/asset/tags/functions/effect/load.json @@ -7,7 +7,6 @@ "asset:effect/0191.night_vision/load", "asset:effect/0605.aurora_corrosion/load", "asset:effect/0601.conviction/load", - "asset:effect/0210.fading_speed/load", "asset:effect/0603.domination/load", "asset:effect/0258.spirit_melody/load" ] From 9d0527b6e6dad33761fe17280d694992f2c885aa Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Sun, 11 Jan 2026 21:33:56 +0900 Subject: [PATCH 2/8] =?UTF-8?q?=E5=86=8D=E4=BB=98=E4=B8=8E=E6=99=82?= =?UTF-8?q?=E3=81=AE=E3=83=80=E3=83=A1=E3=83=BC=E3=82=B8=E3=81=A8=E6=BC=94?= =?UTF-8?q?=E5=87=BA=E3=82=92=E7=A5=9E=E5=99=A8=E5=81=B4=E3=81=AB=E7=A7=BB?= =?UTF-8?q?=E8=A1=8C=20=E5=8F=8A=E3=81=B350%=E5=89=B2=E5=90=88=E3=83=80?= =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=82=B8=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trigger/3.main.mcfunction | 17 +++++++++-------- .../trigger/reuse_damage.mcfunction | 18 ++++++++++++++++++ .../0210.fading_speed/re-given/.mcfunction | 14 -------------- 3 files changed, 27 insertions(+), 22 deletions(-) create mode 100644 Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/reuse_damage.mcfunction diff --git a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction index 367eb4a08d..c5ab268125 100644 --- a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction +++ b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction @@ -9,17 +9,18 @@ # ここから先は神器側の効果の処理を書く -# 薄れゆく速さデバフ(ID:211)があるかどうかチェックする - #data modify storage api: Argument.ID set value 211 - #function api:entity/mob/effect/get/from_id +# 薄れゆく速さバフ(ID:210)があるかどうかチェックする + data modify storage api: Argument.ID set value 210 + function api:entity/mob/effect/get/from_id + +# 薄れゆく速さデバフ(ID:211)があるかチェックする + execute unless data storage api: Return.Effect run data modify storage api: Argument.ID set value 211 + execute unless data storage api: Return.Effect run function api:entity/mob/effect/get/from_id -# デバフがなければ薄れゆく速さバフ(ID:210)を、あればデバフ(ID:211)を付与 - #execute unless data storage api: Return.Effect run data modify storage api: Argument.ID set value 210 - #execute if data storage api: Return.Effect run data modify storage api: Argument.ID set value 211 +# バフかデバフがあるならダメージ + execute if data storage api: Return.Effect run function asset:artifact/0456.potion_of_stalling_power/trigger/reuse_damage # 薄れゆく速さバフを付与 -# EffectAssetのendのタイミングでエフェクトをgiveしても上手くいかないため -# TODO: 治り次第直す data modify storage api: Argument.ID set value 210 data modify storage api: Argument.Stack set value 5 function api:entity/mob/effect/give diff --git a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/reuse_damage.mcfunction b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/reuse_damage.mcfunction new file mode 100644 index 0000000000..facb3168a2 --- /dev/null +++ b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/reuse_damage.mcfunction @@ -0,0 +1,18 @@ +#> asset:artifact/0456.potion_of_stalling_power/trigger/reuse_damage +# +# +# +# @within function asset:artifact/0456.potion_of_stalling_power/trigger/3.main + +# 演出 + particle minecraft:dragon_breath ~ ~1 ~ 0.1 0.1 0.1 0.03 100 + playsound minecraft:entity.evoker.prepare_summon player @a + +# 最大体力に比例した固定ダメージを受ける + function api:modifier/max_health/get + execute store result storage api: Argument.Damage double 0.2 run data get storage api: Return.MaxHealth + data modify storage api: Argument.AttackType set value "Physical" + data modify storage api: Argument.FixedDamage set value true + data modify storage api: Argument.DeathMessage append value '[{"translate": "%1$sは速度の代償を払った","with":[{"selector":"@s"}]}]' + function api:damage/ + function api:damage/reset diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/re-given/.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/re-given/.mcfunction index fb0e1e9d27..212fdec22c 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/re-given/.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/re-given/.mcfunction @@ -4,20 +4,6 @@ # # @within function asset:effect/0210.fading_speed/_/re-given -# 演出 - particle minecraft:dragon_breath ~ ~1 ~ 0.1 0.1 0.1 0.03 100 - playsound minecraft:entity.evoker.prepare_summon player @a - -# 最大体力の20%分の固定ダメージを受ける -# 5U.Tickが800以上なら50%の割合ダメージに変化 - execute store result storage api: Argument.Damage double 0.2 run attribute @s generic.max_health get - execute if entity @s[scores={5U.Tick=800..}] store result storage api: Argument.Damage double 0.5 run attribute @s generic.max_health get - data modify storage api: Argument.AttackType set value "Physical" - data modify storage api: Argument.FixedDamage set value true - data modify storage api: Argument.DeathMessage append value '[{"translate": "%1$sは速度の代償を払った","with":[{"selector":"@s"},{"nbt":"Return.AttackerName","storage":"lib:","interpret":true}]}]' - function api:damage/ - function api:damage/reset - # 初期化 function asset:effect/0210.fading_speed/init/ From 992d3e9deb9c6bf2c66d1c90745b7ac8c46cd0ac Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Sun, 11 Jan 2026 21:35:42 +0900 Subject: [PATCH 3/8] =?UTF-8?q?=E8=AA=AC=E6=98=8E=E3=82=92=E6=98=8E?= =?UTF-8?q?=E8=A8=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0456.potion_of_stalling_power/give/2.give.mcfunction | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/give/2.give.mcfunction index 9ec242a399..faa5b746ef 100644 --- a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/give/2.give.mcfunction +++ b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/give/2.give.mcfunction @@ -15,7 +15,7 @@ # 神器の名前 (TextComponentString) data modify storage asset:artifact Name set value '{"text":"失速する速力のポーション","color":"dark_aqua"}' # 神器の説明文 (TextComponentString[]) - data modify storage asset:artifact Lore set value ['{"text":"力は一時的な物でしかない。","color":"gray"}','{"text":"その欲求を求め続けるなら","color":"gray"}','{"text":"代償を支払うものだ。","color":"gray"}'] + data modify storage asset:artifact Lore set value ['{"text":"- 50秒間、移動速度にバフを得る","color":"white"}','{"translate":"%1$sこのバフは%2$sから始まり","color":"white","with":[{"text":"\\u0010","font":"space"},{"text":"80%"}]}','{"translate":"%1$s10秒経つごとに効果量が%2$sずつ減少する","color":"white","with":[{"text":"\\u0010","font":"space"},{"text":"20%"}]}','{"translate":"- バフ終了後に20秒間、移動速度が%1$s減少する","color":"white","with":[{"text":"20%"}]}','{"text":"- バフ効果時間中に再使用すると","color":"white"}','{"translate":"%1$s最大体力の%2$s分のダメージを受ける","color":"white","with":[{"text":"\\u0010","font":"space"},{"text":"20%"}]}','{"text":"力は一時的な物でしかない。","color":"gray"}','{"text":"その欲求を求め続けるなら","color":"gray"}','{"text":"代償を支払うものだ。","color":"gray"}'] # 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション) # data modify storage asset:artifact ConsumeItem.Item set value # data modify storage asset:artifact ConsumeItem.Count set value From 1395f50cb4974aa6e15f789f8168625f92b9c6f9 Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Sun, 11 Jan 2026 21:40:25 +0900 Subject: [PATCH 4/8] =?UTF-8?q?=E3=83=90=E3=83=95=E3=81=8C=E3=81=82?= =?UTF-8?q?=E3=82=8B=E3=81=A8=E3=81=8D=E3=81=AE=E3=81=BF=E3=83=80=E3=83=A1?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=81=8C=E7=99=BA=E7=94=9F=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0456.potion_of_stalling_power/trigger/3.main.mcfunction | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction index c5ab268125..6db887bbc5 100644 --- a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction +++ b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction @@ -17,8 +17,8 @@ execute unless data storage api: Return.Effect run data modify storage api: Argument.ID set value 211 execute unless data storage api: Return.Effect run function api:entity/mob/effect/get/from_id -# バフかデバフがあるならダメージ - execute if data storage api: Return.Effect run function asset:artifact/0456.potion_of_stalling_power/trigger/reuse_damage +# バフがあるならダメージ + execute if data storage api: Return.Effect{ID:210} run function asset:artifact/0456.potion_of_stalling_power/trigger/reuse_damage # 薄れゆく速さバフを付与 data modify storage api: Argument.ID set value 210 From 5ffcdf193666a09d2729fac04ca306f645cc4ace Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Sun, 11 Jan 2026 21:53:11 +0900 Subject: [PATCH 5/8] =?UTF-8?q?=E5=90=84=E6=95=B0=E5=80=A4=E3=82=92?= =?UTF-8?q?=E7=A5=9E=E5=99=A8=E5=81=B4=E3=81=A7=E8=A8=AD=E5=AE=9A=E3=81=A7?= =?UTF-8?q?=E3=81=8D=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 --- .../trigger/3.main.mcfunction | 7 +++++++ .../functions/effect/0210.fading_speed/end/.mcfunction | 2 ++ .../functions/effect/0210.fading_speed/register.mcfunction | 5 ++++- .../effect/0211.fading_speed/modifier/add.m.mcfunction | 7 +++++++ .../effect/0211.fading_speed/modifier/add.mcfunction | 5 ++--- .../functions/effect/0211.fading_speed/register.mcfunction | 2 +- 6 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 Asset/data/asset/functions/effect/0211.fading_speed/modifier/add.m.mcfunction diff --git a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction index 6db887bbc5..448dfd2df1 100644 --- a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction +++ b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction @@ -21,7 +21,14 @@ execute if data storage api: Return.Effect{ID:210} run function asset:artifact/0456.potion_of_stalling_power/trigger/reuse_damage # 薄れゆく速さバフを付与 +# 仕様書 +# ((Stack - 1) * Amount)%から始まり、Durationが切れるたびにスタックが1減少し、効果時間が元に戻る +# スタックが1の状態で時間切れになるとデバフに変化する data modify storage api: Argument.ID set value 210 data modify storage api: Argument.Stack set value 5 + data modify storage api: Argument.Duration set value 200 + data modify storage api: Argument.FieldOverride.Amount set value 0.2 + data modify storage api: Argument.FieldOverride.Debuff.Duration set value 400 + data modify storage api: Argument.FieldOverride.Debuff.Amount set value -0.2 function api:entity/mob/effect/give function api:entity/mob/effect/reset diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/end/.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/end/.mcfunction index fb3abb8135..7809d57106 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/end/.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/end/.mcfunction @@ -9,5 +9,7 @@ # 薄れゆく速さ(デバフ)を付与 data modify storage api: Argument.ID set value 211 + data modify storage api: Argument.Duration set from storage asset:context this.Debuff.Duration + data modify storage api: Argument.FieldOverride.Amount set from storage asset:context this.Debuff.Amount function api:entity/mob/effect/give function api:entity/mob/effect/reset diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction index b3dea4c0bb..0c221c6eb1 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction @@ -13,7 +13,7 @@ # 説明文 (TextComponentString[]) data modify storage asset:effect Description set value ['{"text":"移動速度が極端に上昇するが、徐々に低下していく"}'] # 効果時間 (int) (default = API || error) - data modify storage asset:effect Duration set value 200 + # data modify storage asset:effect Duration set value 200 # スタック (int) (default = API || 1) # data modify storage asset:effect Stack set value 5 # 効果時間の操作方法 (default = API || "replace") @@ -37,5 +37,8 @@ # フィールド data modify storage asset:effect Field.Amount set value 0.2 + data modify storage asset:effect Field.Debuff.Duration set value 400 + data modify storage asset:effect Field.Debuff.Amount set value -0.2 + # data modify storage asset:effect Field.UpdateInterval.Max set value 200 # data modify storage asset:effect Field.UpdateInterval._ set value 200 diff --git a/Asset/data/asset/functions/effect/0211.fading_speed/modifier/add.m.mcfunction b/Asset/data/asset/functions/effect/0211.fading_speed/modifier/add.m.mcfunction new file mode 100644 index 0000000000..b57aa05d2b --- /dev/null +++ b/Asset/data/asset/functions/effect/0211.fading_speed/modifier/add.m.mcfunction @@ -0,0 +1,7 @@ +#> asset:effect/0211.fading_speed/modifier/add.m +# +# +# +# @within function asset:effect/0211.fading_speed/modifier/add + + $attribute @s generic.movement_speed modifier add 00000001-0000-0003-0000-00d300000000 "211.fading_speed" $(Amount) multiply diff --git a/Asset/data/asset/functions/effect/0211.fading_speed/modifier/add.mcfunction b/Asset/data/asset/functions/effect/0211.fading_speed/modifier/add.mcfunction index ad32fb6bdd..6099133f6f 100644 --- a/Asset/data/asset/functions/effect/0211.fading_speed/modifier/add.mcfunction +++ b/Asset/data/asset/functions/effect/0211.fading_speed/modifier/add.mcfunction @@ -4,6 +4,5 @@ # # @within function asset:effect/0211.fading_speed/given/ -# 移動速度低下-20% - attribute @s generic.movement_speed modifier add 00000001-0000-0003-0000-00d300000000 "211.fading_speed" -0.2 multiply - +# 移動速度低下 + function asset:effect/0211.fading_speed/modifier/add.m with storage asset:context this diff --git a/Asset/data/asset/functions/effect/0211.fading_speed/register.mcfunction b/Asset/data/asset/functions/effect/0211.fading_speed/register.mcfunction index 386f93b8bf..a2eeb9ae22 100644 --- a/Asset/data/asset/functions/effect/0211.fading_speed/register.mcfunction +++ b/Asset/data/asset/functions/effect/0211.fading_speed/register.mcfunction @@ -13,7 +13,7 @@ # 説明文 (TextComponentString[]) data modify storage asset:effect Description set value ['{"text":"移動速度が大きく低下する"}'] # 効果時間 (int) (default = API || error) - data modify storage asset:effect Duration set value 400 + # data modify storage asset:effect Duration set value 400 # スタック (int) (default = API || 1) data modify storage asset:effect Stack set value 1 # 効果時間の操作方法 (default = API || "replace") From 98f76bdef9eaf4c7f9e84d9cba693005f9dfcfdb Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Tue, 13 Jan 2026 17:54:50 +0900 Subject: [PATCH 6/8] =?UTF-8?q?=E8=A1=A8=E7=8F=BE=E3=82=92=E8=AA=BF?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../0456.potion_of_stalling_power/give/2.give.mcfunction | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/give/2.give.mcfunction index faa5b746ef..672866dbdc 100644 --- a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/give/2.give.mcfunction +++ b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/give/2.give.mcfunction @@ -15,7 +15,7 @@ # 神器の名前 (TextComponentString) data modify storage asset:artifact Name set value '{"text":"失速する速力のポーション","color":"dark_aqua"}' # 神器の説明文 (TextComponentString[]) - data modify storage asset:artifact Lore set value ['{"text":"- 50秒間、移動速度にバフを得る","color":"white"}','{"translate":"%1$sこのバフは%2$sから始まり","color":"white","with":[{"text":"\\u0010","font":"space"},{"text":"80%"}]}','{"translate":"%1$s10秒経つごとに効果量が%2$sずつ減少する","color":"white","with":[{"text":"\\u0010","font":"space"},{"text":"20%"}]}','{"translate":"- バフ終了後に20秒間、移動速度が%1$s減少する","color":"white","with":[{"text":"20%"}]}','{"text":"- バフ効果時間中に再使用すると","color":"white"}','{"translate":"%1$s最大体力の%2$s分のダメージを受ける","color":"white","with":[{"text":"\\u0010","font":"space"},{"text":"20%"}]}','{"text":"力は一時的な物でしかない。","color":"gray"}','{"text":"その欲求を求め続けるなら","color":"gray"}','{"text":"代償を支払うものだ。","color":"gray"}'] + data modify storage asset:artifact Lore set value ['{"text":"- 50秒間、移動速度にバフを得る","color":"white"}','{"translate":"%1$sこのバフは%2$sから始まり","color":"white","with":[{"text":"\\u0010","font":"space"},{"text":"80%"}]}','{"translate":"%1$s10秒経つごとに効果量が%2$sされる","color":"white","with":[{"text":"\\u0010","font":"space"},{"text":"-20%"}]}','{"translate":"- バフ終了後に20秒間、移動速度が%1$s低下する","color":"white","with":[{"text":"20%"}]}','{"text":"- バフ効果時間中に再使用すると","color":"white"}','{"translate":"%1$s最大体力の%2$s分のダメージを受ける","color":"white","with":[{"text":"\\u0010","font":"space"},{"text":"20%"}]}','{"text":"力は一時的な物でしかない。","color":"gray"}','{"text":"その欲求を求め続けるなら","color":"gray"}','{"text":"代償を支払うものだ。","color":"gray"}'] # 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション) # data modify storage asset:artifact ConsumeItem.Item set value # data modify storage asset:artifact ConsumeItem.Count set value From 3e3b961920438d4d178c1e343edebc58d86e73f1 Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Sun, 25 Jan 2026 08:52:59 +0900 Subject: [PATCH 7/8] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AA=E3=83=87?= =?UTF-8?q?=E3=83=90=E3=83=95=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF=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 --- .../0456.potion_of_stalling_power/trigger/3.main.mcfunction | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction index 448dfd2df1..0cf8005301 100644 --- a/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction +++ b/Asset/data/asset/functions/artifact/0456.potion_of_stalling_power/trigger/3.main.mcfunction @@ -13,10 +13,6 @@ data modify storage api: Argument.ID set value 210 function api:entity/mob/effect/get/from_id -# 薄れゆく速さデバフ(ID:211)があるかチェックする - execute unless data storage api: Return.Effect run data modify storage api: Argument.ID set value 211 - execute unless data storage api: Return.Effect run function api:entity/mob/effect/get/from_id - # バフがあるならダメージ execute if data storage api: Return.Effect{ID:210} run function asset:artifact/0456.potion_of_stalling_power/trigger/reuse_damage From af382bbd4b23a843ef5f0fb1b4076be950669e74 Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Sun, 25 Jan 2026 09:01:36 +0900 Subject: [PATCH 8/8] =?UTF-8?q?this.Interval=E3=81=8C=E4=B8=8D=E8=A6=81?= =?UTF-8?q?=E3=81=A0=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=A7=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../functions/effect/0210.fading_speed/init/.mcfunction | 4 ---- .../functions/effect/0210.fading_speed/register.mcfunction | 3 --- .../functions/effect/0210.fading_speed/tick/.mcfunction | 7 ++----- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/init/.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/init/.mcfunction index 117727e023..f6518c6bd0 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/init/.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/init/.mcfunction @@ -6,9 +6,5 @@ # asset:effect/0210.fading_speed/given/ # asset:effect/0210.fading_speed/re-given/ -# (Duration - 1)をIntervalとして設定 - execute store result storage asset:context this.UpdateInterval.Max int 0.9999999999 run data get storage asset:context Duration - data modify storage asset:context this.UpdateInterval._ set from storage asset:context this.UpdateInterval.Max - # Durationをそのままフィールドに入れておく data modify storage asset:context this.Duration set from storage asset:context Duration diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction index 0c221c6eb1..65385c577d 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/register.mcfunction @@ -39,6 +39,3 @@ data modify storage asset:effect Field.Amount set value 0.2 data modify storage asset:effect Field.Debuff.Duration set value 400 data modify storage asset:effect Field.Debuff.Amount set value -0.2 - - # data modify storage asset:effect Field.UpdateInterval.Max set value 200 - # data modify storage asset:effect Field.UpdateInterval._ set value 200 diff --git a/Asset/data/asset/functions/effect/0210.fading_speed/tick/.mcfunction b/Asset/data/asset/functions/effect/0210.fading_speed/tick/.mcfunction index 16049f5863..9da3e7c474 100644 --- a/Asset/data/asset/functions/effect/0210.fading_speed/tick/.mcfunction +++ b/Asset/data/asset/functions/effect/0210.fading_speed/tick/.mcfunction @@ -4,8 +4,5 @@ # # @within function asset:effect/0210.fading_speed/_/tick -# インターバルのデクリメント -# インターバルが0になるごとにスタックを1下げる - execute store result storage asset:context this.UpdateInterval._ int 0.9999999999 run data get storage asset:context this.UpdateInterval._ - execute if data storage asset:context this.UpdateInterval{_:0} run function asset:effect/0210.fading_speed/tick/reduce_stack - execute if data storage asset:context this.UpdateInterval{_:0} run data modify storage asset:context this.UpdateInterval._ set from storage asset:context this.UpdateInterval.Max +# 効果時間が1になるごとにスタックを1下げる + execute if data storage asset:context {Duration:1} run function asset:effect/0210.fading_speed/tick/reduce_stack