interactentity-2.3.0-1.20.1.jar
Curse Maven Snippet
What's new
InteractEntity 2.3.0 (Minecraft 1.20.1, Forge)
Trading
Any NPC can now trade with the player.
- To open a shop, add
"merchant": "harold_basic"to a dialogue node, whereharold_basicis the name of a shop file fromconfig/interactentity/trades/. To close the shop, use"merchant": false. - A merchant can both sell items to the player and buy items from them.
- A price can be made of several items.
- An item can be shown only when a condition is met, for example after a quest is completed.
- An item can have a stock limit: separate for each player or shared by everyone.
- The shop opens right from the dialogue with the pouch icon. Click an item to open a side panel with its price, stock and description.
- A full shop example and all fields are in the README, section 36.
NPC name tags
- You can now control the name tag above an NPC's head with the
name_tagfield:"always": the name tag is always visible;"hover": the name tag is visible only when the player looks at the NPC;"hidden": the name tag is never shown.
Торговля
Теперь любой NPC может торговать с игроком.
- Чтобы открыть лавку, добавь в ноду диалога строку
"merchant": "harold_basic", гдеharold_basicэто имя файла с товарами из папкиconfig/interactentity/trades/. Чтобы закрыть лавку, напиши"merchant": false. - Торговец может как продавать игроку товары, так и покупать их у него.
- Цена может состоять из нескольких предметов.
- Товар можно показывать только при выполнении условия, например после завершения квеста.
- У товара можно задать лимит: отдельно для каждого игрока или общий на всех.
- Лавка открывается прямо из диалога по иконке мешочка. Если нажать на товар, справа появится панель с ценой, остатком и описанием.
- Полный пример лавки и описание всех полей есть в README, раздел 36.
Никнеймы NPC
- Теперь можно настроить ник над головой NPC с помощью поля
name_tag:"always": ник виден всегда;"hover": ник виден, только когда игрок смотрит на NPC;"hidden": ника не видно совсем.
This mod has no additional files