Slot source

Helpers that build a minecraft:slot_source object, one for each of its types. Where a field takes one, write the helper's call; its name is the type it makes. Click a type to see what it accepts.

Contents

Contents
Contents(slot_source, component)
slot_source
SlotSource

The slots to search.

component
ContainerComponents

If an item targeted by slot_source has this container component, selects all items inside.

Empty

Empty
Empty()

Filtered

Filtered
Filtered(slot_source, item_filter)
slot_source
SlotSource
item_filter
ItemPredicate

Group

Group
Group(terms)
terms
SlotSource

LimitSlots

LimitSlots
LimitSlots(slot_source, limit)
slot_source
SlotSource
limit
int 1..

SlotRange

SlotRange
SlotRange(slots, source?)
slots
string
sourceoptional
EntityTarget | BlockEntityTarget | "container"

Defaults to container.