LoraCore

LoraCore

Mod

AI-powered mod for Minecraft. Adds intelligent assistants, dynamic structures, villager personalities, and quests.

Client or server AdventureSocialTechnology

65 downloads
1 follower
Follow Save

LoraCore 1.0.3

Changelog

Added

  • New interface for the /ask command: The /ask command now opens a full-fledged graphical interface for chatting with AI, replacing the old system for outputting answers to a game chat.
  • AI Dialogue History: The new interface supports a scrollable message history that is saved for the player.
  • History storage component: To implement the chat history, a new component PlayerAskHistoryComponent was added using the Cardinal Components API.

Changed

  • Improved AI context recognition: The logic of generating requests to AI has been radically redesigned. Now, up-to-date information about the player (inventory, biome, coordinates) is added to the end of each query, which forces the model to pay more attention to it and give more relevant advice.
  • Dialog context support: The AI now gets a complete history of previous messages, which allows it to "remember" the context of the conversation and answer clarifying questions.
  • The AI response limit has been increased: The maximum number of tokens in an API response has been increased from 250 to 1024 to prevent long and detailed responses from being cut off.
  • Formatting of AI responses: A Markdown-like markup parser is implemented in the new /ask window. The text surrounded by ** is now displayed correctly as bold.
  • Server logic: The AskAiC2SPacket package handler no longer sends a message to the chat, but updates the PlayerAskHistoryComponent on the server, followed by synchronization to the client.

Fixed

  • Character input restriction: The 32-character input limit has been lifted in the input fields in the dialogue with residents and in the chat window with AI. The new limit is 256 characters.
  • Network code structure: Fixed an error in the file `ModNetworking.java where one package handler was mistakenly nested in another, which caused cascading compilation errors.

Добавлено

  • Новый интерфейс для команды /ask: Команда /ask теперь открывает полноценный графический интерфейс для чата с ИИ, заменяя старую систему вывода ответов в игровой чат.
  • История диалога с ИИ: Новый интерфейс поддерживает прокручиваемую историю сообщений, которая сохраняется для игрока.
  • Компонент для хранения истории: Для реализации истории чата был добавлен новый компонент PlayerAskHistoryComponent с помощью Cardinal Components API.

Изменено

  • Улучшено распознавание контекста ИИ: Кардинально переработана логика формирования запросов к ИИ. Теперь актуальная информация об игроке (инвентарь, биом, координаты) добавляется в конец каждого запроса, что заставляет модель уделять ей повышенное внимание и давать более релевантные советы.
  • Поддержка контекста диалога: ИИ теперь получает полную историю предыдущих сообщений, что позволяет ему "помнить" контекст беседы и отвечать на уточняющие вопросы.
  • Увеличен лимит ответа ИИ: Максимальное количество токенов в ответе от API увеличено с 250 до 1024, чтобы предотвратить обрывание длинных и подробных ответов.
  • Форматирование ответов ИИ: В новом окне /ask реализован парсер Markdown-подобной разметки. Текст, окруженный **, теперь корректно отображается как жирный.
  • Серверная логика: Обработчик пакета AskAiC2SPacket теперь не отправляет сообщение в чат, а обновляет PlayerAskHistoryComponent на сервере с последующей синхронизацией на клиент.

Исправлено

  • Ограничение на ввод символов: Снято ограничение на ввод в 32 символа в полях ввода в диалоге с жителями и в окне чата с ИИ. Новый лимит — 256 символов.
  • Структура сетевого кода: Исправлена ошибка в файле ModNetworking.java, где один обработчик пакетов был ошибочно вложен в другой, что вызывало каскадные ошибки компиляции.

Files

loracore-1.0.3.jar(4.56 MiB) Primary Download

Project members

Beykus-Y

Member

Details

Licensed MIT
Published 4 months ago
Updated 3 months ago