Skip to content

Commit 2665928

Browse files
committed
👽 [Artifact 566-569] 装備時効果の処理を移行
1 parent 0d417e7 commit 2665928

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+534
-624
lines changed
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#> asset:artifact/0566.great_sage_helmet/_index.d
22
# @private
33

4-
#> tag
5-
# @within function asset:artifact/056?.great_sage_*/**
6-
#declare tag FQ.Fullset
7-
84
#> score_holder
95
# @within function asset:artifact/0566.great_sage_helmet/fullset/**
106
#declare score_holder $Random
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#> asset:artifact/0566.great_sage_helmet/equip/fullset/damage/
1+
#> asset:artifact/0566.great_sage_helmet/damage/
22
#
3+
# 神器のトリガー処理
34
#
4-
#
5-
# @within function asset:artifact/0566.great_sage_helmet/equip/fullset/damage/check
5+
# @within function asset:artifact/alias/566/damage/
66

77
#> Val
88
# @private
@@ -13,7 +13,7 @@
1313
execute store result score $FQ.HealthPer Temporary run data get storage api: Return.HealthPer 1000
1414

1515
# 体力が20%以下かつ10%の確率で喋る
16-
execute if score $FQ.HealthPer Temporary matches ..200 if predicate lib:random_pass_per/10 run function asset:artifact/0566.great_sage_helmet/equip/fullset/damage/talk
16+
execute if score $FQ.HealthPer Temporary matches ..200 if predicate lib:random_pass_per/10 run function asset:artifact/0566.great_sage_helmet/damage/talk
1717

1818
# リセット
1919
scoreboard players reset $FQ.HealthPer Temporary
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#> asset:artifact/0566.great_sage_helmet/damage/check
2+
#
3+
# 神器の使用条件の確認処理
4+
#
5+
# @within function asset:artifact/alias/566/damage/check
6+
7+
# フルセットかどうか確認する
8+
data modify storage api: Argument.ID set value 256
9+
function api:entity/mob/effect/get/from_id
10+
execute unless data storage api: Return.Effect{Stack:4} run tag @s remove CanUsed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#> asset:artifact/0566.great_sage_helmet/equip/fullset/damage/talk
1+
#> asset:artifact/0566.great_sage_helmet/damage/talk
22
#
33
#
44
#
5-
# @within function asset:artifact/0566.great_sage_helmet/equip/fullset/damage/
5+
# @within function asset:artifact/0566.great_sage_helmet/damage/
66

77
# 喋る
88
playsound minecraft:entity.allay.hurt player @a ~ ~ ~ 0.4 1.6
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#> asset:artifact/0566.great_sage_helmet/equip
2+
#
3+
# 神器の装備時の処理
4+
#
5+
# @within function asset:artifact/alias/566/equip
6+
7+
# 演出
8+
particle end_rod ~ ~1.7 ~ 0.3 0.1 0.3 0.1 10 normal @a
9+
playsound minecraft:block.enchantment_table.use player @a ~ ~ ~ 0.8 1

Asset/data/asset/functions/artifact/0566.great_sage_helmet/equip/.mcfunction

Lines changed: 0 additions & 43 deletions
This file was deleted.

Asset/data/asset/functions/artifact/0566.great_sage_helmet/equip/check.mcfunction

Lines changed: 0 additions & 7 deletions
This file was deleted.

Asset/data/asset/functions/artifact/0566.great_sage_helmet/equip/dis_equip/.mcfunction

Lines changed: 0 additions & 7 deletions
This file was deleted.

Asset/data/asset/functions/artifact/0566.great_sage_helmet/equip/dis_equip/main.mcfunction

Lines changed: 0 additions & 28 deletions
This file was deleted.

Asset/data/asset/functions/artifact/0566.great_sage_helmet/equip/fullset/damage/check.mcfunction

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)