From bd22143c6b6d50d67ca883d546d8c2ce372d4fa8 Mon Sep 17 00:00:00 2001 From: ogachu0331 Date: Mon, 15 Jun 2026 13:38:37 +0900 Subject: [PATCH 1/8] =?UTF-8?q?=E7=A5=9E=E5=99=A8=E3=81=AE=E6=A9=9F?= =?UTF-8?q?=E8=83=BD=E3=81=AE=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../give/1.trigger.mcfunction | 7 ++ .../1555.shift_change/give/2.give.mcfunction | 68 +++++++++++++++++++ .../trigger/1.trigger.mcfunction | 8 +++ .../trigger/2.check_condition.mcfunction | 18 +++++ .../trigger/3.main.mcfunction | 46 +++++++++++++ .../artifact/click.carrot_on_a_stick.json | 3 +- .../asset/tags/functions/artifact/give.json | 3 +- 7 files changed, 151 insertions(+), 2 deletions(-) create mode 100644 Asset/data/asset/functions/artifact/1555.shift_change/give/1.trigger.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1555.shift_change/give/2.give.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1555.shift_change/trigger/1.trigger.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction create mode 100644 Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/give/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/give/1.trigger.mcfunction new file mode 100644 index 0000000000..2d8faa0327 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1555.shift_change/give/1.trigger.mcfunction @@ -0,0 +1,7 @@ +#> asset:artifact/1555.shift_change/give/1.trigger +# +# 神器の取得処理の呼び出し時に実行されるfunction +# +# @within tag/function asset:artifact/give + +execute if data storage asset:context {id:1555} run function asset:artifact/1555.shift_change/give/2.give \ No newline at end of file diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/give/2.give.mcfunction new file mode 100644 index 0000000000..b3bcab45ec --- /dev/null +++ b/Asset/data/asset/functions/artifact/1555.shift_change/give/2.give.mcfunction @@ -0,0 +1,68 @@ +#> asset:artifact/1555.shift_change/give/2.give +# +# 神器の作成部 ここでID等を定義する +# +# @user +# @within function asset:artifact/1555.shift_change/give/1.trigger + +# 神器の説明や消費MPなどをここで設定する。 +# 最後にasset:artifact/common/giveを実行することで入手可能。 + +# 神器のID (int) スプレッドシートの値を入れる + data modify storage asset:artifact ID set value 1555 +# 神器のベースアイテム + data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick" +# 神器の名前 (TextComponentString) + data modify storage asset:artifact Name set value '{"text":"シフトチェンジ","color":"#dd47ff"}' +# 神器の説明文 (TextComponentString[]) + data modify storage asset:artifact Lore set value ['{"text":"サーバー内のランダムな味方1名と位置を入れ替える","color":"white"}'] +# 消費アイテム ({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 5 +# 神器を発動できるスロット (string) Wikiを参照 + data modify storage asset:artifact Slot set value "mainhand" +# 神器のトリガー (string) Wikiを参照 + data modify storage asset:artifact Trigger set value "onClick" +# 神器の発動条件 (TextComponentString) (オプション) + # data modify storage asset:artifact Condition set value +# 攻撃に関する情報 -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 [Fire,Water,Thunder,None] +# 攻撃に関する情報 -防御無視 (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 30 +# 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 +# グローバルクールダウン (int) (オプション) + # data modify storage asset:artifact SpecialCooldown set value +# クールダウンによる使用不可のメッセージを非表示にするか否か (boolean) (オプション) + # data modify storage asset:artifact DisableCooldownMessage set value +# MP不足による使用不可のメッセージを非表示にするか否か (boolean) (オプション) + # data modify storage asset:artifact DisableMPMessage set value +# 破壊時の音を鳴らさないかどうか (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/1555.shift_change/trigger/1.trigger.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/1.trigger.mcfunction new file mode 100644 index 0000000000..26e2ace8f4 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/1.trigger.mcfunction @@ -0,0 +1,8 @@ +#> asset:artifact/1555.shift_change/trigger/1.trigger +# +# 指定したイベントタイミングで実行されるfunction +# +# @within tag/function asset:artifact/** + +# storage asset:idのmainhandに装備している神器のIDが入っているので比較し、~/2.check_condition.mcfunctionを実行する + execute if data storage asset:context id{mainhand:1555} run function asset:artifact/1555.shift_change/trigger/2.check_condition \ No newline at end of file diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction new file mode 100644 index 0000000000..a548c567d8 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction @@ -0,0 +1,18 @@ +#> asset:artifact/1555.shift_change/trigger/2.check_condition +# +# 神器の発動条件をチェックします +# +# @within function asset:artifact/1555.shift_change/trigger/1.trigger + +# 神器の基本的な条件の確認を行うfunction、成功している場合CanUsedタグが付く + function asset:artifact/common/check_condition/mainhand + +# 他にアイテム等確認する場合はここに書く +# そもそも他人がいるか + execute unless entity @a[tag=!this] run tag @s remove CanUsed + execute unless entity @a[tag=!this] run tellraw @s [{"text": "おや?このサーバーにはあなたしかいないようですよ?","color": "gray"}] +# 入れ替え可能なプレイヤーがいるか + execute if entity @a[tag=!this] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tag @s remove CanUsed + execute if entity @a[tag=!this] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tellraw @s [{"text": "皆さんは今立て込んだ状況のようです...","color": "gray"}] +# CanUsedタグをチェックして3.main.mcfunctionを実行する + execute if entity @s[tag=CanUsed] run function asset:artifact/1555.shift_change/trigger/3.main diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction new file mode 100644 index 0000000000..06ce84eef3 --- /dev/null +++ b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction @@ -0,0 +1,46 @@ +#> asset:artifact/1555.shift_change/trigger/3.main +# +# 神器のメイン処理部 +# +# @within function asset:artifact/1555.shift_change/trigger/2.check_condition + +#> private +# @private + #declare tag 177.changed + #declare tag 177.change_marker + +# 基本的な使用時の処理(MP消費や使用回数の処理など)を行う + function asset:artifact/common/use/mainhand + +# ここから先は神器側の効果の処理を書く +# 念のためtagとmarkerを削除 + tag @a remove 177.changed + kill @e[type=marker,tag=177.change_marker] + +# 入れ替え対象を決定 + tag @r[tag=!this,predicate=!lib:is_ban_tp_area] add 177.changed + +# 対象の場所にマーカー設置 + execute at @a[tag=177.changed,limit=1] run summon marker ~ ~ ~ {Tags:["177.change_marker"]} + +# マーカー自身の向きを、対象のプレイヤーの向きと同期する + execute as @e[type=marker,tag=177.change_marker,limit=1] at @s rotated as @a[tag=177.changed,limit=1] run tp @s ~ ~ ~ ~ ~ + +# 対象を自身の場所・向きへtp + execute at @s rotated as @s run tp @a[tag=177.changed,limit=1] ~ ~ ~ ~ ~ + +# 自分をマーカー(対象が元いた場所・向き)にテレポートさせる + execute at @e[type=marker,tag=177.change_marker,limit=1] rotated as @e[type=marker,tag=177.change_marker,limit=1] run tp @s ~ ~ ~ ~ ~ + +# 1. 自分の場所でパーティクルと音を鳴らす + execute at @s run particle minecraft:reverse_portal ~ ~1 ~ 0.5 1 0.5 0.05 40 player @a + execute at @s run playsound minecraft:item.chorus_fruit.teleport player @a ~ ~ ~ 1.0 1.0 0 +# 2. 対象の場所でパーティクルと音を鳴らす + execute at @a[tag=177.changed,limit=1] run particle minecraft:reverse_portal ~ ~1 ~ 0.5 1 0.5 0.05 40 player @a + execute at @a[tag=177.changed,limit=1] run playsound minecraft:item.chorus_fruit.teleport player @a ~ ~ ~ 1.0 1.0 0 + +# マーカーを削除する + kill @e[type=marker,tag=177.change_marker] + +# 味方のターゲットタグを外してリセットする + tag @a remove 177.changed diff --git a/Asset/data/asset/tags/functions/artifact/click.carrot_on_a_stick.json b/Asset/data/asset/tags/functions/artifact/click.carrot_on_a_stick.json index 8b0fecd8b5..3a468d9996 100644 --- a/Asset/data/asset/tags/functions/artifact/click.carrot_on_a_stick.json +++ b/Asset/data/asset/tags/functions/artifact/click.carrot_on_a_stick.json @@ -1,5 +1,6 @@ { "values": [ + "asset:artifact/1555.shift_change/trigger/1.trigger", "asset:artifact/1332.bebebeam/trigger/1.trigger", "asset:artifact/1306.will_o_wisp/trigger/1.trigger", "asset:artifact/1144.cradle_of_azure_moon/trigger/1.trigger", @@ -177,4 +178,4 @@ "asset:artifact/2001.staff_of_the_willless/trigger/1.trigger", "asset:artifact/0019.scripture/trigger/1.trigger" ] -} +} \ No newline at end of file diff --git a/Asset/data/asset/tags/functions/artifact/give.json b/Asset/data/asset/tags/functions/artifact/give.json index f8f86c672d..d076634fc6 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/1555.shift_change/give/1.trigger", "asset:artifact/1409.mana_charm/give/1.trigger", "asset:artifact/1327.lunatic_torch/give/1.trigger", "asset:artifact/1332.bebebeam/give/1.trigger", @@ -533,4 +534,4 @@ "asset:artifact/0735.collision_plate/give/1.trigger", "asset:artifact/0745.blade_of_whirlwind/give/1.trigger" ] -} +} \ No newline at end of file From 406e19e299a273f7954d5ef1d0dbb1911646e795 Mon Sep 17 00:00:00 2001 From: ogachu0331 Date: Mon, 15 Jun 2026 13:50:15 +0900 Subject: [PATCH 2/8] =?UTF-8?q?=E8=87=AA=E8=BA=AB=E3=81=8C=E3=83=AF?= =?UTF-8?q?=E3=83=BC=E3=83=97=E4=B8=8D=E8=83=BD=E3=81=AE=E3=81=A8=E3=81=8D?= =?UTF-8?q?=E3=81=AB=E4=BD=BF=E7=94=A8=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=8F?= =?UTF-8?q?=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trigger/2.check_condition.mcfunction | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction index a548c567d8..8456e20048 100644 --- a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction +++ b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction @@ -8,11 +8,14 @@ function asset:artifact/common/check_condition/mainhand # 他にアイテム等確認する場合はここに書く +# 自身がワープ可能か + execute unless entity @s[predicate=lib:is_ban_tp_area] run tag @s remove CanUsed + execute unless entity @s[predicate=lib:is_ban_tp_area] run tellraw @s {"text":"不思議な力が転送を妨害した。","color":"dark_aqua"} # そもそも他人がいるか - execute unless entity @a[tag=!this] run tag @s remove CanUsed - execute unless entity @a[tag=!this] run tellraw @s [{"text": "おや?このサーバーにはあなたしかいないようですよ?","color": "gray"}] + execute if entity @s[predicate=lib:is_ban_tp_area] unless entity @a[tag=!this] run tag @s remove CanUsed + execute if entity @s[predicate=lib:is_ban_tp_area] unless entity @a[tag=!this] run tellraw @s [{"text": "おや?このサーバーにはあなたしかいないようですよ?","color": "gray"}] # 入れ替え可能なプレイヤーがいるか - execute if entity @a[tag=!this] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tag @s remove CanUsed - execute if entity @a[tag=!this] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tellraw @s [{"text": "皆さんは今立て込んだ状況のようです...","color": "gray"}] + execute if entity @s[predicate=lib:is_ban_tp_area] if entity @a[tag=!this] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tag @s remove CanUsed + execute if entity @s[predicate=lib:is_ban_tp_area] if entity @a[tag=!this] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tellraw @s [{"text": "皆さんは今立て込んだ状況のようです...","color": "gray"}] # CanUsedタグをチェックして3.main.mcfunctionを実行する execute if entity @s[tag=CanUsed] run function asset:artifact/1555.shift_change/trigger/3.main From 20d8712fe47f663cb70feb4d0ff4c9cf804275a5 Mon Sep 17 00:00:00 2001 From: ogachu0331 Date: Mon, 15 Jun 2026 13:54:43 +0900 Subject: [PATCH 3/8] =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89?= =?UTF-8?q?=E3=81=AE=E6=A7=8B=E6=96=87=E3=82=A8=E3=83=A9=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../artifact/1555.shift_change/trigger/3.main.mcfunction | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction index 06ce84eef3..8692c08f28 100644 --- a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction +++ b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction @@ -33,10 +33,10 @@ execute at @e[type=marker,tag=177.change_marker,limit=1] rotated as @e[type=marker,tag=177.change_marker,limit=1] run tp @s ~ ~ ~ ~ ~ # 1. 自分の場所でパーティクルと音を鳴らす - execute at @s run particle minecraft:reverse_portal ~ ~1 ~ 0.5 1 0.5 0.05 40 player @a + execute at @s run particle minecraft:reverse_portal ~ ~1 ~ 0.5 1 0.5 0.05 40 normal @a execute at @s run playsound minecraft:item.chorus_fruit.teleport player @a ~ ~ ~ 1.0 1.0 0 # 2. 対象の場所でパーティクルと音を鳴らす - execute at @a[tag=177.changed,limit=1] run particle minecraft:reverse_portal ~ ~1 ~ 0.5 1 0.5 0.05 40 player @a + execute at @a[tag=177.changed,limit=1] run particle minecraft:reverse_portal ~ ~1 ~ 0.5 1 0.5 0.05 40 normal @a execute at @a[tag=177.changed,limit=1] run playsound minecraft:item.chorus_fruit.teleport player @a ~ ~ ~ 1.0 1.0 0 # マーカーを削除する From 201abf495612b5ae5e641153749ab02be4437079 Mon Sep 17 00:00:00 2001 From: ogachu0331 Date: Mon, 15 Jun 2026 21:31:45 +0900 Subject: [PATCH 4/8] =?UTF-8?q?=E7=99=BA=E5=8B=95=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trigger/2.check_condition.mcfunction | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction index 8456e20048..a53c98e2b7 100644 --- a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction +++ b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction @@ -9,13 +9,13 @@ # 他にアイテム等確認する場合はここに書く # 自身がワープ可能か - execute unless entity @s[predicate=lib:is_ban_tp_area] run tag @s remove CanUsed - execute unless entity @s[predicate=lib:is_ban_tp_area] run tellraw @s {"text":"不思議な力が転送を妨害した。","color":"dark_aqua"} + execute if entity @s[tag=CanUsed] if entity @s[predicate=lib:is_ban_tp_area] run tellraw @s {"text":"不思議な力が転送を妨害した。","color":"dark_aqua"} + execute if entity @s[predicate=lib:is_ban_tp_area] run tag @s remove CanUsed # そもそも他人がいるか - execute if entity @s[predicate=lib:is_ban_tp_area] unless entity @a[tag=!this] run tag @s remove CanUsed - execute if entity @s[predicate=lib:is_ban_tp_area] unless entity @a[tag=!this] run tellraw @s [{"text": "おや?このサーバーにはあなたしかいないようですよ?","color": "gray"}] + execute if entity @s[tag=CanUsed] unless entity @a[tag=!this] run return run tellraw @s [{"text": "おや?このサーバーにはあなたしかいないようですよ?","color": "gray"}] + execute unless entity @a[tag=!this] run tag @s remove CanUsed # 入れ替え可能なプレイヤーがいるか - execute if entity @s[predicate=lib:is_ban_tp_area] if entity @a[tag=!this] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tag @s remove CanUsed - execute if entity @s[predicate=lib:is_ban_tp_area] if entity @a[tag=!this] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tellraw @s [{"text": "皆さんは今立て込んだ状況のようです...","color": "gray"}] + execute if entity @s[tag=CanUsed] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run return run tellraw @s [{"text": "皆さんは今立て込んだ状況のようです...時間をおいて再度お試しください","color": "gray"}] + execute unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tag @s remove CanUsed # CanUsedタグをチェックして3.main.mcfunctionを実行する execute if entity @s[tag=CanUsed] run function asset:artifact/1555.shift_change/trigger/3.main From 4d87ff627ff5a7a2668f406c72fd05d81ed7d058 Mon Sep 17 00:00:00 2001 From: ogachu0331 Date: Thu, 18 Jun 2026 16:45:26 +0900 Subject: [PATCH 5/8] =?UTF-8?q?=E5=90=8D=E5=89=8D=E3=82=92=E3=83=86?= =?UTF-8?q?=E3=82=AF=E3=82=B9=E3=83=81=E3=83=A3=E3=81=AB=E5=90=88=E3=82=8F?= =?UTF-8?q?=E3=81=9B=E3=81=9F=E8=89=B2=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../artifact/1555.shift_change/give/2.give.mcfunction | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/give/2.give.mcfunction index b3bcab45ec..e03e0a2947 100644 --- a/Asset/data/asset/functions/artifact/1555.shift_change/give/2.give.mcfunction +++ b/Asset/data/asset/functions/artifact/1555.shift_change/give/2.give.mcfunction @@ -13,8 +13,7 @@ # 神器のベースアイテム data modify storage asset:artifact Item set value "minecraft:carrot_on_a_stick" # 神器の名前 (TextComponentString) - data modify storage asset:artifact Name set value '{"text":"シフトチェンジ","color":"#dd47ff"}' -# 神器の説明文 (TextComponentString[]) + data modify storage asset:artifact Name set value '[{"text":"シフト","color":"#0E82E8","bold":true},{"text":"チェンジ","color":"#C9A410"}]' data modify storage asset:artifact Lore set value ['{"text":"サーバー内のランダムな味方1名と位置を入れ替える","color":"white"}'] # 消費アイテム ({Item: TextComponent, Count: int, Extra?: TextComponent}) (オプション) # data modify storage asset:artifact ConsumeItem.Item set value '{"translate":"item.minecraft.stick"}' From abfb6d85d4442f0ef808e3006c2fe9622a062090 Mon Sep 17 00:00:00 2001 From: ogachu0331 Date: Thu, 18 Jun 2026 17:08:20 +0900 Subject: [PATCH 6/8] =?UTF-8?q?=E6=8C=87=E6=91=98=E7=82=B9=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trigger/2.check_condition.mcfunction | 16 ++++----- .../trigger/3.main.mcfunction | 33 ++++++++++--------- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction index a53c98e2b7..d5c1e98777 100644 --- a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction +++ b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction @@ -9,13 +9,13 @@ # 他にアイテム等確認する場合はここに書く # 自身がワープ可能か - execute if entity @s[tag=CanUsed] if entity @s[predicate=lib:is_ban_tp_area] run tellraw @s {"text":"不思議な力が転送を妨害した。","color":"dark_aqua"} - execute if entity @s[predicate=lib:is_ban_tp_area] run tag @s remove CanUsed -# そもそも他人がいるか - execute if entity @s[tag=CanUsed] unless entity @a[tag=!this] run return run tellraw @s [{"text": "おや?このサーバーにはあなたしかいないようですよ?","color": "gray"}] - execute unless entity @a[tag=!this] run tag @s remove CanUsed -# 入れ替え可能なプレイヤーがいるか - execute if entity @s[tag=CanUsed] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run return run tellraw @s [{"text": "皆さんは今立て込んだ状況のようです...時間をおいて再度お試しください","color": "gray"}] - execute unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tag @s remove CanUsed + #execute if entity @s[tag=CanUsed] if entity @s[predicate=lib:is_ban_tp_area] run tellraw @s {"text":"不思議な力が転送を妨害した。","color":"dark_aqua"} + #execute if entity @s[predicate=lib:is_ban_tp_area] run tag @s remove CanUsed +# そ#もそも他人がいるか + #execute if entity @s[tag=CanUsed] unless entity @a[tag=!this] run return run tellraw @s [{"text": "おや?このサーバーにはあなたしかいないようですよ?","color": "gray"}] + #execute unless entity @a[tag=!this] run tag @s remove CanUsed +# 入#れ替え可能なプレイヤーがいるか + #execute if entity @s[tag=CanUsed] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run return run tellraw @s [{"text": "皆さんは今立て込んだ状況のようです...時間をおいて再度お試しください","color": "gray"}] + #execute unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tag @s remove CanUsed # CanUsedタグをチェックして3.main.mcfunctionを実行する execute if entity @s[tag=CanUsed] run function asset:artifact/1555.shift_change/trigger/3.main diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction index 8692c08f28..3c82e0dbd0 100644 --- a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction +++ b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/3.main.mcfunction @@ -3,44 +3,45 @@ # 神器のメイン処理部 # # @within function asset:artifact/1555.shift_change/trigger/2.check_condition - #> private # @private - #declare tag 177.changed - #declare tag 177.change_marker + #declare tag 177.Changed + #declare tag 177.ChangeMarker + # 基本的な使用時の処理(MP消費や使用回数の処理など)を行う function asset:artifact/common/use/mainhand # ここから先は神器側の効果の処理を書く # 念のためtagとmarkerを削除 - tag @a remove 177.changed - kill @e[type=marker,tag=177.change_marker] + tag @a remove 177.Changed + kill @e[type=marker,tag=177.ChangeMarker] # 入れ替え対象を決定 - tag @r[tag=!this,predicate=!lib:is_ban_tp_area] add 177.changed + tag @r[tag=!this,predicate=!lib:is_ban_tp_area] add 177.Changed # 対象の場所にマーカー設置 - execute at @a[tag=177.changed,limit=1] run summon marker ~ ~ ~ {Tags:["177.change_marker"]} + execute at @a[tag=177.Changed,limit=1] run summon marker ~ ~ ~ {Tags:["177.ChangeMarker"]} # マーカー自身の向きを、対象のプレイヤーの向きと同期する - execute as @e[type=marker,tag=177.change_marker,limit=1] at @s rotated as @a[tag=177.changed,limit=1] run tp @s ~ ~ ~ ~ ~ + execute as @e[type=marker,tag=177.ChangeMarker,limit=1] at @s rotated as @a[tag=177.Changed,limit=1] run tp @s ~ ~ ~ ~ ~ # 対象を自身の場所・向きへtp - execute at @s rotated as @s run tp @a[tag=177.changed,limit=1] ~ ~ ~ ~ ~ + tp @a[tag=177.Changed,limit=1] ~ ~ ~ ~ ~ # 自分をマーカー(対象が元いた場所・向き)にテレポートさせる - execute at @e[type=marker,tag=177.change_marker,limit=1] rotated as @e[type=marker,tag=177.change_marker,limit=1] run tp @s ~ ~ ~ ~ ~ + execute at @e[type=marker,tag=177.ChangeMarker,limit=1] rotated as @e[type=marker,tag=177.ChangeMarker,limit=1] run tp @s ~ ~ ~ ~ ~ # 1. 自分の場所でパーティクルと音を鳴らす - execute at @s run particle minecraft:reverse_portal ~ ~1 ~ 0.5 1 0.5 0.05 40 normal @a - execute at @s run playsound minecraft:item.chorus_fruit.teleport player @a ~ ~ ~ 1.0 1.0 0 + particle minecraft:reverse_portal ~ ~1 ~ 0.5 1 0.5 0.05 40 normal @a + playsound minecraft:item.chorus_fruit.teleport player @a ~ ~ ~ 1.0 1.0 0 + # 2. 対象の場所でパーティクルと音を鳴らす - execute at @a[tag=177.changed,limit=1] run particle minecraft:reverse_portal ~ ~1 ~ 0.5 1 0.5 0.05 40 normal @a - execute at @a[tag=177.changed,limit=1] run playsound minecraft:item.chorus_fruit.teleport player @a ~ ~ ~ 1.0 1.0 0 + execute at @a[tag=177.Changed,limit=1] run particle minecraft:reverse_portal ~ ~1 ~ 0.5 1 0.5 0.05 40 normal @a + execute at @a[tag=177.Changed,limit=1] run playsound minecraft:item.chorus_fruit.teleport player @a ~ ~ ~ 1.0 1.0 0 # マーカーを削除する - kill @e[type=marker,tag=177.change_marker] + kill @e[type=marker,tag=177.ChangeMarker] # 味方のターゲットタグを外してリセットする - tag @a remove 177.changed + tag @a remove 177.Changed From 2cfbc02e9ecb03dd5560063486c1af869464ccc6 Mon Sep 17 00:00:00 2001 From: ogachu0331 Date: Thu, 18 Jun 2026 17:09:46 +0900 Subject: [PATCH 7/8] =?UTF-8?q?=E3=83=87=E3=83=90=E3=83=83=E3=82=AF?= =?UTF-8?q?=E6=99=82=E3=81=AE=E8=A8=98=E8=BF=B0=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trigger/2.check_condition.mcfunction | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction index d5c1e98777..a53c98e2b7 100644 --- a/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction +++ b/Asset/data/asset/functions/artifact/1555.shift_change/trigger/2.check_condition.mcfunction @@ -9,13 +9,13 @@ # 他にアイテム等確認する場合はここに書く # 自身がワープ可能か - #execute if entity @s[tag=CanUsed] if entity @s[predicate=lib:is_ban_tp_area] run tellraw @s {"text":"不思議な力が転送を妨害した。","color":"dark_aqua"} - #execute if entity @s[predicate=lib:is_ban_tp_area] run tag @s remove CanUsed -# そ#もそも他人がいるか - #execute if entity @s[tag=CanUsed] unless entity @a[tag=!this] run return run tellraw @s [{"text": "おや?このサーバーにはあなたしかいないようですよ?","color": "gray"}] - #execute unless entity @a[tag=!this] run tag @s remove CanUsed -# 入#れ替え可能なプレイヤーがいるか - #execute if entity @s[tag=CanUsed] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run return run tellraw @s [{"text": "皆さんは今立て込んだ状況のようです...時間をおいて再度お試しください","color": "gray"}] - #execute unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tag @s remove CanUsed + execute if entity @s[tag=CanUsed] if entity @s[predicate=lib:is_ban_tp_area] run tellraw @s {"text":"不思議な力が転送を妨害した。","color":"dark_aqua"} + execute if entity @s[predicate=lib:is_ban_tp_area] run tag @s remove CanUsed +# そもそも他人がいるか + execute if entity @s[tag=CanUsed] unless entity @a[tag=!this] run return run tellraw @s [{"text": "おや?このサーバーにはあなたしかいないようですよ?","color": "gray"}] + execute unless entity @a[tag=!this] run tag @s remove CanUsed +# 入れ替え可能なプレイヤーがいるか + execute if entity @s[tag=CanUsed] unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run return run tellraw @s [{"text": "皆さんは今立て込んだ状況のようです...時間をおいて再度お試しください","color": "gray"}] + execute unless entity @a[tag=!this,predicate=!lib:is_ban_tp_area] run tag @s remove CanUsed # CanUsedタグをチェックして3.main.mcfunctionを実行する execute if entity @s[tag=CanUsed] run function asset:artifact/1555.shift_change/trigger/3.main From 393608e6aaeb717378f165a1bfcca07bdb36e41a Mon Sep 17 00:00:00 2001 From: ogachu0331 Date: Fri, 19 Jun 2026 18:34:45 +0900 Subject: [PATCH 8/8] =?UTF-8?q?=E5=8A=A0=E5=B7=A5=E6=A9=9F=E3=81=AB?= =?UTF-8?q?=E7=99=BB=E9=8C=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../artifact/1555.shift_change/register.mcfunction | 7 +++++++ Asset/data/asset/tags/functions/artifact/register.json | 1 + 2 files changed, 8 insertions(+) create mode 100644 Asset/data/asset/functions/artifact/1555.shift_change/register.mcfunction diff --git a/Asset/data/asset/functions/artifact/1555.shift_change/register.mcfunction b/Asset/data/asset/functions/artifact/1555.shift_change/register.mcfunction new file mode 100644 index 0000000000..8379e670cc --- /dev/null +++ b/Asset/data/asset/functions/artifact/1555.shift_change/register.mcfunction @@ -0,0 +1,7 @@ +#> asset:artifact/1555.shift_change/register +# +# 神器プールへの登録処理 +# +# @within tag/function asset:artifact/register + +data modify storage asset:artifact RarityRegistry[2] append value [1555] \ No newline at end of file diff --git a/Asset/data/asset/tags/functions/artifact/register.json b/Asset/data/asset/tags/functions/artifact/register.json index 98587f21f2..c520370b23 100644 --- a/Asset/data/asset/tags/functions/artifact/register.json +++ b/Asset/data/asset/tags/functions/artifact/register.json @@ -1,5 +1,6 @@ { "values": [ + "asset:artifact/1555.shift_change/register", "asset:artifact/1534.drop_in_the_bucket/register", "asset:artifact/1365.shaved_ice_blue_hawaii/register", "asset:artifact/1366.shaved_ice_melon/register",