def drop_slot(self, slot=None, drop_stack=False):
        if slot is None:
            if self.cursor_slot.is_empty:
                slot = self.active_slot
            else:
                slot = self.cursor_slot
        elif isinstance(slot, int):  # also allow slot nr
            slot = self.window.slots[slot]
        if slot == self.cursor_slot:
            # dropping items from cursor is done via normal click
            return self.click_slot(self.cursor_slot, not drop_stack)
        return self.send_click(windows.DropClick(slot, drop_stack))
Drop one or all items of the slot.
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/helpers/inventory.py/InventoryCore.drop_slot