Mechanics & How-To

Terraria NPC Happiness and Pylons: Best Biomes and Housing Layouts (1.4.5)

What actually moves shop prices, which biome each NPC wants, and the pylon rule old guides still get wrong.

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:

FactorBuy priceSell 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% each95% each
Loved biome88%114%
Liked biome94%106%
Disliked biome106%94%
Hated biome112%89%
Each loved NPC within 25 tiles88%
Each liked NPC within 25 tiles94%
Each disliked NPC within 25 tiles106%
Each hated NPC within 25 tiles112%
Lovestruck buff90%111%

A few things that trip people up:

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.

NPCLikesDislikes
GuideForestOcean
MerchantForestDesert
NurseHallowSnow
ZoologistForestDesert
GolferForestCaverns
PainterJungleForest
WizardHallowOcean
TavernkeepHallowSnow
Goblin TinkererCavernsJungle
Party GirlHallowCaverns
DemolitionistCavernsOcean
ClothierCavernsHallow
Tax CollectorSnowHallow
MechanicSnowCaverns
Dye TraderDesertForest
SteampunkerDesertJungle
DryadJungleDesert
Witch DoctorJungleHallow
StylistOceanSnow
CyborgSnowJungle
AnglerOceanDesert
PirateOceanCaverns
Arms DealerDesertSnow
Santa ClausSnowDesert
TruffleGlowing MushroomNone
PrincessNone (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:

BiomeWho lives there (price)
ForestMerchant (0.89)
Forest, second group 120+ tiles awayZoologist (0.84), Golfer (0.84)
Underground HallowTavernkeep (0.79), Demolitionist (0.79)
HallowParty Girl (0.79), Wizard (0.89)
Underground SnowGoblin Tinkerer (0.75), Mechanic (0.75), Princess (0.77)
DesertNurse (0.84), Dye Trader (0.84), Arms Dealer (0.79)
Desert or SnowSteampunker (0.79 / 0.84), Cyborg (0.89 / 0.84)
JungleDryad (0.84), Painter (0.79), Witch Doctor (0.84)
OceanStylist (0.84), Angler (0.89), Pirate (0.83)
SnowTax Collector (0.89)
Glowing MushroomGuide (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:

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:

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

PylonWhere it has to sit
ForestAbove the surface layer, outside any other biome, and 380+ tiles from the world's true edges
SnowSnow biome
DesertDesert biome
JungleJungle biome
CavernBelow the surface, including the Underworld
UnderworldThe Underworld (added in 1.4.5.0)
OceanOcean biome, above the surface layer and below Space
HallowHallow
MushroomGlowing Mushroom biome
AetherThe Aether (added in 1.4.5.0). Not sold: you get it by Shimmering another pylon
UniversalAnywhere, 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

  1. Stand near a pylon, within about 60 tiles, and press Open/Activate on it. The fullscreen map opens.
  2. 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.

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.