def click_block(self, pos, look_at_block=True, swing=True, **kwargs):
        """
        Click on a block.
        Examples: push button, open window, make redstone ore glow

        Args:
            face (int): side of the block on which the block is placed on
            cursor_pos (Vector3): where to click inside the block,
                each dimension 0-15
        """
        pos = Vector3(pos)
        if look_at_block and self.auto_look:
            # TODO look at cursor_pos
            self.look_at(pos.floor() + Vector3(0.5, 0.5, 0.5))
        self._send_click_block(pos, **kwargs)
        if swing and self.auto_swing:
            self.swing_arm()
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/helpers/interact.py/InteractPlugin.click_block/original