Terraria NPC happiness is a score that sets your shop prices, and it comes from two things: the biome you're standing in when you talk to an NPC, and who lives near them. Happy NPCs sell for as little as 75% of base price. Unhappy ones charge up to 150%. Everything below is for the current PC (Desktop) version, 1.4.5.8 as of late 2026.
Here's the part old guides get wrong: happiness no longer has anything to do with pylons. Desktop 1.4.5.0 removed the minimum-happiness rule. Plenty of guides still tell you to keep NPCs above 90% happy so they'll sell a pylon. Ignore that. Pylons now depend on who's nearby and which biome you're in, and I get to the exact conditions in the pylon section.
How NPC happiness works
Talk to an NPC and hit Happiness. It lists what's pleasing or annoying them right now, though it won't tell you how to fix it. The factors multiply together, and the shop's price shifts with the result:
| Factor | Buy price | Sell value |
|---|---|---|
| Solitude (no more than 2 other NPCs within 25 tiles and no more than 3 more between 25 and 120 tiles) | 95% | 105% |
| Crowded (each 4th, 5th, etc. NPC within 25 tiles) | 105% each | 95% each |
| Loved biome | 88% | 114% |
| Liked biome | 94% | 106% |
| Disliked biome | 106% | 94% |
| Hated biome | 112% | 89% |
| Each loved NPC within 25 tiles | 88% | |
| Each liked NPC within 25 tiles | 94% | |
| Each disliked NPC within 25 tiles | 106% | |
| Each hated NPC within 25 tiles | 112% | |
| Lovestruck buff | 90% | 111% |
A few things that trip people up:
- Biome means your biome, not the house's. The game checks the biome the player is in when the chat window opens. If you're in a hybrid spot and the NPC likes one biome and dislikes the other, the liked one wins.
- Three neighbours or fewer. Keep no more than three other NPCs within 25 tiles and you dodge the crowding penalty. Distance is measured from the NPC's home tile, the spot under the house flag.
- Town pets don't count. Cats, dogs, bunnies and town slimes don't raise or lower anyone's happiness. The Princess is liked by everyone, but she does count toward crowding.
- The worst case is forced. A homeless NPC, one more than 120 tiles from their house, or one standing in the Dungeon, Corruption or Crimson gets the full 150% buy and 67% sell.
- Decoration doesn't matter. Pretty houses don't change happiness. Location and neighbours do.
- Oasis counts as Desert, and a Graveyard counts as whatever biome it sits in.
It's calculated the moment you open the chat, so you can change a flag or move a house and re-open the window to test. In Remix worlds the happiness system is switched off and prices stay at 100%.
Which NPCs are worth the effort
Not all of them. My shortlist: the Goblin Tinkerer (reforging is the biggest money sink in the game), Steampunker, Angler (happiness changes his quest rewards), Arms Dealer, Witch Doctor, Mechanic, Truffle, Zoologist, Wizard, Demolitionist and Cyborg. The Guide has no shop, so his happiness does nothing. Tavernkeep items bought with Defender Medals can't be discounted. Happiness also changes Nurse healing fees and Tax Collector income.
NPC biome preferences
Here's every NPC's liked and disliked biome. "Caverns" means Underground, Cavern and Underworld, which the game treats as one group.
| NPC | Likes | Dislikes |
|---|---|---|
| Guide | Forest | Ocean |
| Merchant | Forest | Desert |
| Nurse | Hallow | Snow |
| Zoologist | Forest | Desert |
| Golfer | Forest | Caverns |
| Painter | Jungle | Forest |
| Wizard | Hallow | Ocean |
| Tavernkeep | Hallow | Snow |
| Goblin Tinkerer | Caverns | Jungle |
| Party Girl | Hallow | Caverns |
| Demolitionist | Caverns | Ocean |
| Clothier | Caverns | Hallow |
| Tax Collector | Snow | Hallow |
| Mechanic | Snow | Caverns |
| Dye Trader | Desert | Forest |
| Steampunker | Desert | Jungle |
| Dryad | Jungle | Desert |
| Witch Doctor | Jungle | Hallow |
| Stylist | Ocean | Snow |
| Cyborg | Snow | Jungle |
| Angler | Ocean | Desert |
| Pirate | Ocean | Caverns |
| Arms Dealer | Desert | Snow |
| Santa Claus | Snow | Desert |
| Truffle | Glowing Mushroom | None |
| Princess | None (everyone likes her) | None |
Ocean only needs you to be within 380 tiles of the world's true edge and above the middle of the Underground. You don't need water. Forest is the leftover biome: it only counts when no other biome's requirements are met.
Town layouts that work by biome
You don't need to solve the neighbour puzzle yourself. The wiki's NPC happiness guide groups NPCs by biome, with the price multiplier each one ends up at (lower is cheaper). Keep groups in the same biome at least 120 tiles apart to hit these numbers. This is the full late-game layout once everyone's unlocked:
| Biome | Who lives there (price) |
|---|---|
| Forest | Merchant (0.89) |
| Forest, second group 120+ tiles away | Zoologist (0.84), Golfer (0.84) |
| Underground Hallow | Tavernkeep (0.79), Demolitionist (0.79) |
| Hallow | Party Girl (0.79), Wizard (0.89) |
| Underground Snow | Goblin Tinkerer (0.75), Mechanic (0.75), Princess (0.77) |
| Desert | Nurse (0.84), Dye Trader (0.84), Arms Dealer (0.79) |
| Desert or Snow | Steampunker (0.79 / 0.84), Cyborg (0.89 / 0.84) |
| Jungle | Dryad (0.84), Painter (0.79), Witch Doctor (0.84) |
| Ocean | Stylist (0.84), Angler (0.89), Pirate (0.83) |
| Snow | Tax Collector (0.89) |
| Glowing Mushroom | Guide (0.89), Clothier (0.84), Truffle (0.83) |
Santa Claus prefers Snow if he turns up at Christmas.
Earlier in the game, the same guide has simpler starts:
- Before the Eye of Cthulhu: Guide, Zoologist and Golfer together in the Forest (0.84 each), Merchant, Nurse and Arms Dealer together in the Forest (0.84 each), Stylist and Angler at the Ocean (0.89).
- After Skeletron or Queen Bee: Goblin Tinkerer, Dye Trader and Mechanic in Underground Snow (0.75, 0.95, 0.79), Dryad, Painter and Witch Doctor in the Jungle (0.84, 0.79, 0.84), and Party Girl, Stylist and Angler at the Ocean (0.89, 0.89, 0.84).
- Early Hardmode: Guide, Clothier and Truffle in a Glowing Mushroom biome, Tax Collector in Snow, Wizard in the Forest, and Nurse plus Arms Dealer in Hallow or Desert.
Those layouts were worked out before the Underworld and Aether pylons existed, so treat them as a starting point rather than gospel. If you'd rather not be perfect, my advice is to put three or four homes at each spot you want a pylon, keep one spare house for new arrivals, and move on. Cheap Goblin Tinkerer reforges are the one place I'd chase the number.
Terraria pylons: how they work now
A pylon is a teleport point. Place two or more and you can jump between them from the fullscreen map. Most pylons cost 10 gold, and you can only have one of each type per world.
How to get an NPC to sell you one
There's no happiness check. These are the real conditions:
- The NPC has to be a vendor. Tavernkeep, the Traveling Merchant and the Skeleton Merchant never sell pylons. (Tavernkeep stopped in 1.4.5.4.)
- Another NPC has to be near the vendor. Town pets count.
- You can't be standing in the Corruption or Crimson.
- The shop offers pylons for the biome you're in, not the biome the NPC lives in.
Vendors that sell pylons: Arms Dealer, Clothier, Cyborg, Demolitionist, Dryad, Dye Trader, Goblin Tinkerer, Golfer, Mechanic, Merchant, Painter, Party Girl, Pirate, Princess, Santa Claus, Steampunker, Stylist, Truffle, Witch Doctor, Wizard and Zoologist. Nurse, Angler, Tax Collector and the Guide don't.
You can buy a pylon without placing it, so the usual trick is to walk an NPC to the right biome, buy, and move them back. For an early one, the Nurse and the Arms Dealer together will get the Arms Dealer selling. He shows up once a player has a gun or bullets, and she needs a player above 100 HP and the Merchant around.
Every pylon and where it works
| Pylon | Where it has to sit |
|---|---|
| Forest | Above the surface layer, outside any other biome, and 380+ tiles from the world's true edges |
| Snow | Snow biome |
| Desert | Desert biome |
| Jungle | Jungle biome |
| Cavern | Below the surface, including the Underworld |
| Underworld | The Underworld (added in 1.4.5.0) |
| Ocean | Ocean biome, above the surface layer and below Space |
| Hallow | Hallow |
| Mushroom | Glowing Mushroom biome |
| Aether | The Aether (added in 1.4.5.0). Not sold: you get it by Shimmering another pylon |
| Universal | Anywhere, and it needs no NPCs. The Zoologist sells it, and only once your Bestiary is full |
That's 11 types. A Forest pylon also works in the sky. Forest and Cavern are never offered together, and neither shows up while you're in Snow, Desert, Ocean, Jungle, Hallow or Glowing Mushroom. A hybrid biome can put several pylons in one shop.
Using the network
- Stand near a pylon, within about 60 tiles, and press Open/Activate on it. The fullscreen map opens.
- Click another pylon on the map.
You can also open the fullscreen map while you're near a pylon. Both the pylon you're at and the one you're going to need at least two housed NPCs (town pets count) living nearby, and the pylon has to be in its matching biome. Universal pylons skip the NPC rule. Your minimap also has to be switched on in settings. Since 1.4.5.0 pylons work during bosses, invasions and events too.
If it won't let you through, the message tells you why: not enough villagers living near that pylon, wrong biome, or too far from a pylon. "Living" means housed, not just standing around. Before a boss fight, a third NPC or a town pet keeps a pylon active while you move one out.
Pylons pair nicely with Recall Potions, Magic Mirrors and a minecart hub. A Cavern pylon near the Underworld beats digging a hellevator. Setting up for bosses? My Terraria boss order guide tells you what to prep and in what order.
NPC housing checklist
Happiness only applies to NPCs with a valid house, so get this right first. Open the housing menu (the little house button above your armor slots), pick the question mark and click inside a room. It says "This housing is suitable" or tells you what's missing.
- Size: at least 60 and fewer than 750 tiles including the frame, and no more than 100 wide or tall. Smallest rectangles, walls included, are 5x12, 6x10, 7x9, 8x8, 9x7, 10x6 and 12x5. It doesn't have to be a rectangle.
- Closed frame: solid blocks, platforms, trap doors, doors or tall gates all work.
- Walls: player-placed background walls. Natural walls need replacing. Unsafe or missing walls are fine in small patches only.
- Furniture, one of each: a light (torch, candle, lamp), a table-type (work bench, table), a chair-type (chair, bed, bench) and a door-type (door, platform, trap door). The cheapest set is a Torch, Work Bench, Chair and Wood Platform.
- A spot to stand: solid floor with headroom above it. Chests and clutter above the spot count against it.
- Not evil: a house with an evil score of 300 or more is invalid ("This housing is corrupted"). Hallow tiles and sunflowers bring the score down.
- One NPC per house. A town pet can share with a non-pet NPC. The Old Man, Traveling Merchant and Skeleton Merchant don't need a house.
- Truffle needs 100+ Glowing Mushroom tiles around his house, and it has to be above the surface until he's unlocked.
Drop the NPC's flag into a valid house to assign them. The flag gets a gold frame. An NPC you evict waits a minute before looking for a new place.
If you're still choosing a world to build all this in, my best Terraria seeds roundup is a good start. The secret seeds list has a few that change what NPCs sell and who spawns. Starting on a tiny island? The Terraria skyblock seed guide covers building your own biomes from scratch, which is where your towns and pylons will have to go. And if you've outgrown the game, games like Terraria has other sandboxes to try.