

def place_sign(self, pos, lines=[], **place_block_kwargs):
    '\n        Place a sign block and write on it.\n        '
    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(lines, **place_block_kwargs)

dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/helpers/interact.py InteractPlugin.place_sign/VarMisuse@153/239 `pos`->`lines`