Bedrock Energistics Core
    Preparing search index...

    Function setMachineSlotItem

    • Beta

      Sets an item in a machine inventory.

      Parameters

      • loc: DimensionLocation

        The location of the machine.

      • slotId: number

        The number ID of the slot as defined when the machine was registered (see UiItemSlotElementDefinition).

      • OptionalnewItemStack: MachineItemStack

        The MachineItemStack to put in the slot. Pass undefined to remove the item in the slot.

      Returns void