From a8a76e04f71801a06e851c8e3b87770e141c49a9 Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Mon, 26 Jan 2026 16:54:32 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=E4=B8=AD=E8=BA=AB=E5=85=A5=E3=82=8A?= =?UTF-8?q?=E3=81=AE=E3=83=81=E3=82=A7=E3=82=B9=E3=83=88=E3=83=BB=E3=82=B7?= =?UTF-8?q?=E3=83=A5=E3=83=AB=E3=82=AB=E3=83=BC=E3=83=9C=E3=83=83=E3=82=AF?= =?UTF-8?q?=E3=82=B9=E3=82=92=E3=81=AF=E3=81=98=E3=81=8F=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 --- .../give/2.give.mcfunction | 2 +- .../trigger/2.check_condition.mcfunction | 4 +-- .../2.check_condition/ban_items.mcfunction | 30 ------------------- .../2.check_condition/is_nested.mcfunction | 11 +++++++ 4 files changed, 14 insertions(+), 33 deletions(-) delete mode 100644 Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition/ban_items.mcfunction create mode 100644 Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition/is_nested.mcfunction diff --git a/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction index 9a3bbc22ca..813f5090df 100644 --- a/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction +++ b/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction @@ -15,7 +15,7 @@ # 神器の名前 (TextComponentString) data modify storage asset:artifact Name set value '[{"text":"チェストそのまま回収君","color":"green"}]' # 神器の説明文 (TextComponentString[]) - data modify storage asset:artifact Lore set value ['[{"text":"丁寧丁寧丁寧に"}]'] + data modify storage asset:artifact Lore set value ['{"text":"真下のチェストをそのまま回収する","color":"white"}','[{"text":"チェストの中にアイテムの入った","color":"white"}]','[{"translate":"block.minecraft.chest"},{"text":"・"},{"translate":"block.minecraft.shulker_box"},{"text":"がある場合は回収できない"}]','{"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 diff --git a/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition.mcfunction index a5fc2923e9..4cee03f698 100644 --- a/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition.mcfunction +++ b/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition.mcfunction @@ -23,10 +23,10 @@ data remove storage asset:temp Fail execute if entity @s[tag=!CanUsed] run return fail -# チェストの中身を取得し、中にチェスト・シュルカーボックスがあれば回収できない +# チェストの中身を取得し、中にアイテム入りアイテムがあれば回収できない # 失敗時、asset:temp blockを削除 data modify storage asset:temp block set from block ~ ~ ~ - execute if function asset:artifact/0290.carefully_collector/trigger/2.check_condition/ban_items run data modify storage asset:temp Fail set value true + execute if function asset:artifact/0290.carefully_collector/trigger/2.check_condition/is_nested run data modify storage asset:temp Fail set value true execute if data storage asset:temp {Fail:true} run tellraw @s [{"translate":"block.minecraft.chest","color":"red"},{"text":"または"},{"translate":"block.minecraft.shulker_box"},{"text":"が中に入っています"}] execute if data storage asset:temp {Fail:true} run data remove storage asset:temp block execute if data storage asset:temp {Fail:true} run tag @s remove CanUsed diff --git a/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition/ban_items.mcfunction b/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition/ban_items.mcfunction deleted file mode 100644 index cee28cd281..0000000000 --- a/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition/ban_items.mcfunction +++ /dev/null @@ -1,30 +0,0 @@ -#> asset:artifact/0290.carefully_collector/trigger/2.check_condition/ban_items -# -# -# -# @within function asset:artifact/0290.carefully_collector/trigger/2.check_condition - -# チェスト、トラップチェスト、各色シュルカーボックスが入っていたら成功 - execute if data storage asset:temp block.Items[{id:"minecraft:chest"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:trapped_chest"}] run return 1 - - execute if data storage asset:temp block.Items[{id:"minecraft:shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:white_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:black_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:light_gray_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:gray_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:brown_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:red_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:orange_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:yellow_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:lime_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:green_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:cyan_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:light_blue_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:blue_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:purple_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:magenta_shulker_box"}] run return 1 - execute if data storage asset:temp block.Items[{id:"minecraft:pink_shulker_box"}] run return 1 - -# 失敗 - return 0 diff --git a/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition/is_nested.mcfunction b/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition/is_nested.mcfunction new file mode 100644 index 0000000000..01d258ff68 --- /dev/null +++ b/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition/is_nested.mcfunction @@ -0,0 +1,11 @@ +#> asset:artifact/0290.carefully_collector/trigger/2.check_condition/is_nested +# +# +# +# @within function asset:artifact/0290.carefully_collector/trigger/2.check_condition + +# 中にアイテム入りアイテムはあるか? + execute if data storage asset:temp block.Items[].tag.BlockEntityTag.Items[0] run return 1 + +# 失敗 + return 0 From c9b351796d4a1c2d69c135a3088fb82bf23bb1f9 Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Mon, 26 Jan 2026 16:55:37 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=E3=81=A4=E3=81=84=E3=81=A7=E3=81=AB3.main?= =?UTF-8?q?=E3=82=92=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trigger/3.main.mcfunction | 38 +++++++++---------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/3.main.mcfunction b/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/3.main.mcfunction index f7c8cf8efb..d18b96cb24 100644 --- a/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/3.main.mcfunction +++ b/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/3.main.mcfunction @@ -11,28 +11,24 @@ function asset:artifact/common/use/auto # ここから先は神器側の効果の処理を書く - # 判定 - execute if block ~ ~ ~ chest run scoreboard players set @s Temporary 1 - execute if block ~ ~ ~ trapped_chest run scoreboard players set @s Temporary 2 - # summon - summon item ~ ~ ~ {Tags:[CarefullyCollect],Item:{id:"minecraft:barrier",Count:1b}} - # データ処理 +# summon + summon item ~ ~ ~ {Tags:[CarefullyCollect],Item:{id:"minecraft:barrier",Count:1b}} - data modify storage asset:temp chest.Count set value 1b - data modify storage asset:temp chest.id set from storage asset:temp block.id - data modify storage asset:temp chest.tag.BlockEntityTag.Items set from storage asset:temp block.Items - data modify storage asset:temp chest.tag.BlockEntityTag.Lock set from storage asset:temp block.Lock - data modify storage asset:temp chest.tag.display.Name set from storage asset:temp block.CustomName - # //反映 - data modify entity @e[type=item,tag=CarefullyCollect,distance=..0,limit=1] Item set from storage asset:temp chest +# データ処理 + data modify storage asset:temp chest.Count set value 1b + data modify storage asset:temp chest.id set from storage asset:temp block.id + data modify storage asset:temp chest.tag.BlockEntityTag.Items set from storage asset:temp block.Items + data modify storage asset:temp chest.tag.BlockEntityTag.Lock set from storage asset:temp block.Lock + data modify storage asset:temp chest.tag.display.Name set from storage asset:temp block.CustomName +# //反映 + data modify entity @e[type=item,tag=CarefullyCollect,distance=..0,limit=1] Item set from storage asset:temp chest - # 演出 - execute align xyz positioned ~0.5 ~0.5 ~0.5 run particle dust 0.408 0.894 0.29 0.5 ~ ~ ~ 0.4 0.4 0.4 0 250 normal @a - playsound entity.arrow.hit_player player @a ~ ~ ~ 1 1.5 1 +# 演出 + execute align xyz positioned ~0.5 ~0.5 ~0.5 run particle dust 0.408 0.894 0.29 0.5 ~ ~ ~ 0.4 0.4 0.4 0 250 normal @a + playsound entity.arrow.hit_player player @a ~ ~ ~ 1 1.5 1 - # リセット - setblock ~ ~ ~ air - scoreboard players reset @s Temporary - data remove storage asset:temp chest - tag @e[type=item,tag=CarefullyCollect,distance=..0] remove CarefullyCollect +# リセット + setblock ~ ~ ~ air + data remove storage asset:temp chest + tag @e[type=item,tag=CarefullyCollect,distance=..0] remove CarefullyCollect From a8ece4e3961bd950de03d4a941efc4710e641cdd Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Mon, 26 Jan 2026 17:25:36 +0900 Subject: [PATCH 3/4] =?UTF-8?q?=E8=AA=AC=E6=98=8E=E3=83=BB=E3=82=A8?= =?UTF-8?q?=E3=83=A9=E3=83=BC=E3=83=AD=E3=82=B0=E3=82=92=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../artifact/0290.carefully_collector/give/2.give.mcfunction | 2 +- .../trigger/2.check_condition.mcfunction | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction index 813f5090df..6238b5fa87 100644 --- a/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction +++ b/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction @@ -15,7 +15,7 @@ # 神器の名前 (TextComponentString) data modify storage asset:artifact Name set value '[{"text":"チェストそのまま回収君","color":"green"}]' # 神器の説明文 (TextComponentString[]) - data modify storage asset:artifact Lore set value ['{"text":"真下のチェストをそのまま回収する","color":"white"}','[{"text":"チェストの中にアイテムの入った","color":"white"}]','[{"translate":"block.minecraft.chest"},{"text":"・"},{"translate":"block.minecraft.shulker_box"},{"text":"がある場合は回収できない"}]','{"text":"丁寧丁寧丁寧に","color":"gray"}'] + data modify storage asset:artifact Lore set value ['{"text":"真下にあるチェストを回収する","color":"white"}','{"text":"中にアイテムの入ったチェスト","color":"white"}','{"text":"または、シュルカーボックスなどがある場合は回収できない","color":"white"}','{"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 diff --git a/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition.mcfunction b/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition.mcfunction index 4cee03f698..990f3d776f 100644 --- a/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition.mcfunction +++ b/Asset/data/asset/functions/artifact/0290.carefully_collector/trigger/2.check_condition.mcfunction @@ -27,7 +27,7 @@ # 失敗時、asset:temp blockを削除 data modify storage asset:temp block set from block ~ ~ ~ execute if function asset:artifact/0290.carefully_collector/trigger/2.check_condition/is_nested run data modify storage asset:temp Fail set value true - execute if data storage asset:temp {Fail:true} run tellraw @s [{"translate":"block.minecraft.chest","color":"red"},{"text":"または"},{"translate":"block.minecraft.shulker_box"},{"text":"が中に入っています"}] + execute if data storage asset:temp {Fail:true} run tellraw @s [{"text":"アイテムの入った","color":"red"},{"translate":"block.minecraft.chest"},{"text":"などが含まれています。"}] execute if data storage asset:temp {Fail:true} run data remove storage asset:temp block execute if data storage asset:temp {Fail:true} run tag @s remove CanUsed data remove storage asset:temp Fail From b604843535a6b5c6ad41018b4704906135da0754 Mon Sep 17 00:00:00 2001 From: Lapis-LJA <87566955+Lapis-LJA@users.noreply.github.com> Date: Mon, 26 Jan 2026 17:36:59 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=E3=82=A2=E3=82=A4=E3=83=86=E3=83=A0?= =?UTF-8?q?=E5=90=8D=E3=81=ABtranslate=E3=82=92=E4=BD=BF=E3=81=86=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../artifact/0290.carefully_collector/give/2.give.mcfunction | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction b/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction index 6238b5fa87..3b96e96ddc 100644 --- a/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction +++ b/Asset/data/asset/functions/artifact/0290.carefully_collector/give/2.give.mcfunction @@ -15,7 +15,7 @@ # 神器の名前 (TextComponentString) data modify storage asset:artifact Name set value '[{"text":"チェストそのまま回収君","color":"green"}]' # 神器の説明文 (TextComponentString[]) - data modify storage asset:artifact Lore set value ['{"text":"真下にあるチェストを回収する","color":"white"}','{"text":"中にアイテムの入ったチェスト","color":"white"}','{"text":"または、シュルカーボックスなどがある場合は回収できない","color":"white"}','{"text":"丁寧丁寧丁寧に","color":"gray"}'] + data modify storage asset:artifact Lore set value ['[{"text":"真下にある","color":"white"},{"translate":"block.minecraft.chest"},{"text":"を回収する","color":"white"}]','[{"text":"中にアイテムの入った","color":"white"},{"translate":"block.minecraft.chest"}]','[{"text":"または、","color":"white"},{"translate":"block.minecraft.shulker_box"},{"text":"などがある場合は回収できない","color":"white"}]','{"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