def click_block(self, pos, look_at_block=True, swing=True, **kwargs):
        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()
Click on a block.
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/helpers/interact.py/InteractPlugin.click_block