Middle-Earth NPC

Overview
Middle-Earth NPC transforms the citizens of Middle-earth into interactive merchants and traders. Assign roles to NPCs, establish faction-based commerce, and create a living economy across all nine major factions of Middle-earth.
Features
NPC Role System
- Blacksmith Role: NPCs sell weapons, armor, raw materials, and enchanted books
- Farmer Role: NPCs offer food, crops, and agricultural supplies
- Automatic workstation detection (anvils for blacksmiths, composters for farmers)
- Smart AI pathfinding to claim and maintain workstations
Faction-Based Trading
- Unique shop inventories for all 9 Middle-earth factions:
- Gondor, Rohan, Shire, Isengard
- Lothlorien, Longbeards, Mordor, Misties, Dale
- Faction-specific items and pricing using Middle-earth currency (copper, silver, gold coins)
- Configurable shop data via JSON files
Role Management
- Use
/npcrole <role> to assign roles manually
- Right-click interaction system for pending role assignments
- Only Civilian and Militia rank NPCs can be assigned roles
- Persistent data storage across world saves
Datapack Customization
- Override default shops using datapacks
- Create
data/me-npc/farmer/<faction>.json or data/me-npc/blacksmith/<faction>.json
- Customize items and prices for any faction's merchants
- Example:
data/me-npc/farmer/gondor.json to modify Gondor farmer inventory
How to Use
- Find a Civilian or Militia NPC from any faction
- Place a treated anvil or composter next to them
- The NPC will seek nearby workstations and begin trading
Requirements
- Minecraft: 1.21.1
- Fabric Loader + Fabric API
- Middle-earth Mod (1.5.3-1.21.1-alpha or compatible)
Installation
- Install Fabric Loader and Fabric API
- Install the Middle-earth mod
- Drop this mod jar into your
mods folder
- Launch and start building your Middle-earth economy
License & Credits
- License: see LICENSE
- Built for the Middle-earth mod community
> Transform your Middle-earth settlements into thriving centers of commerce and trade