-
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
6dea091
commit 904af1d
Showing
23 changed files
with
324 additions
and
7 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
13 changes: 13 additions & 0 deletions
13
...ssing/data/asset_manager/functions/artifact/triggers/event/kill/add_tag_victim.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,13 @@ | ||
#> asset_manager:artifact/triggers/event/kill/add_tag_victim | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/kill*/foreach | ||
|
||
#> Private | ||
# @private | ||
#declare score_holder $KillTarget | ||
|
||
execute if data storage asset:context Kill.To store result score $KillTarget Temporary run data get storage asset:context Kill.To | ||
execute if data storage asset:context Kill.To as @e[type=#lib:living,type=!player,distance=..150] if score @s MobUUID = $KillTarget Temporary run tag @s add Victim | ||
scoreboard players reset $KillTarget Temporary |
15 changes: 15 additions & 0 deletions
15
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill/.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,15 @@ | ||
#> asset_manager:artifact/triggers/kill/ | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/trigger/foreach/call.m | ||
|
||
# フラグが存在しているか確認する | ||
execute unless data storage asset:artifact ArtifactEvents.Kill[0] run return fail | ||
# イベントを取得する | ||
data modify storage asset:artifact Events append from storage asset:artifact ArtifactEvents.Kill[] | ||
# それぞれについて処理する | ||
function asset_manager:artifact/triggers/kill/foreach | ||
|
||
# リセット | ||
data remove storage asset:artifact Events |
8 changes: 8 additions & 0 deletions
8
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill/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/kill/check.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/kill/foreach | ||
|
||
$function asset:artifact/alias/$(id)/kill/check |
26 changes: 26 additions & 0 deletions
26
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill/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,26 @@ | ||
#> asset_manager:artifact/triggers/kill/foreach | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/kill/* | ||
|
||
# イベントデータ処理 | ||
# データを取得 | ||
data modify storage asset:context Kill set from storage asset:artifact Events[-1] | ||
# 攻撃先を取得し、Victim を付与する (null の可能性もある) | ||
function asset_manager:artifact/triggers/event/kill/add_tag_victim | ||
|
||
# 使用条件を満たしているか確認する | ||
function asset_manager:artifact/check/ | ||
function asset_manager:artifact/triggers/kill/check.m with storage asset:context | ||
# 条件を満たしていれば使用する | ||
execute if entity @s[tag=CanUsed] run function asset_manager:artifact/triggers/kill/use | ||
|
||
# リセット | ||
tag @e[type=#lib:living,type=!player,tag=Victim] remove Victim | ||
tag @s remove CanUsed | ||
data remove storage asset:context Kill | ||
data remove storage asset:artifact AttackTargets | ||
data remove storage asset:artifact Events[-1] | ||
# 要素が残っているなら再帰 | ||
execute if data storage asset:artifact Events[0] run function asset_manager:artifact/triggers/kill/foreach |
8 changes: 8 additions & 0 deletions
8
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill/kill.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/kill/kill.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/kill/use | ||
|
||
$function asset:artifact/alias/$(id)/kill/ |
19 changes: 19 additions & 0 deletions
19
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill/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/kill/use | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/kill/foreach | ||
|
||
# 共通処理 | ||
# アイテムを破壊すると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/kill/kill.m with storage asset:context | ||
|
||
# リセット | ||
data remove storage asset:context BrokeItem | ||
data remove storage asset:context Count |
15 changes: 15 additions & 0 deletions
15
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_explosion/.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,15 @@ | ||
#> asset_manager:artifact/triggers/kill_explosion/ | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/trigger/foreach/call.m | ||
|
||
# フラグが存在しているか確認する | ||
execute unless data storage asset:artifact ArtifactEvents.Kill[{Type:"vanilla_explosion"}] run return fail | ||
# イベントを取得する | ||
data modify storage asset:artifact Events append from storage asset:artifact ArtifactEvents.Kill[{Type:"vanilla_explosion"}] | ||
# それぞれについて処理する | ||
function asset_manager:artifact/triggers/kill_explosion/foreach | ||
|
||
# リセット | ||
data remove storage asset:artifact Events |
8 changes: 8 additions & 0 deletions
8
...Blessing/data/asset_manager/functions/artifact/triggers/kill_explosion/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/kill_explosion/check.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/kill_explosion/foreach | ||
|
||
$function asset:artifact/alias/$(id)/kill_explosion/check |
26 changes: 26 additions & 0 deletions
26
...Blessing/data/asset_manager/functions/artifact/triggers/kill_explosion/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,26 @@ | ||
#> asset_manager:artifact/triggers/kill_explosion/foreach | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/kill_explosion/* | ||
|
||
# イベントデータ処理 | ||
# データを取得 | ||
data modify storage asset:context Kill set from storage asset:artifact Events[-1] | ||
# 攻撃先を取得し、Victim を付与する (null の可能性もある) | ||
function asset_manager:artifact/triggers/event/kill/add_tag_victim | ||
|
||
# 使用条件を満たしているか確認する | ||
function asset_manager:artifact/check/ | ||
function asset_manager:artifact/triggers/kill_explosion/check.m with storage asset:context | ||
# 条件を満たしていれば使用する | ||
execute if entity @s[tag=CanUsed] run function asset_manager:artifact/triggers/kill_explosion/use | ||
|
||
# リセット | ||
tag @e[type=#lib:living,type=!player,tag=Victim] remove Victim | ||
tag @s remove CanUsed | ||
data remove storage asset:context Kill | ||
data remove storage asset:artifact AttackTargets | ||
data remove storage asset:artifact Events[-1] | ||
# 要素が残っているなら再帰 | ||
execute if data storage asset:artifact Events[0] run function asset_manager:artifact/triggers/kill_explosion/foreach |
8 changes: 8 additions & 0 deletions
8
...data/asset_manager/functions/artifact/triggers/kill_explosion/kill_explosion.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/kill_explosion/kill_explosion.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/kill_explosion/use | ||
|
||
$function asset:artifact/alias/$(id)/kill_explosion/ |
19 changes: 19 additions & 0 deletions
19
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_explosion/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/kill_explosion/use | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/kill_explosion/foreach | ||
|
||
# 共通処理 | ||
# アイテムを破壊すると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/kill_explosion/kill_explosion.m with storage asset:context | ||
|
||
# リセット | ||
data remove storage asset:context BrokeItem | ||
data remove storage asset:context Count |
15 changes: 15 additions & 0 deletions
15
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_melee/.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,15 @@ | ||
#> asset_manager:artifact/triggers/kill_melee/ | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/trigger/foreach/call.m | ||
|
||
# フラグが存在しているか確認する | ||
execute unless data storage asset:artifact ArtifactEvents.Kill[{Type:"vanilla_melee"}] run return fail | ||
# イベントを取得する | ||
data modify storage asset:artifact Events append from storage asset:artifact ArtifactEvents.Kill[{Type:"vanilla_melee"}] | ||
# それぞれについて処理する | ||
function asset_manager:artifact/triggers/kill_melee/foreach | ||
|
||
# リセット | ||
data remove storage asset:artifact Events |
8 changes: 8 additions & 0 deletions
8
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_melee/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/kill_melee/check.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/kill_melee/foreach | ||
|
||
$function asset:artifact/alias/$(id)/kill_melee/check |
26 changes: 26 additions & 0 deletions
26
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_melee/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,26 @@ | ||
#> asset_manager:artifact/triggers/kill_melee/foreach | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/kill_melee/* | ||
|
||
# イベントデータ処理 | ||
# データを取得 | ||
data modify storage asset:context Kill set from storage asset:artifact Events[-1] | ||
# 攻撃先を取得し、Victim を付与する (null の可能性もある) | ||
function asset_manager:artifact/triggers/event/kill/add_tag_victim | ||
|
||
# 使用条件を満たしているか確認する | ||
function asset_manager:artifact/check/ | ||
function asset_manager:artifact/triggers/kill_melee/check.m with storage asset:context | ||
# 条件を満たしていれば使用する | ||
execute if entity @s[tag=CanUsed] run function asset_manager:artifact/triggers/kill_melee/use | ||
|
||
# リセット | ||
tag @e[type=#lib:living,type=!player,tag=Victim] remove Victim | ||
tag @s remove CanUsed | ||
data remove storage asset:context Kill | ||
data remove storage asset:artifact AttackTargets | ||
data remove storage asset:artifact Events[-1] | ||
# 要素が残っているなら再帰 | ||
execute if data storage asset:artifact Events[0] run function asset_manager:artifact/triggers/kill_melee/foreach |
8 changes: 8 additions & 0 deletions
8
...lessing/data/asset_manager/functions/artifact/triggers/kill_melee/kill_melee.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/kill_melee/kill_melee.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/kill_melee/use | ||
|
||
$function asset:artifact/alias/$(id)/kill_melee/ |
19 changes: 19 additions & 0 deletions
19
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_melee/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/kill_melee/use | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/kill_melee/foreach | ||
|
||
# 共通処理 | ||
# アイテムを破壊すると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/kill_melee/kill_melee.m with storage asset:context | ||
|
||
# リセット | ||
data remove storage asset:context BrokeItem | ||
data remove storage asset:context Count |
15 changes: 15 additions & 0 deletions
15
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_projectile/.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,15 @@ | ||
#> asset_manager:artifact/triggers/kill_projectile/ | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/trigger/foreach/call.m | ||
|
||
# フラグが存在しているか確認する | ||
execute unless data storage asset:artifact ArtifactEvents.Kill[{Type:"vanilla_projectile"}] run return fail | ||
# イベントを取得する | ||
data modify storage asset:artifact Events append from storage asset:artifact ArtifactEvents.Kill[{Type:"vanilla_projectile"}] | ||
# それぞれについて処理する | ||
function asset_manager:artifact/triggers/kill_projectile/foreach | ||
|
||
# リセット | ||
data remove storage asset:artifact Events |
8 changes: 8 additions & 0 deletions
8
...lessing/data/asset_manager/functions/artifact/triggers/kill_projectile/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/kill_projectile/check.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/kill_projectile/foreach | ||
|
||
$function asset:artifact/alias/$(id)/kill_projectile/check |
26 changes: 26 additions & 0 deletions
26
...lessing/data/asset_manager/functions/artifact/triggers/kill_projectile/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,26 @@ | ||
#> asset_manager:artifact/triggers/kill_projectile/foreach | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/kill_projectile/* | ||
|
||
# イベントデータ処理 | ||
# データを取得 | ||
data modify storage asset:context Kill set from storage asset:artifact Events[-1] | ||
# 攻撃先を取得し、Victim を付与する (null の可能性もある) | ||
function asset_manager:artifact/triggers/event/kill/add_tag_victim | ||
|
||
# 使用条件を満たしているか確認する | ||
function asset_manager:artifact/check/ | ||
function asset_manager:artifact/triggers/kill_projectile/check.m with storage asset:context | ||
# 条件を満たしていれば使用する | ||
execute if entity @s[tag=CanUsed] run function asset_manager:artifact/triggers/kill_projectile/use | ||
|
||
# リセット | ||
tag @e[type=#lib:living,type=!player,tag=Victim] remove Victim | ||
tag @s remove CanUsed | ||
data remove storage asset:context Kill | ||
data remove storage asset:artifact AttackTargets | ||
data remove storage asset:artifact Events[-1] | ||
# 要素が残っているなら再帰 | ||
execute if data storage asset:artifact Events[0] run function asset_manager:artifact/triggers/kill_projectile/foreach |
8 changes: 8 additions & 0 deletions
8
...ta/asset_manager/functions/artifact/triggers/kill_projectile/kill_projectile.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/kill_projectile/kill_projectile.m | ||
# | ||
# | ||
# | ||
# @input args id : int | ||
# @within function asset_manager:artifact/triggers/kill_projectile/use | ||
|
||
$function asset:artifact/alias/$(id)/kill_projectile/ |
19 changes: 19 additions & 0 deletions
19
TheSkyBlessing/data/asset_manager/functions/artifact/triggers/kill_projectile/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/kill_projectile/use | ||
# | ||
# | ||
# | ||
# @within function asset_manager:artifact/triggers/kill_projectile/foreach | ||
|
||
# 共通処理 | ||
# アイテムを破壊すると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/kill_projectile/kill_projectile.m with storage asset:context | ||
|
||
# リセット | ||
data remove storage asset:context BrokeItem | ||
data remove storage asset:context Count |
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