Skip to content

on_select (chest_minecart) [EN]

rarula edited this page Apr 7, 2023 · 2 revisions

日本語 | English

Called when a player selects a button in the Minecart with Chest menu

Return value

Entity Description
@e[type=minecraft:chest_minecart, tag=Sketch.Target, limit=1] Minecart with Chest opened by player
Storage Type Description
sketch: callback.id any Identifier of the selected menu
sketch: callback.listener any Event listener for selected button
sketch: callback.selectedItem Item NBT of the selected button
sketch: callback.selectionType "CLICK" | "DROP" Type of Selection
sketch: callback.otherItems Item[] List of normal items in Minecart with Chest

Execution context

as at
Player who selected the button Player who selected the button

Example

// #> #sketch:handler/on_select/chest_minecart
{
    "values": [
        "menu_manager:handler/on_select"
    ]
}
#> menu_manager:handler/on_select

say on_select
Clone this wiki locally