|
4 | 4 | # |
5 | 5 | # @within function asset:artifact/1269.apocalypse/using_item/3.main |
6 | 6 |
|
7 | | -# スタック更新とそれの演出 |
8 | | - execute if score @s Z9.Charge matches 1 run data modify storage api: Argument.Stack set value 1 |
9 | | - execute if score @s Z9.Charge matches 1 run playsound block.beacon.activate player @a ~ ~ ~ 1 1.2 |
10 | 7 |
|
11 | | - execute if score @s Z9.Charge matches 21..40 run data modify storage api: Argument.Stack set value 2 |
12 | | - execute if score @s Z9.Charge matches 21 run playsound block.beacon.activate player @a ~ ~ ~ 1 1.3 |
| 8 | +# スタック更新とそれの演出 |
| 9 | + execute if data storage asset:context UsingItemTime{mainhand:1} run function asset:artifact/1269.apocalypse/using_item/give_charge.m {Stack:1} |
| 10 | + execute if data storage asset:context UsingItemTime{mainhand:1} run playsound block.beacon.activate player @a ~ ~ ~ 1 1.2 |
13 | 11 |
|
14 | | - execute if score @s Z9.Charge matches 41..60 run data modify storage api: Argument.Stack set value 3 |
15 | | - execute if score @s Z9.Charge matches 41 run playsound block.beacon.activate player @a ~ ~ ~ 1 1.4 |
| 12 | + execute if data storage asset:context UsingItemTime{mainhand:21} run function asset:artifact/1269.apocalypse/using_item/give_charge.m {Stack:2} |
| 13 | + execute if data storage asset:context UsingItemTime{mainhand:21} run playsound block.beacon.activate player @a ~ ~ ~ 1 1.3 |
16 | 14 |
|
17 | | - execute if score @s Z9.Charge matches 61..80 run data modify storage api: Argument.Stack set value 4 |
18 | | - execute if score @s Z9.Charge matches 61 run playsound block.beacon.activate player @a ~ ~ ~ 1 1.5 |
| 15 | + execute if data storage asset:context UsingItemTime{mainhand:41} run function asset:artifact/1269.apocalypse/using_item/give_charge.m {Stack:3} |
| 16 | + execute if data storage asset:context UsingItemTime{mainhand:41} run playsound block.beacon.activate player @a ~ ~ ~ 1 1.4 |
19 | 17 |
|
20 | | - execute if score @s Z9.Charge matches 81..100 run data modify storage api: Argument.Stack set value 5 |
21 | | - execute if score @s Z9.Charge matches 81 run playsound block.beacon.activate player @a ~ ~ ~ 1 1.6 |
| 18 | + execute if data storage asset:context UsingItemTime{mainhand:61} run function asset:artifact/1269.apocalypse/using_item/give_charge.m {Stack:4} |
| 19 | + execute if data storage asset:context UsingItemTime{mainhand:61} run playsound block.beacon.activate player @a ~ ~ ~ 1 1.5 |
22 | 20 |
|
23 | | - execute if score @s Z9.Charge matches 101..120 run data modify storage api: Argument.Stack set value 6 |
24 | | - execute if score @s Z9.Charge matches 101 run playsound block.beacon.activate player @a ~ ~ ~ 1 1.8 |
| 21 | + execute if data storage asset:context UsingItemTime{mainhand:81} run function asset:artifact/1269.apocalypse/using_item/give_charge.m {Stack:5} |
| 22 | + execute if data storage asset:context UsingItemTime{mainhand:81} run playsound block.beacon.activate player @a ~ ~ ~ 1 1.6 |
25 | 23 |
|
26 | | - execute if score @s Z9.Charge matches 121..140 run data modify storage api: Argument.Stack set value 7 |
27 | | - execute if score @s Z9.Charge matches 121 run playsound block.beacon.activate player @a ~ ~ ~ 1 1.9 |
| 24 | + execute if data storage asset:context UsingItemTime{mainhand:101} run function asset:artifact/1269.apocalypse/using_item/give_charge.m {Stack:6} |
| 25 | + execute if data storage asset:context UsingItemTime{mainhand:101} run playsound block.beacon.activate player @a ~ ~ ~ 1 1.8 |
28 | 26 |
|
29 | | - execute if score @s Z9.Charge matches 141.. run data modify storage api: Argument.Stack set value 8 |
30 | | - execute if score @s Z9.Charge matches 141 run playsound block.beacon.activate player @a ~ ~ ~ 1 2.0 |
| 27 | + execute if data storage asset:context UsingItemTime{mainhand:121} run function asset:artifact/1269.apocalypse/using_item/give_charge.m {Stack:7} |
| 28 | + execute if data storage asset:context UsingItemTime{mainhand:121} run playsound block.beacon.activate player @a ~ ~ ~ 1 1.9 |
31 | 29 |
|
32 | | -# チャージ用エフェクトを付与 |
33 | | - data modify storage api: Argument.ID set value 334 |
34 | | - function api:entity/mob/effect/give |
35 | | - function api:entity/mob/effect/reset |
| 30 | + execute if data storage asset:context UsingItemTime{mainhand:141} run function asset:artifact/1269.apocalypse/using_item/give_charge.m {Stack:8} |
| 31 | + execute if data storage asset:context UsingItemTime{mainhand:141} run playsound block.beacon.activate player @a ~ ~ ~ 1 2.0 |
0 commit comments