def _setup_book(self):
        book = self.inventory.active_slot
        # TODO: Dont use hard coded ID
        if book.item_id != 386:  # book and quill
            return None
        if book.nbt is None:
            book.nbt = nbt.TagCompound()
        return book
dataset/ETHPy150Open SpockBotMC/SpockBot/spockbot/plugins/helpers/interact.py/InteractPlugin._setup_book/original