Skip to content

build (ender_chest) [EN]

rarula edited this page Apr 7, 2023 · 2 revisions

日本語 | English

Create a menu in the executor's ender chest

Run

function sketch:api/build/ender_chest

Arguments

Storage Type Optional Default value Description
sketch: in.id any false - Identifier of the menu to be created
sketch: in.contents string[][] false - Menu contents to be created

Example

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 @a run function sketch:api/build/ender_chest
Clone this wiki locally