From 4d3dd97d0e12b47099b98bebccda788874675a98 Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Sun, 21 Jun 2026 00:24:23 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=E3=83=86=E3=83=B3=E3=83=97=E3=83=AC?= =?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=BE=E3=81=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../give/1.trigger.mcfunction | 7 ++ .../give/2.give.mcfunction | 73 +++++++++++++++++++ .../trigger/1.trigger.mcfunction | 8 ++ .../trigger/2.check_condition.mcfunction | 14 ++++ .../trigger/3.main.mcfunction | 11 +++ .../asset/tags/functions/artifact/attack.json | 1 + .../asset/tags/functions/artifact/give.json | 1 + 7 files changed, 115 insertions(+) create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/1.trigger.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/1.trigger.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/2.check_condition.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/3.main.mcfunction diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/1.trigger.mcfunction new file mode 100644 index 0000000000..66fd5ce2de --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/1.trigger.mcfunction @@ -0,0 +1,7 @@ +#> asset:artifact/1392.yellow_refraction_prism/give/1.trigger +# +# 神器の取得処理の呼び出し時に実行されるfunction +# +# @within tag/function asset:artifact/give + +execute if data storage asset:context {id:1392} run function asset:artifact/1392.yellow_refraction_prism/give/2.give \ No newline at end of file diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction new file mode 100644 index 0000000000..79b96c6cdf --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction @@ -0,0 +1,73 @@ +#> asset:artifact/1392.yellow_refraction_prism/give/2.give +# +# 神器の作成部 ここでID等を定義する +# +# @user +# @within function asset:artifact/1392.yellow_refraction_prism/give/1.trigger + +# 神器の説明や消費MPなどをここで設定する。 +# 最後にasset:artifact/common/giveを実行することで入手可能。 + +# 神器のID (int) スプレッドシートの値を入れる + data modify storage asset:artifact ID set value 1392 +# 神器のベースアイテム + data modify storage asset:artifact Item set value "minecraft:stick" +# 神器の名前 (TextComponentString) + data modify storage asset:artifact Name set value '[{"text":"黄","color":"#FFA67A"},{"text":"色","color":"#FFAF84"},{"text":"の","color":"#FFB88E"},{"text":"屈","color":"#FFC198"},{"text":"折","color":"#FFCAA2"},{"text":"プ","color":"#FFD3AC"},{"text":"リ","color":"#FFDCB6"},{"text":"ズ","color":"#FFE5C0"},{"text":"ム","color":"#FFEECA"}]' +# 神器の説明文 (TextComponentString[]) + data modify storage asset:artifact Lore set value ['{"text":"攻撃対象3体にダメージ量の10%分の雷属性ダメージを与える"}','{"text":"このダメージは自身のステータス補正の影響を受けない"}'] +# 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション) + # data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.stick"}' + # data modify storage asset:artifact ConsumeItem.Count set value 1 + # data modify storage asset:artifact ConsumeItem.Extra set value +# 使用回数 (int) (オプション) + # data modify storage asset:artifact RemainingCount set value +# 神器を発動できるスロット (string) Wikiを参照 + data modify storage asset:artifact Slot set value "hotbar" +# 神器のトリガー (string) Wikiを参照 + data modify storage asset:artifact Trigger set value "onAttack" +# 効果が重複可能か否か (boolean) (オプション) + # data modify storage asset:artifact EnableDuplication set value +# 神器の発動条件 (TextComponentString) (オプション) + data modify storage asset:artifact Condition set value '{"text":"雷属性以外で属性攻撃"}' +# 攻撃に関する情報 -Damage量 (literal[]/literal) Wikiを参照 (オプション) + # data modify storage asset:artifact AttackInfo.Damage set value [0,0] +# 攻撃に関する情報 -攻撃タイプ (string[]) Wikiを参照 (オプション) + data modify storage asset:artifact AttackInfo.AttackType set value [Physical,Magic] +# 攻撃に関する情報 -攻撃属性 (string[]) Wikiを参照 (オプション) + data modify storage asset:artifact AttackInfo.ElementType set value [Thunder] +# 攻撃に関する情報 -防御無視 (boolean) Wikiを参照 (オプション) + # data modify storage asset:artifact AttackInfo.BypassResist set value +# 攻撃に関する情報 -範囲攻撃 (string) Wikiを参照 (オプション) + # data modify storage asset:artifact AttackInfo.IsRangeAttack set value +# 攻撃に関する情報 -攻撃範囲 (literal) Wikiを参照 (オプション) + # data modify storage asset:artifact AttackInfo.AttackRange set value +# MP消費量 (int) + data modify storage asset:artifact MPCost set value 2 +# MP必要量 (int) (オプション) + # data modify storage asset:artifact MPRequire set value +# MP回復量 (int) + # data modify storage asset:artifact MPHealWhenHit set value +# 神器のクールダウン (int) (オプション) + data modify storage asset:artifact LocalCooldown set value 200 +# 種別クールダウン ({Type: string, Duration: int}) (オプション) + # data modify storage asset:artifact TypeCooldown.Type set value + # data modify storage asset:artifact TypeCooldown.Duration set value +# 第二種別クールダウン ({Type: string, Duration: int}) (オプション) + # data modify storage asset:artifact SecondaryTypeCooldown.Type set value + # data modify storage asset:artifact SecondaryTypeCooldown.Duration set value +# グローバルクールダウン (int) (オプション) + # data modify storage asset:artifact SpecialCooldown set value +# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション) + data modify storage asset:artifact DisableCooldownMessage set value true +# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション) + data modify storage asset:artifact DisableMPMessage set value true +# 破壊時の音を鳴らさないかどうか (boolean) (オプション) + # data modify storage asset:artifact DisableBreakSound set value +# 扱える神 (string[]) Wikiを参照 + data modify storage asset:artifact CanUsedGod set value "ALL" +# カスタムNBT (NBTCompound) 追加で指定したいNBT (オプション) + # data modify storage asset:artifact CustomNBT set value {} + +# 神器の入手用function + function asset:artifact/common/give diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/1.trigger.mcfunction new file mode 100644 index 0000000000..08ff82d0ce --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/1.trigger.mcfunction @@ -0,0 +1,8 @@ +#> asset:artifact/1392.yellow_refraction_prism/trigger/1.trigger +# +# 指定したイベントタイミングで実行されるfunction +# +# @within tag/function asset:artifact/** + +# storage asset:idの%slot%に装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する + execute if data storage asset:context id{hotbar:[1392]} run function asset:artifact/1392.yellow_refraction_prism/trigger/2.check_condition \ No newline at end of file diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/2.check_condition.mcfunction new file mode 100644 index 0000000000..c83c76b301 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/2.check_condition.mcfunction @@ -0,0 +1,14 @@ +#> asset:artifact/1392.yellow_refraction_prism/trigger/2.check_condition +# +# 神器の発動条件をチェックします +# +# @within function asset:artifact/1392.yellow_refraction_prism/trigger/1.trigger + +# ID指定する + data modify storage asset:artifact TargetID set value 1392 +# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く + function asset:artifact/common/check_condition/hotbar +# 他にアイテム等確認する場合はここに書く + +# CanUsedタグをチェックして3.main.mcfunctionを実行する + execute if entity @s[tag=CanUsed] run function asset:artifact/1392.yellow_refraction_prism/trigger/3.main \ No newline at end of file diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/3.main.mcfunction new file mode 100644 index 0000000000..220f3b4620 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/3.main.mcfunction @@ -0,0 +1,11 @@ +#> asset:artifact/1392.yellow_refraction_prism/trigger/3.main +# +# 神器のメイン処理部 +# +# @within function asset:artifact/1392.yellow_refraction_prism/trigger/2.check_condition + +# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う + function asset:artifact/common/use/hotbar + +# ここから先は神器側の効果の処理を書く + say test: 1392.yellow_refraction_prism \ No newline at end of file diff --git a/Asset/data/asset/tags/functions/artifact/attack.json b/Asset/data/asset/tags/functions/artifact/attack.json index cc4f84a8b8..5e684ed12f 100644 --- a/Asset/data/asset/tags/functions/artifact/attack.json +++ b/Asset/data/asset/tags/functions/artifact/attack.json @@ -1,5 +1,6 @@ { "values": [ + "asset:artifact/1392.yellow_refraction_prism/trigger/1.trigger", "asset:artifact/1534.drop_in_the_bucket/trigger/1.trigger", "asset:artifact/1327.lunatic_torch/trigger/1.trigger", "asset:artifact/1308.magnifier_of_detective_girl/trigger/1.trigger", diff --git a/Asset/data/asset/tags/functions/artifact/give.json b/Asset/data/asset/tags/functions/artifact/give.json index 5193ff71b2..bf38bf81f9 100644 --- a/Asset/data/asset/tags/functions/artifact/give.json +++ b/Asset/data/asset/tags/functions/artifact/give.json @@ -1,5 +1,6 @@ { "values": [ + "asset:artifact/1392.yellow_refraction_prism/give/1.trigger", "asset:artifact/1430.shield_of_fate/give/1.trigger", "asset:artifact/1453.frost_flake_bow/give/1.trigger", "asset:artifact/1534.drop_in_the_bucket/give/1.trigger", From 86de6137063f38dbb129d460ebeb31bc9b42942a Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Sun, 21 Jun 2026 18:35:49 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=E5=90=8D=E5=89=8D=E3=81=AE=E8=89=B2?= =?UTF-8?q?=E3=82=92=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1392.yellow_refraction_prism/give/2.give.mcfunction | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction index 79b96c6cdf..95f29efab2 100644 --- a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction @@ -13,7 +13,7 @@ # 神器のベースアイテム data modify storage asset:artifact Item set value "minecraft:stick" # 神器の名前 (TextComponentString) - data modify storage asset:artifact Name set value '[{"text":"黄","color":"#FFA67A"},{"text":"色","color":"#FFAF84"},{"text":"の","color":"#FFB88E"},{"text":"屈","color":"#FFC198"},{"text":"折","color":"#FFCAA2"},{"text":"プ","color":"#FFD3AC"},{"text":"リ","color":"#FFDCB6"},{"text":"ズ","color":"#FFE5C0"},{"text":"ム","color":"#FFEECA"}]' + data modify storage asset:artifact Name set value '[{"text":"黄","color":"#FFA020"},{"text":"色","color":"#FFA834"},{"text":"の","color":"#FFB049"},{"text":"屈","color":"#FFB85D"},{"text":"折","color":"#FFC072"},{"text":"プ","color":"#FFC886"},{"text":"リ","color":"#FFD09B"},{"text":"ズ","color":"#FFD8AF"},{"text":"ム","color":"#FFE1C3"}]' # 神器の説明文 (TextComponentString[]) data modify storage asset:artifact Lore set value ['{"text":"攻撃対象3体にダメージ量の10%分の雷属性ダメージを与える"}','{"text":"このダメージは自身のステータス補正の影響を受けない"}'] # 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション) From 567e861d92d5635834158dfe1f6e3e0c52ab67a1 Mon Sep 17 00:00:00 2001 From: Lapis-LJA Date: Tue, 23 Jun 2026 01:33:56 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../give/2.give.mcfunction | 2 +- .../trigger/2.check_condition.mcfunction | 21 +++++++++++++++- .../trigger/3.main.mcfunction | 23 ++++++++++++++++- .../trigger/_index.d.mcfunction | 7 ++++++ .../trigger/apply.mcfunction | 25 +++++++++++++++++++ .../trigger/recursive.mcfunction | 20 +++++++++++++++ .../trigger/sound.mcfunction | 9 +++++++ .../trigger/vfx/.mcfunction | 7 ++++++ .../trigger/vfx/summon.mcfunction | 9 +++++++ 9 files changed, 120 insertions(+), 3 deletions(-) create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/_index.d.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/apply.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/recursive.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/sound.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/vfx/.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/vfx/summon.mcfunction diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction index 95f29efab2..63d45f9317 100644 --- a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/give/2.give.mcfunction @@ -49,7 +49,7 @@ # MP回復量 (int) # data modify storage asset:artifact MPHealWhenHit set value # 神器のクールダウン (int) (オプション) - data modify storage asset:artifact LocalCooldown set value 200 + data modify storage asset:artifact LocalCooldown set value 50 # 種別クールダウン ({Type: string, Duration: int}) (オプション) # data modify storage asset:artifact TypeCooldown.Type set value # data modify storage asset:artifact TypeCooldown.Duration set value diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/2.check_condition.mcfunction index c83c76b301..22ef42aa94 100644 --- a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/2.check_condition.mcfunction +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/2.check_condition.mcfunction @@ -10,5 +10,24 @@ function asset:artifact/common/check_condition/hotbar # 他にアイテム等確認する場合はここに書く +# CanUsedじゃないならreturn + execute if entity @s[tag=!CanUsed] run return fail + +# バニラ攻撃ならreturn + execute if data storage asset:context Attack{IsVanilla:true} run tag @s remove CanUsed + execute if entity @s[tag=!CanUsed] run return fail + +# DoTならreturn + execute if data storage asset:context Attack{IsDoT:true} run return fail + execute if entity @s[tag=!CanUsed] run return fail + +# 雷属性ならreturn + execute if data storage asset:context Attack{ElementType:"Thunder"} run return fail + execute if entity @s[tag=!CanUsed] run return fail + +# Victimがいなければreturn + execute unless entity @e[type=#lib:living_without_player,tag=Victim,distance=..64] run return fail + execute if entity @s[tag=!CanUsed] run return fail + # CanUsedタグをチェックして3.main.mcfunctionを実行する - execute if entity @s[tag=CanUsed] run function asset:artifact/1392.yellow_refraction_prism/trigger/3.main \ No newline at end of file + execute if entity @s[tag=CanUsed] run function asset:artifact/1392.yellow_refraction_prism/trigger/3.main diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/3.main.mcfunction index 220f3b4620..99223c9c8c 100644 --- a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/3.main.mcfunction +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/3.main.mcfunction @@ -8,4 +8,25 @@ function asset:artifact/common/use/hotbar # ここから先は神器側の効果の処理を書く - say test: 1392.yellow_refraction_prism \ No newline at end of file + +# SingleDamageSession open + function api:damage/single_damage_session/open + +# 攻撃対象のうち近いN体にダメージ + execute as @e[type=#lib:living_without_player,tag=Victim,tag=!Uninterferable,distance=..64,sort=nearest,limit=3] at @s run function asset:artifact/1392.yellow_refraction_prism/trigger/apply + +# SingleDamageSession close + function api:damage/single_damage_session/close + +# 音 + execute at @e[type=#lib:living_without_player,tag=Target,distance=..64] run function asset:artifact/1392.yellow_refraction_prism/trigger/sound + +# 自作パーティクル + function asset:artifact/1392.yellow_refraction_prism/trigger/vfx/ + function asset:artifact/1392.yellow_refraction_prism/trigger/vfx/ + function asset:artifact/1392.yellow_refraction_prism/trigger/vfx/ + function asset:artifact/1392.yellow_refraction_prism/trigger/vfx/ + +# リセット + data remove storage asset:temp Temp + tag @e[type=#lib:living_without_player,tag=Target,distance=..64] remove Target diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/_index.d.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/_index.d.mcfunction new file mode 100644 index 0000000000..a75cef0715 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/_index.d.mcfunction @@ -0,0 +1,7 @@ +#> asset:artifact/1392.yellow_refraction_prism/trigger/_index.d +# @private + +#> tag +# @within function asset:artifact/1392.yellow_refraction_prism/trigger/** + #declare score_holder $TempID + #declare tag Target diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/apply.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/apply.mcfunction new file mode 100644 index 0000000000..164a02d5a5 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/apply.mcfunction @@ -0,0 +1,25 @@ +#> asset:artifact/1392.yellow_refraction_prism/trigger/apply +# +# +# +# @within function asset:artifact/1392.yellow_refraction_prism/trigger/3.main + +# 自身にTagを付与しておく + tag @s add Target + +# 事前処理 + data modify storage asset:temp Temp.To set from storage asset:context Attack.To + data modify storage asset:temp Temp.Amounts set from storage asset:context Attack.Amounts + function asset:artifact/1392.yellow_refraction_prism/trigger/recursive + scoreboard players reset $TempID Temporary + +# ダメージ +# 自身の補正は適用されない + execute store result storage api: Argument.Damage double 0.001 run data get storage asset:temp Temp.Damage 100 + data modify storage api: Argument.AttackType set from storage asset:context Attack.AttackType + data modify storage api: Argument.ElementType set value "Thunder" + data modify storage api: Argument.BypassModifier set value true + execute as @p[tag=this] run function api:damage/modifier + data modify storage api: Argument.BypassModifier set value false + function api:damage/ + function api:damage/reset diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/recursive.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/recursive.mcfunction new file mode 100644 index 0000000000..da387e67e4 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/recursive.mcfunction @@ -0,0 +1,20 @@ +#> asset:artifact/1392.yellow_refraction_prism/trigger/recursive +# +# +# +# @within function +# asset:artifact/1392.yellow_refraction_prism/trigger/apply +# asset:artifact/1392.yellow_refraction_prism/trigger/recursive + +# 最後尾の要素を取得 + execute store result score $TempID Temporary run data get storage asset:temp Temp.To[-1] + +# 最後尾のIDが自身のUUIDと一致しているなら、ダメージをTempStorageに入れておく + execute if score @s MobUUID = $TempID Temporary run data modify storage asset:temp Temp.Damage set from storage asset:temp Temp.Amounts[-1] + +# 一致していないなら最後尾の要素を削除 + execute unless score @s MobUUID = $TempID Temporary run data remove storage asset:temp Temp.To[-1] + execute unless score @s MobUUID = $TempID Temporary run data remove storage asset:temp Temp.Amounts[-1] + +# 要素がある && 一致してないなら再帰 + execute if data storage asset:temp Temp.To[0] unless score @s MobUUID = $TempID Temporary run function asset:artifact/1392.yellow_refraction_prism/trigger/recursive diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/sound.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/sound.mcfunction new file mode 100644 index 0000000000..c66a219cc2 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/sound.mcfunction @@ -0,0 +1,9 @@ +#> asset:artifact/1392.yellow_refraction_prism/trigger/sound +# +# +# +# @within function asset:artifact/1392.yellow_refraction_prism/trigger/3.main + + playsound block.amethyst_cluster.step player @a ~ ~ ~ 1 0.7 + playsound block.amethyst_cluster.step player @a ~ ~ ~ 1 0.65 + playsound block.amethyst_cluster.step player @a ~ ~ ~ 1 0.6 diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/vfx/.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/vfx/.mcfunction new file mode 100644 index 0000000000..a243efb611 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/vfx/.mcfunction @@ -0,0 +1,7 @@ +#> asset:artifact/1392.yellow_refraction_prism/trigger/vfx/ +# +# +# +# @within function asset:artifact/1392.yellow_refraction_prism/trigger/3.main + + execute as @e[type=#lib:living_without_player,tag=Target,distance=..64,sort=random,limit=1] at @s anchored eyes rotated ~ 0 positioned ^ ^-0.5 ^ run function asset:artifact/1392.yellow_refraction_prism/trigger/vfx/summon diff --git a/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/vfx/summon.mcfunction b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/vfx/summon.mcfunction new file mode 100644 index 0000000000..c4e7dcb61b --- /dev/null +++ b/Asset/data/asset/functions/artifact/1392.yellow_refraction_prism/trigger/vfx/summon.mcfunction @@ -0,0 +1,9 @@ +#> asset:artifact/1392.yellow_refraction_prism/trigger/vfx/summon +# +# +# +# @within function asset:artifact/1392.yellow_refraction_prism/trigger/vfx/ + + data modify storage api: Argument.ID set value 1156 + data modify storage api: Argument.FieldOverride.Font set value 3 + function api:object/summon