Function setSlot

  • Set an item stack within a particular slot.

    Parameters

    • entity: Entity
    • slot: number

      Zero-based index of the slot to set an item at.

    • Optionalitem: ItemStack

      Stack of items to place within the specified slot.

    Returns void