What are the best NPC housing designs for maximizing happiness in Terraria?

To maximize NPC happiness in Terraria, you need to understand the mechanics of the happiness system and how to design housing that meets the preferences of each NPC. NPC happiness is influenced by two main factors: the biome they live in and the neighbors they have. Each NPC has preferred biomes and neighbors, and being in a disliked biome or near a disliked neighbor will reduce their happiness. High happiness leads to discounts on items they sell and access to unique items like the Pylon network, which allows fast travel between biomes.

First, letÔÇÖs break down the mechanics. NPCs have specific biome preferences. For example, the Guide prefers the Forest biome, while the Arms Dealer prefers the Desert. They also have neighbor preferences. The Nurse and Arms Dealer like each other, but the Arms Dealer dislikes the Steampunker. When an NPC is in their preferred biome and near a liked neighbor, their happiness increases. If they are in a disliked biome or near a disliked neighbor, their happiness decreases. Happiness affects the prices of items they sell, with discounts up to 20% for high happiness and price increases for low happiness.

To maximize happiness, you need to create housing in the preferred biomes for each NPC and pair them with neighbors they like. Start by identifying the preferred biomes and neighbors for each NPC. For example, the Merchant prefers the Forest biome and likes the Nurse and Golfer as neighbors. The Zoologist prefers the Forest biome and likes the Witch Doctor and Golfer. The Goblin Tinkerer prefers the Underground biome and likes the Mechanic. The Steampunker prefers the Desert biome and likes the Cyborg. The Dryad prefers the Jungle biome and likes the Witch Doctor. The Arms Dealer prefers the Desert biome and likes the Nurse. The Nurse prefers the Hallow biome and likes the Arms Dealer. The Tavernkeep prefers the Hallow biome and likes the Demolitionist. The Demolitionist prefers the Underground biome and likes the Tavernkeep. The Dye Trader prefers the Desert biome and likes the Arms Dealer. The Painter prefers the Jungle biome and likes the Dryad. The Angler prefers the Ocean biome and likes the Pirate and Tax Collector. The Pirate prefers the Ocean biome and likes the Angler. The Tax Collector prefers the Underground biome and likes the Merchant. The Stylist prefers the Ocean biome and likes the Angler. The Witch Doctor prefers the Jungle biome and likes the Dryad. The Mechanic prefers the Snow biome and likes the Goblin Tinkerer. The Cyborg prefers the Snow biome and likes the Steampunker. The Truffle prefers the Glowing Mushroom biome and likes the Guide. The Princess prefers the Hallow biome and likes all NPCs.

Next, plan your housing layout. Create small towns in each biome, with houses for NPCs who prefer that biome and like each other. For example, in the Forest biome, build houses for the Guide, Merchant, Zoologist, and Golfer. In the Desert biome, build houses for the Arms Dealer, Dye Trader, and Steampunker. In the Jungle biome, build houses for the Dryad, Painter, and Witch Doctor. In the Ocean biome, build houses for the Angler, Pirate, and Stylist. In the Underground biome, build houses for the Goblin Tinkerer, Mechanic, and Tax Collector. In the Snow biome, build houses for the Mechanic and Cyborg. In the Glowing Mushroom biome, build a house for the Truffle. In the Hallow biome, build houses for the Nurse, Tavernkeep, and Princess.

When building houses, ensure they meet the basic requirements: at least 6 blocks wide, 10 blocks tall, with walls, a light source, a table, a chair, and a door. Use platforms for multi-level housing to save space. Place houses close enough for NPCs to be neighbors but not too close to overcrowd the area. Overcrowding reduces happiness, so keep at least 25 blocks between houses.

To optimize happiness, use Pylons for fast travel. Place Pylons in each biome town, and NPCs will sell them if they are happy. This allows you to quickly travel between biomes without needing to build teleporters.

Common mistakes include placing NPCs in disliked biomes or near disliked neighbors, overcrowding housing, and not meeting basic housing requirements. Avoid these by carefully planning your housing layout and checking NPC preferences.

Advanced techniques include using background walls and furniture to create themed houses that match the biome, which can increase happiness. For example, use cactus furniture in the Desert biome or jungle furniture in the Jungle biome. You can also use actuators to create hidden doors or compact housing designs to save space.

Resource requirements include wood, stone, and biome-specific materials like cactus, jungle wood, or snow blocks. Preparation involves gathering these materials and crafting furniture and walls. Use the GuideÔÇÖs crafting menu to see what materials are needed for specific items.

Class and equipment considerations are minimal for housing, but having a good pickaxe and building tools like the Architect Gizmo Pack can speed up construction. Use the Grand Design to place wires and actuators for advanced designs.

In summary, maximizing NPC happiness involves understanding biome and neighbor preferences, planning housing layouts, and avoiding common mistakes. By creating themed towns in each biome and pairing NPCs with liked neighbors, you can achieve high happiness, discounts, and access to Pylons for fast travel.