Skip to content

Commit 94ff391

Browse files
committed
🧑‍💻 RemainigCountも取得できるように
1 parent cbb272d commit 94ff391

File tree

40 files changed

+120
-0
lines changed

40 files changed

+120
-0
lines changed

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/attack/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/attack/attack.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/attack_explosion/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/attack_explosion/attack_explosion.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/attack_melee/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/attack_melee/attack_melee.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/attack_projectile/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/attack_projectile/attack_projectile.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/click/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/click/click.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage/damage.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_drowning/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_drowning/damage_drowning.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_entity/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_entity/damage_entity.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_entity_explosion/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_entity_explosion/damage_entity_explosion.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_entity_melee/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_entity_melee/damage_entity_melee.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_entity_projectile/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_entity_projectile/damage_entity_projectile.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_explosion/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_explosion/damage_explosion.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_fire/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_fire/damage_fire.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_freezing/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_freezing/damage_freezing.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_lightning/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_lightning/damage_lightning.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_melee/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_melee/damage_melee.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/damage_projectile/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/damage_projectile/damage_projectile.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/heal/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/heal/heal.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/keep_sneak/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/keep_sneak/keep_sneak.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/keep_sneak_10s/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/keep_sneak_10s/keep_sneak_10s.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/keep_sneak_1s/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/keep_sneak_1s/keep_sneak_1s.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/keep_sneak_2s/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/keep_sneak_2s/keep_sneak_2s.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/keep_sneak_3s/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/keep_sneak_3s/keep_sneak_3s.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/keep_sneak_4s/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/keep_sneak_4s/keep_sneak_4s.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/keep_sneak_5s/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/keep_sneak_5s/keep_sneak_5s.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/kill/kill.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_explosion/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/kill_explosion/kill_explosion.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_melee/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/kill_melee/kill_melee.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_projectile/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/kill_projectile/kill_projectile.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/receive_heal/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/receive_heal/receive_heal.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/sneak/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/sneak/sneak.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/sneak_10s/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/sneak_10s/sneak_10s.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/sneak_1s/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/sneak_1s/sneak_1s.m with storage asset:context

TheSkyBlessing/data/asset_manager/functions/artifact/triggers/sneak_2s/use.mcfunction

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
# 処理対象の神器の重複数を取得する
1212
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[]
13+
# 処理対象の神器の残り使用回数を取得する
14+
# ただしhotbarでない場合に限る
15+
execute unless data storage asset:artifact TargetItem{Slot:"hotbar"} run data modify storage asset:context RemainingCount set from storage asset:artifact TargetItem.RemainingCount
1316

1417
# 神器を呼び出し
1518
function asset_manager:artifact/triggers/sneak_2s/sneak_2s.m with storage asset:context

0 commit comments

Comments
 (0)