Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# 神器の名前 (TextComponentString)
data modify storage asset:artifact Name set value '{"text":"妖精マカロン","color":"#F6BFFF"}'
# 神器の説明文 (TextComponentString[])
data modify storage asset:artifact Lore set value ['{"text":"HPを5回復し、バリアを5得る。","color":"white"}','{"text":"夜明けの森から届いた","color":"gray"}','{"text":"甘く儚い妖精からの贈り物。","color":"gray"}']
data modify storage asset:artifact Lore set value ['{"text":"体力を5回復し、バリアを5得る。","color":"white"}','{"text":"夜明けの森から届いた","color":"gray"}','{"text":"甘く儚い妖精からの贈り物。","color":"gray"}']
# MP以外の消費物 (TextComponentString) (オプション)
# data modify storage asset:artifact CostText set value
# 使用回数 (int) (オプション)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@

# バリアを得る
data modify storage api: Argument.ID set value 268
data modify storage api: Argument.Duration set value 600
data modify storage api: Argument.FieldOverride.Barrier set value 5
function api:entity/mob/effect/give
function api:entity/mob/effect/reset
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# @within function asset:effect/0268.macaron_barrier/given/

# バリア設定
data modify storage api: Argument.Amount set value 5
data modify storage api: Argument.UUID set value [I;1,3,268,0]
data modify storage api: Argument.Amount set from storage asset:context this.Barrier
data modify storage api: Argument.UUID set from storage asset:context this.UUID
data modify storage api: Argument.Priority set value 1
data modify storage api: Argument.WipedCallback set value "asset:effect/0268.macaron_barrier/barrier/break"
function api:entity/player/absorption/add
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
# asset:effect/0268.macaron_barrier/remove/

# バリアを削除する
data modify storage api: Argument.UUID set value [I;1,3,268,0]
data modify storage api: Argument.UUID set from storage asset:context this.UUID
function api:entity/player/absorption/remove
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
# 説明文 (TextComponentString[])
data modify storage asset:effect Description set value ['{"text":"ダメージを吸収する","color":"white"}']
# 効果時間 (int) (default = API || error)
data modify storage asset:effect Duration set value 600
# data modify storage asset:effect Duration set value 600
# スタック (int) (default = API || 1)
# data modify storage asset:effect Stack set value
# 効果時間の操作方法 (default = API || "replace")
# data modify storage asset:effect DurationOperation set value
# スタックの操作方法 (default = API || "replace")
# data modify storage asset:effect StackOperation set value
# 最大効果時間 (int) (default = 2147483647)
data modify storage asset:effect MaxDuration set value 600
# data modify storage asset:effect MaxDuration set value 600
# 最大スタック (int) (default = 2147483647)
# data modify storage asset:effect MaxStack set value
# 悪い効果か否か (boolean)
Expand All @@ -36,4 +36,4 @@
data modify storage asset:effect StackVisible set value false

# フィールド
# data modify storage asset:effect Field set value {}
data modify storage asset:effect Field.UUID set value [I;1,3,268,0]