Skip to content

Commit

Permalink
🎨 戻り値の名前を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
rarula committed Jun 19, 2022
1 parent 4f606a8 commit b3eb6c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function #oh_my_dat:please

execute unless data storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Example.Page run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Example.Page set value [[], [], [], []]

execute if score @s Page matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Example.Page[0] set from storage sketch: out.unknownItems
execute if score @s Page matches 2 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Example.Page[1] set from storage sketch: out.unknownItems
execute if score @s Page matches 3 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Example.Page[2] set from storage sketch: out.unknownItems
execute if score @s Page matches 4 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Example.Page[3] set from storage sketch: out.unknownItems
execute if score @s Page matches 1 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Example.Page[0] set from storage sketch: out.otherItems
execute if score @s Page matches 2 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Example.Page[1] set from storage sketch: out.otherItems
execute if score @s Page matches 3 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Example.Page[2] set from storage sketch: out.otherItems
execute if score @s Page matches 4 run data modify storage oh_my_dat: _[-4][-4][-4][-4][-4][-4][-4][-4].Example.Page[3] set from storage sketch: out.otherItems
2 changes: 1 addition & 1 deletion data/sketch/functions/core/common/select.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ function sketch:api/unlink

# コールバック時に渡すデータを設定
data remove storage sketch:temp CloneNewInv[{tag:{Sketch:{}}}]
data modify storage sketch: out.unknownItems set from storage sketch:temp CloneNewInv
data modify storage sketch: out.otherItems set from storage sketch:temp CloneNewInv
data modify storage sketch: out.id set from storage sketch: out.selectedItem.tag.Sketch.id

# コールバック
Expand Down
2 changes: 1 addition & 1 deletion data/sketch/functions/core/handler/on_close/_.mcfunction
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function sketch:api/unlink
## メイン処理
# コールバック時に渡すデータを設定
data remove storage sketch:temp Inv[{tag:{Sketch:{}}}]
data modify storage sketch: out.unknownItems set from storage sketch:temp Inv
data modify storage sketch: out.otherItems set from storage sketch:temp Inv

# コールバック
function #sketch:on_close
Expand Down

0 comments on commit b3eb6c1

Please sign in to comment.