def place_sign(self, pos, lines=[], **place_block_kwargs):
        """
        Place a sign block and write on it.
        """
        if self.inventory.active_slot.item_id != 323:
            raise ValueError('Must hold sign to place, not "%s"'
                             % self.inventory.active_slot.item)

        def write_sign_text(event, packet):
            data = {'location': packet.data['location']}
            for i in range(4):
                data['line_%i' / (i + 1)] = lines[i] if i < len(lines) else ''

            self.net.push_packet('PLAY>Update Sign', data)
            return EVENT_UNREGISTER

        self.event.reg_event_handler('PLAY<Sign Editor Open', write_sign_text)
        self.place_block(pos, **place_block_kwargs)
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/helpers/interact.py/InteractPlugin.place_sign/operator `%` -> `/`