Skip to content

NPC Villages

Mjwitz edited this page Nov 25, 2026 · 1 revision

NPC Villages

NPC Villages are rare, biome-themed overworld settlements populated by mortal Shopkeepers and armored Village Guards. Players can trade for Gold Coins, level up individual Shopkeepers through 5 Shop Tiers, unlock scarce Enhancements and unique specialty items, and physically fortify villages with normal blocks to protect their leveled Shopkeepers from night monsters.


World Generation & Biome Themes

Villages generate deterministically on a coarse overworld grid (384-block spacing, 65% cell chance with multi-spot terrain sampling) under the following rules:

  • Spawn Buffer: Never spawns within 160 blocks of world origin (0, 0).
  • Boss Temple Exclusion: Strictly suppressed whenever a Boss Temple occupies the same Voronoi biome cell or lies within 320 blocks.
  • Layout: Each Village features a central lit square with a water well, solid-foundation connecting walkways, 3–5 themed shop buildings (each with a distinct Shopkeeper profession), and 2–3 Village Guards.
  • No Protection Zones: Villages use normal voxel building and breaking rules, so you can build walls, gates, lighting, or moats to fortify them.
Village Theme Eligible Biomes Architecture
Plains Village Plains, Flower Meadow Oak planks, wood log pillars, cobblestone roofs & square
Desert Oasis Village Desert, Red Desert Sandstone walls & paths, terracotta pillars & flat parapet roofs
Taiga Timber Village Taiga, Snowy Tundra Spruce planks & logs, pitched timber/cobble roofs
Savanna Acacia Village Savanna Acacia planks & logs, sandstone paths, terracotta parapet roofs

Gold Coins & Shopkeeper Economy

  • Gold Coins (max_stack: 1000) are the village currency.
  • How to Earn Gold Coins:
    • Sell to Shopkeepers: Open a Shopkeeper's Sell tab to sell items matching their profession. Each Shopkeeper has a daily per-player buyback budget that resets every in-game day (24,000 ticks) and scales upward with your Shop Tier on that Shopkeeper.
    • Fishing Treasure: Rare Gold Coin catches can also be reeled in from fishing treasure loot.
  • Shopkeeper Professions (3–5 distinct shops per Village):
    • Armorer — Buys ores/ingots/leather; sells armor, shields/weapons, the unique Vanguard Blade, and armor/weapon Enhancements.
    • Toolsmith — Buys coal/ores/ingots; sells tools, lanterns, the unique Miner's Lantern, and tool Enhancements.
    • Angler — Buys fish; sells fishing rods, line/bait, the unique Master Angler Lure, and fishing rod Enhancements.
    • Baker — Buys wheat/sugar/milk/eggs; sells breads, pastries, and the unique Golden Apple Pie.
    • Chef — Buys meats/crops; sells hearty cooked meals and the unique Royal Feast and Spiced Elixir.

Per-NPC Shop Tiers & Split Stock Scopes

Right-click a living Shopkeeper to open the 3-tab Shop UI (Buy / Sell / Enhance):

  • Per-Player, Per-NPC Progression: Spending Gold Coins (buying items or Enhancements) levels up your Shop Tier (1 → 5) on that specific Shopkeeper. You can always buy items from your current tier and all lower tiers.
    • Cumulative Gold Coins spent thresholds: Tier 1 (0), Tier 2 (50), Tier 3 (150), Tier 4 (400), Tier 5 (900).
  • Split Stock & 3-Day Restock:
    • Tiers 1–3 (Per-Player Stock): Higher regular quantities tracked independently for each player.
    • Tiers 4–5 (Shared Per-NPC Stock): Scarce, high-value items and Enhancements (down to 1 per restock at Tier 5) are shared across all players on that Shopkeeper, making high-tier rares competitive in multiplayer.
    • Restock Cadence: All shop stock refills every 3 in-game days (72,000 ticks).

Enhancements & Unique Shop Items

The Enhance tab stays greyed out and locked until you reach Shop Tier 4 on a Shopkeeper whose profession offers Enhancements (Armorer, Toolsmith, Angler).

  • Rules:
    • Each item can hold at most 1 Enhancement (cannot be stacked or overwritten).
    • Enhancing requires both the unenhanced base item in your inventory and a hefty Gold Coin fee (scaling with material tier).
    • Applying an Enhancement restores the item to full durability and displays an enhanced corner badge + tooltip label (e.g., Diamond Pickaxe [Reinforced - +100% Max Durability]).
Enhancement Profession Eligible Items Effect
Reinforced Toolsmith / Armorer Durable tools, weapons, armor +100% Max Durability
Haste Toolsmith Pickaxes, Axes, Shovels +35% Mining Speed
Prospector Toolsmith Pickaxes, Axes, Shovels +25% Bonus Ore Drops
Keen Armorer Weapons +25% Weapon Damage
Bulwark Armorer Armor pieces +5% Damage Reduction
Treasure Hunter Angler Fishing Rods +50% Treasure Odds
Lucky Cast Angler Fishing Rods +35% Rare Fish Odds

Unique Shop-Exclusive Items (Tiers 4–5)

Item Shopkeeper Effect / Use
Miner's Lantern Toolsmith High-output portable/placeable light source for deep mining
Vanguard Blade Armorer High-damage uncraftable melee weapon
Master Angler Lure Angler Top-tier fishing lure for rare catches
Golden Apple Pie Baker High hunger/saturation + Regeneration buff (30s)
Royal Feast Chef Massive hunger/saturation + Mining Haste buff (45s)
Spiced Elixir Chef Cures negative food effects + Speed buff (45s)

NPC Behavior, Village Guards & Mortality

  • Shopkeeper Daily Routine:
    • Wander near their shop courtyard during safe daytime hours.
    • Retreat indoors to their shop hut at dusk/night (or whenever a living monster is within 18 blocks), using 3D voxel A* pathfinding to route around walls and through doorways.
    • Permanent Mortality: Shopkeepers (30 HP) and Village Guards (100 HP) do not respawn if killed. Protecting a leveled Village genuinely matters.
  • Village Guards:
    • 2–3 armored melee defenders per Village (100 HP, 35% built-in armor damage reduction, 10 melee damage, 2.5-block reach, and 2.5 HP/s out-of-combat regeneration after 3.5s).
    • Actively patrol the village, swim out of water if knocked in, and intercept hostile night monsters (Zombie, Skeleton, Spider) marching into town.
    • Distance-Based Interest Decay: Guards have no artificial fence trapping them inside town; they can chase threats outside the village, gradually losing interest the farther they roam until they break off at 30 blocks away and return home.
    • Player Retaliation: Attacking any Village NPC (melee or arrows) immediately turns that Village's Guards hostile toward only the attacking player. Hostility clears when the player dies or stays away from the Village for 1 full in-game day (24,000 ticks).
  • Persistence & Multiplayer:
    • Village state (spawned NPCs, deaths, per-player Shop Tiers, split stock, daily buyback budgets, and Guard hostility) is persisted in saves/<world_name>/villages.bin and synchronized authoritatively by blockgame_server in multiplayer.

Clone this wiki locally