Skip to content

build (chest_minecart) [EN]

rarula edited this page Apr 7, 2023 · 2 revisions

日本語 | English

Create a menu in the executor's inventory

Run

function sketch:api/build/chest_minecart

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 @e[type=minecraft:chest_minecart] run function sketch:api/build/chest_minecart
Clone this wiki locally