-
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
9f5167d
commit d68c492
Showing
17 changed files
with
206 additions
and
1 deletion.
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
16 changes: 16 additions & 0 deletions
16
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/click/.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,16 @@ | ||
#> asset_manager:artifact/triggers/click/ | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/trigger/foreach/call.m | ||
|
||
# フラグが存在しているか確認する | ||
execute if entity @s[tag=!TriggerFlag.ClickCarrot] run return fail | ||
# 使用条件を満たしているか確認する | ||
function asset_manager:artifact/check/ | ||
function asset_manager:artifact/triggers/click/check.m with storage asset:context | ||
# 条件を満たしていれば使用する | ||
execute if entity @s[tag=CanUsed] run function asset_manager:artifact/triggers/click/use | ||
|
||
# リセット | ||
tag @s remove CanUsed |
8 changes: 8 additions & 0 deletions
8
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/click/check.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/click/check.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/click/ | ||
|
||
$function asset:artifact/alias/$(id)/click/check |
8 changes: 8 additions & 0 deletions
8
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/click/click.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/click/click.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/click/use | ||
|
||
$function asset:artifact/alias/$(id)/click/ |
19 changes: 19 additions & 0 deletions
19
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/click/use.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,19 @@ | ||
#> asset_manager:artifact/triggers/click/use | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/click/ | ||
|
||
# 共通処理 | ||
# アイテムを破壊するとBrokeItemが追加される | ||
function asset_manager:artifact/use/ | ||
|
||
# 処理対象の神器の重複数を取得する | ||
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[] | ||
|
||
# 神器を呼び出し | ||
function asset_manager:artifact/triggers/click/click.m with storage asset:context | ||
|
||
# リセット | ||
data remove storage asset:context BrokeItem | ||
data remove storage asset:context Count |
16 changes: 16 additions & 0 deletions
16
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/keep_click/.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,16 @@ | ||
#> asset_manager:artifact/triggers/keep_click/ | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/trigger/foreach/call.m | ||
|
||
# フラグが存在しているか確認する | ||
execute if entity @s[tag=!TriggerFlag.UsingItem] run return fail | ||
# 使用条件を満たしているか確認する | ||
function asset_manager:artifact/check/ | ||
function asset_manager:artifact/triggers/keep_click/check.m with storage asset:context | ||
# 条件を満たしていれば使用する | ||
execute if entity @s[tag=CanUsed] run function asset_manager:artifact/triggers/keep_click/use | ||
|
||
# リセット | ||
tag @s remove CanUsed |
8 changes: 8 additions & 0 deletions
8
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/keep_click/check.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/keep_click/check.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/keep_click/ | ||
|
||
$function asset:artifact/alias/$(id)/keep_click/check |
8 changes: 8 additions & 0 deletions
8
...lessing/data/asset_manager/functions/artifact/triggers/keep_click/keep_click.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/keep_click/keep_click.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/keep_click/use | ||
|
||
$function asset:artifact/alias/$(id)/keep_click/ |
19 changes: 19 additions & 0 deletions
19
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/keep_click/use.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,19 @@ | ||
#> asset_manager:artifact/triggers/keep_click/use | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/keep_click/ | ||
|
||
# 共通処理 | ||
# アイテムを破壊するとBrokeItemが追加される | ||
function asset_manager:artifact/use/ | ||
|
||
# 処理対象の神器の重複数を取得する | ||
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[] | ||
|
||
# 神器を呼び出し | ||
function asset_manager:artifact/triggers/keep_click/keep_click.m with storage asset:context | ||
|
||
# リセット | ||
data remove storage asset:context BrokeItem | ||
data remove storage asset:context Count |
16 changes: 16 additions & 0 deletions
16
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/tick/.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,16 @@ | ||
#> asset_manager:artifact/triggers/tick/ | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/trigger/foreach/call.m | ||
|
||
# フラグが存在しているか確認する | ||
# return fail | ||
# 使用条件を満たしているか確認する | ||
function asset_manager:artifact/check/ | ||
function asset_manager:artifact/triggers/tick/check.m with storage asset:context | ||
# 条件を満たしていれば使用する | ||
execute if entity @s[tag=CanUsed] run function asset_manager:artifact/triggers/tick/use | ||
|
||
# リセット | ||
tag @s remove CanUsed |
8 changes: 8 additions & 0 deletions
8
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/tick/check.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/tick/check.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/tick/ | ||
|
||
$function asset:artifact/alias/$(id)/tick/check |
8 changes: 8 additions & 0 deletions
8
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/tick/tick.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/tick/tick.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/tick/use | ||
|
||
$function asset:artifact/alias/$(id)/tick/ |
19 changes: 19 additions & 0 deletions
19
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/tick/use.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,19 @@ | ||
#> asset_manager:artifact/triggers/tick/use | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/tick/ | ||
|
||
# 共通処理 | ||
# アイテムを破壊するとBrokeItemが追加される | ||
function asset_manager:artifact/use/ | ||
|
||
# 処理対象の神器の重複数を取得する | ||
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[] | ||
|
||
# 神器を呼び出し | ||
function asset_manager:artifact/triggers/tick/tick.m with storage asset:context | ||
|
||
# リセット | ||
data remove storage asset:context BrokeItem | ||
data remove storage asset:context Count |
16 changes: 16 additions & 0 deletions
16
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/use_item/.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,16 @@ | ||
#> asset_manager:artifact/triggers/use_item/ | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/trigger/foreach/call.m | ||
|
||
# フラグが存在しているか確認する | ||
execute if entity @s[tag=!TriggerFlag.UseItem] run return fail | ||
# 使用条件を満たしているか確認する | ||
function asset_manager:artifact/check/ | ||
function asset_manager:artifact/triggers/use_item/check.m with storage asset:context | ||
# 条件を満たしていれば使用する | ||
execute if entity @s[tag=CanUsed] run function asset_manager:artifact/triggers/use_item/use | ||
|
||
# リセット | ||
tag @s remove CanUsed |
8 changes: 8 additions & 0 deletions
8
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/use_item/check.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/use_item/check.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/use_item/ | ||
|
||
$function asset:artifact/alias/$(id)/use_item/check |
19 changes: 19 additions & 0 deletions
19
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/use_item/use.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,19 @@ | ||
#> asset_manager:artifact/triggers/use_item/use | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/use_item/ | ||
|
||
# 共通処理 | ||
# アイテムを破壊するとBrokeItemが追加される | ||
function asset_manager:artifact/use/ | ||
|
||
# 処理対象の神器の重複数を取得する | ||
execute store result storage asset:context Count int 1 if data storage asset:artifact TargetItemList[] | ||
|
||
# 神器を呼び出し | ||
function asset_manager:artifact/triggers/use_item/use_item.m with storage asset:context | ||
|
||
# リセット | ||
data remove storage asset:context BrokeItem | ||
data remove storage asset:context Count |
8 changes: 8 additions & 0 deletions
8
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/use_item/use_item.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/use_item/use_item.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/use_item/use | ||
|
||
$function asset:artifact/alias/$(id)/use_item/ |