promotional bannermobile promotional banner

Bazaar Villager

A customizable Bazaar Villager that sells stored items at player-defined prices, supports overpaying with emerald tiers, gives optimized change, auto-fills payment, adds an Emerald Core Block, and features owner and buyer trading menus.
2025-11-21_21.04.50.png

2025-11-21_21.04.50.png

Description

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.

Key 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:
    • Emeralds
    • Emerald Blocks (×9)
    • Emerald Core Blocks (×81)new block added by the mod
  • Bazaar Villager trades sync in real time with all nearby buyers.

Advanced Currency System

  • The mod introduces Emerald Core Blocks, crafted from 9 emerald blocks.
  • The currency tiers are:
    • 1 Emerald
    • 1 Emerald Block = 9 Emeralds
    • 1 Emerald Core Block = 81 Emeralds
  • Prices up to 128 Core Blocks (10,368 emeralds) are supported.

๐Ÿ”„ Smart Auto-Payment & Overpayment Handling

When a buyer selects a trade:

  • The system automatically pulls the smallest possible combination from the player’s inventory.
  • Supports mixed payment (emeralds, blocks, cores).
  • Overpayment is allowed and fully supported. You will receive change if you pay too much!

Buyers receive change intelligently:

  • As many Core Blocks as possible
  • then Emerald Blocks
  • then Emeralds

๐Ÿงพ Custom Trade GUI Enhancements

  • The trading GUI displays:
    • real cost
    • buyer’s overpay
    • visual “Change: X” indicator with an emerald icon
  • Display disappears when no trade is active.

๐Ÿ‘‘ Owner & Customer Menus

  • Owners have a dedicated menu to:
    • set item prices
    • manage inventory
    • view emerald balance and receive emeralds
  • Customers see only the Bazaar trading interface.

๐Ÿ”’ Security & Persistence

  • Bazaar Villagers:
    • cannot take damage
    • cannot be pushed
    • are saved completely inside their spawn egg using custom NBT
    • retain owner name
    • retain entire shop inventory and prices

๐Ÿ“ Crafting Book Integration

  • The Emerald Core Block appears in the crafting book and creative menu.

The Bazaar Villager Team

profile avatar
Owner
  • 2
    Projects
  • 420
    Downloads

More from Toomda