-
Notifications
You must be signed in to change notification settings - Fork 0
set_variable (ender_chest) [EN]
rarula edited this page Apr 7, 2023
·
2 revisions
日本語 | English
Called when placing a temporary item in the Ender Chest
One of the following item_modifiers must be applied to the item to be placed
- sketch:register_item/normal (Specified as a normal item)
- sketch:register_item/button (Specified as a button)
Coordinates | Slot | Description |
---|---|---|
10000 0 10000 | container.0 | Item to be placed |
Storage | Type | Optional | Default value | Description |
---|---|---|---|---|
sketch: in.listener | any | true | - | Event listener for the item to be placed |
Entity | Description |
---|---|
@a[tag=Sketch.Player] | Player with Ender Chest open |
Storage | Type | Description |
---|---|---|
sketch: callback.id | any | Identifier of the menu to be placed |
sketch: callback.key | string | Key of the item to be placed |
sketch: callback.slot | byte | Slot for the item to be placed |
as | at |
---|---|
Player who owns the Ender Chest | Player who owns the Ender Chest |
// #> #sketch:set_variable/ender_chest
{
"values": [
"menu_manager:set_variable"
]
}
#> menu_manager:set_variable
item replace block 10000 0 10000 container.0 with minecraft:apple
item modify block 10000 0 10000 container.0 sketch:register_item/button
data modify storage sketch: in.listener set value "giveApple"