-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a48649
commit 1a6b791
Showing
14 changed files
with
150 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file removed
0
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/click/.mcfunction
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/exec.mcfunction
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/index_to_slot.mcfunction
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#> asset_manager:artifact/triggers/trigger/ | ||
# | ||
# 各神器ごとにトリガー処理を行う | ||
# | ||
# @within function asset_manager:artifact/triggers/ | ||
|
||
# 神器の整形済みデータを取得する | ||
data modify storage asset:artifact New.CopiedItemData set from storage asset:artifact New.ItemData | ||
# 処理用にid一覧を取得しておく | ||
# 不正なidの値 (神器でない || スロットが正しくない) の場合、処理が呼び出されないのでそのまま入れておいていい | ||
data modify storage asset:artifact New.IDList set from storage asset:artifact New.CopiedItemData[].ID | ||
# 各神器ごとに処理を実行する | ||
scoreboard players set $SlotIndex Temporary 17 | ||
function asset_manager:artifact/triggers/trigger/foreach/ | ||
# リセット | ||
scoreboard players reset $SlotIndex Temporary |
23 changes: 23 additions & 0 deletions
23
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/trigger/foreach/.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#> asset_manager:artifact/triggers/trigger/foreach/ | ||
# | ||
# | ||
# | ||
# @within function | ||
# asset_manager:artifact/triggers/trigger/ | ||
# asset_manager:artifact/triggers/trigger/foreach/ | ||
|
||
#> private | ||
# @private | ||
#declare score_holder $ID | ||
|
||
# 神器のデータを取り出す | ||
data modify storage asset:artifact TargetItemData set from storage asset:artifact New.CopiedItemData[-1] | ||
# idが正しい値なら処理に移行する | ||
execute store result score $ID Temporary run data get storage asset:artifact TargetItemData.ID | ||
execute if score $ID Temporary matches 1.. run function asset_manager:artifact/triggers/trigger/foreach/exec | ||
# リセット | ||
scoreboard players reset $ID Temporary | ||
data remove storage asset:artifact TargetItemData | ||
data remove storage asset:artifact New.CopiedItemData[-1] | ||
# 要素が残っているならば再帰 | ||
execute if data storage asset:artifact New.CopiedItemData[0] run function asset_manager:artifact/triggers/trigger/foreach/ |
8 changes: 8 additions & 0 deletions
8
...Blessing/data/asset_manager/functions/artifact/triggers/trigger/foreach/call.m.mcfunction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#> asset_manager:artifact/triggers/trigger/foreach/call.m | ||
# | ||
# | ||
# | ||
# @input args Trigger : Trigger | ||
# @within function asset_manager:artifact/triggers/trigger/foreach/exec | ||
|
||
$function asset_manager:artifact/triggers/$(Trigger)/ |
Oops, something went wrong.