-
Notifications
You must be signed in to change notification settings - Fork 0
build (chest_minecart)
rarula edited this page Apr 7, 2023
·
4 revisions
実行者のチェスト付きトロッコにメニューを作成します
function sketch:api/build/chest_minecart
ストレージ | 型 | オプション | デフォルト値 | 説明 |
---|---|---|---|---|
sketch: in.id | any | false | - | 作成するメニューの識別子 |
sketch: in.contents | string[][] | false | - | 作成するメニューの内容 |
item replace block 10000 0 10000 container.0 with minecraft:apple
data modify storage sketch: in.key set value "a"
function sketch:api/register_item/button
data modify storage sketch: in.contents append value [a, a, a, a, a, a, a, a, a]
data modify storage sketch: in.contents append value [a, -, -, -, -, -, -, -, a]
data modify storage sketch: in.contents append value [a, a, a, a, a, a, a, a, a]
data modify storage sketch: in.id set value "main"
execute as @e[type=minecraft:chest_minecart] run function sketch:api/build/chest_minecart