? Bazaar Villager Mod
Bazaar Villager Mod 引入了一种先进的、完全在服务器端运行的交易系统,其核心是一种新的 NPC 类型:Bazaar Villager。与原版随机的交易不同,Bazaar Villager 充当个人店主的角色,允许玩家配置自己的物品库存并设置最高可达 10,368 绿宝石的自定义价格。
与普通村民不同,Bazaar Villager 不会游荡、不会死亡且无法被推动——它们作为安全且持久的 NPC 商贩存在。
✨ 功能特性
? 自定义玩家拥有的 Bazaar Villager
- 玩家可以将物品放入他们的 Bazaar Villager 中,并通过自定义 GUI 为每个槽位指定价格。
- 价格支持三种货币:
- 绿宝石
- 绿宝石块(×9)
- 绿宝石核心块(×81) — 模组新增方块
- Bazaar Villager 会实时向所有附近的买家同步其交易信息。
- 可以通过自定义刷怪蛋进行放置和再次拾取。
? 合成与新物品
? 绿宝石核心块(81 个绿宝石)
一种高价值的高阶货币方块。
有形状合成配方(3×3 绿宝石块):
EEE
EEE
EEE
生成 1 个绿宝石核心块。
- 无形状合成配方(1 个核心块 → 9 个绿宝石块)
将 1 个绿宝石核心块放置在网格的任何位置,即可换回 9 个绿宝石块。
? Bazaar Villager 刷怪蛋
你可以合成 Bazaar Villager 本身!
有形状合成配方:
EEE
EVE
ECE
其中:
这生成 1 个 Bazaar Villager 刷怪蛋。
? 高级货币系统
- 支持三个层级:
1 绿宝石
1 绿宝石块 = 9 绿宝石
1 绿宝石核心块 = 81 绿宝石
- 最高价格限制:128 个核心块(10,368 绿宝石)。
? 智能自动支付与超额付款处理
当买家选择一项交易时:
- 模组会自动从你的库存中提取最小的可能组合。
- 支持混合支付(绿宝石、方块、核心块)。
- 允许超额付款。
买家始终获得最优找零:
- 核心块
- 绿宝石块
- 绿宝石
保证最少的剩余堆叠数量。
? 自定义交易 GUI 增强
- 显示:
- 实际价格
- 超额付款金额
- 带有绿宝石图标的 “找零:X” 指示器
- 当没有活跃交易时,该显示会自动隐藏。
? 所有者与客户菜单
? 安全性与持久性
- Bazaar Villager:
- 无法受到伤害
- 无法被推动
- 将其完整的库存、价格、余额和所有者数据存储在刷怪蛋内
- 始终安全地保留
? 合成书集成
- 绿宝石核心块和 Bazaar Villager 刷怪蛋会在合成指南中正确显示。
- 获得所需物品时,所有配方会自动解锁。
? Bazaar Villager Mod
The Bazaar Villager Mod introduces an advanced, fully server-side trading system centered around a new type of NPC: the Bazaar Villager. Instead of randomized vanilla trades, Bazaar Villagers function as personal shopkeepers, allowing players to configure their own item stocks and set custom prices up to 10,368 emeralds.
Unlike normal villagers, Bazaar Villagers do not wander, cannot die, and cannot be pushed — they act as secure, persistent NPC vendors.
✨ Features
? Custom Player-Owned Bazaar Villagers
- Players can place items inside their Bazaar Villager and assign a price for each slot with a custom GUI.
- Prices support three currencies:
- Emeralds
- Emerald Blocks (×9)
- Emerald Core Blocks (×81) — new block added by the mod
- Bazaar Villagers sync their trades in real time to all nearby buyers.
- They can be placed and picked up again via a custom Spawn Egg.
? Crafting & New Items
? Emerald Core Block (81 Emeralds)
A powerful high-value currency block.
Shaped Crafting (3×3 Emerald Blocks):
EEE
EEE
EEE
Creates 1 Emerald Core Block.
- Shapeless Crafting (1 Core Block → 9 Emerald Blocks)
Place 1 Emerald Core Block anywhere in the grid to get 9 Emerald Blocks back.
? Bazaar Villager Spawn Egg
You can craft the Bazaar Villager itself!
Shaped Crafting Recipe:
EEE
EVE
ECE
Where:
- E = Emerald Block
- V = Egg
- C = Chest
This creates 1 Bazaar Villager Spawn Egg.
? Advanced Currency System
- Supports three tiers:
1 Emerald
1 Emerald Block = 9 Emeralds
1 Emerald Core Block = 81 Emeralds
- Maximum price: 128 Core Blocks (10,368 emeralds).
? Smart Auto-Payment & Overpayment Handling
When a buyer selects a trade:
- The mod automatically pulls the smallest possible combination from your inventory.
- Supports mixed payments (emeralds, blocks, cores).
- Overpaying is allowed.
Buyers always receive optimal change:
- Core Blocks
- Emerald Blocks
- Emeralds
Guaranteed minimal leftover stacks.
? Custom Trade GUI Enhancements
- Displays:
- real price
- overpayment value
- a “Change: X” indicator with an emerald icon
- Display hides when no trade is active.
? Owner & Customer Menus
- Owners can:
- set item prices
- manage villager inventory
- withdraw accumulated emerald balance
- Customers only see the buying interface.
? Security & Persistence
- Bazaar Villagers:
- cannot take damage
- cannot be pushed
- store their entire inventory, prices, balance, and owner data inside their spawn egg
- always persist safely
? Crafting Book Integration
- The Emerald Core Block and the Bazaar Villager Spawn Egg show correctly in the crafting guide.
- All recipes automatically unlock when obtaining required items.
评论 0
登录后参与评分
还没有评论,来抢沙发吧