DayZ2.netDayZ wiki · Survival · Guides · DayZ 2 news
Menu, guides & wiki

DayZ Wiki › Base building

A watchtower and fence base

Base building

Base building

Fences, gates, towers, flag poles, locks and stashes, how bases get raided, why they vanish, and the Badlands rebuilding system.

The parts

What a base is made of

Base building in DayZ is a set of kits that you place, then build up stage by stage with materials and tools. Nothing is instant and everything can be taken apart by someone with the right tools and enough time.

StructureKitMaterialsToolsWhat it does
Fence2 sticks + ropeLogs ×2 (frame), planks ×? or metal sheets (panels), nails, optional barbed wireHatchet or axe for logs, hammer, pliers, hacksaw for planksA wall segment. Add a gate conversion with metal wire and pliers for a door.
GateFence + metal wireSame as a fencePliersA fence that opens. Takes a combination lock or the official code lock.
WatchtowerSticks + ropeLogs, planks, nails per floor (three floors)Hatchet, hammer, pliersA tower for overwatch and storage; the top floor is cover.
Flag poleSticks + ropeLogs, nails, metal wire, a flagHatchet, hammer, pliersRaise a flag and everything within about 60 metres stops despawning while the flag is up. Lower it to reset.
Shelter4 sticks + ropeSticks, tarp or tanned leatherHandsSmall weatherproof storage with a roof.
TentsFound (car tent, medium, large, canopy)NoneHandsBig storage. Pitch and pack them. They persist for weeks if someone visits.
BarrelFoundNoneHandsStorage, dyeing, fire. Persist well.
Wooden cratePlanks + nailsHammerSmall storage that can be buried.
Underground stashCrate or drybag + shovelShovel, pickaxe or hoeBuried storage with no marker. Remember where.
Wire mesh barrierFoundShovel to fillBlocks a doorway or gap.
Camo netFoundHandsHides a tent or vehicle from a distance.
Generator and cableFoundGasolineHandsPowers lights, battery chargers and the code lock charger.
A watchtower and fence base beside a barn.
A watchtower and fence base beside a barn. Official screenshot, © Bohemia Interactive.

Building a fence, step by step

From sticks to a locked gate

  1. Make the kit. Two sticks plus rope. Hold it and place it where the fence goes; it snaps to the ground and shows the frame outline.
  2. Build the base frame. Attach two logs (chop a tree with an axe; logs are heavy, carry one at a time) and build with a hatchet or axe in hand.
  3. Build the upper frame. Two more logs, same tool.
  4. Add panels. Planks (hacksaw on a log) and nails with a hammer, or metal sheets with pliers. Lower panel first, then upper. A fence with only the lower panel can be climbed.
  5. Make it a gate (optional). Attach metal wire and build with pliers. The fence becomes a gate that opens inward.
  6. Lock it. Combination lock (three or four dial) or the official code lock with a 9V battery on the gate. Set your code. The code lock dies when its battery does, so keep a charger running.
  7. Barbed wire (optional). Attach barbed wire to the top or bottom with pliers. Climbing it bleeds.
  8. Flag pole. Place the kit inside the base, build it with logs, nails and wire, raise a flag. Now the base and everything in it persists.

Logs are the slow part. One tree gives a few logs; each fence needs four. Plan small: a walled corner of an existing building is stronger than a field fort and needs a third of the wood.

Locks and raiding

How bases are opened

Combination lock

3 or 4 dials. A raider can brute-force a 3-dial lock in minutes, a 4-dial lock in a long time. Lockpicks also open them with a chance of breaking.

Official code lock (1.30)

PIN entry, runs on a 9V battery, resists damage, escalates protection against guessing, and opens itself when the battery dies. Works on every map. Keep a battery charger on a generator.

Hacksaw

Cuts through a lock, slowly and loudly. Also dismantles planks from the inside only.

Pliers from inside

Fence panels and wire can be dismantled from the inside of the base, which is why a watchtower or a second wall matters.

Explosives

Plastic explosive with a remote detonator, grenades, and improvised explosives from gas canisters or protective cases destroy gates and walls. Loud, rare, decisive.

Boosting

Two players can climb over a fence by standing on each other, a vehicle, or a fence with a missing upper panel. Build the upper panel and add barbed wire.

Glitching

Servers patch it constantly. Build with a buffer wall and assume anything is possible.

Persistence

Why bases vanish

Timers

Every placed item has a lifetime: tents and barrels last weeks, fences and towers last weeks, buried stashes last around two weeks, loose items on the ground a few hours. Interacting with an item resets its timer.

The flag

A raised flag refreshes every object in about 60 metres on a cycle. Lower it, and the clocks start again. Raise it again to reset.

Wipes

Official servers wipe persistence on major updates: 1.30 wiped everything. Community servers set their own schedule.

Server restarts

Restarts do not wipe bases. Crashes sometimes roll back a few minutes.

Hiding

Thick forest, off any road, no fire at night, no path worn into the grass by walking the same way. Bury your real loot away from the base.

Rebuilding (Badlands)

Restoring ruins on Nasdara

Badlands added a second construction system next to fences: rebuilding ruined houses. Nasdara has more than 5,000 wrecked buildings in around twenty variants, mud and stone, and each can be restored room by room into a home with real walls and doors.

  1. Clear the rubble. Interact with debris piles inside and around the ruin. Clearing them gives bricks, stone and wood back.
  2. Gather materials. Bricks and mortar from rubble and hardware spawns, plus logs, planks and metal sheets for the wooden parts. Water for mortar.
  3. Use the trowel. The new trowel builds brick and stone walls; a hammer and nails handle planks; pliers handle sheet metal.
  4. Doors and windows. Install doors (they take the official code lock), board or glaze windows, barricade entrances.
  5. Wells. Broken wells across Nasdara can be repaired with the same materials. On a desert map this is the difference between a base and a grave.
  6. Mix it. Rebuilt buildings and normal fences work together: wall a courtyard, rebuild the house inside it.
A survivor repairs a stone well, a Badlands feature.
A survivor repairs a stone well, a Badlands feature. Official screenshot, © Bohemia Interactive.
A ruined hilltop settlement on Nasdara waiting to be rebuilt.
A ruined hilltop settlement on Nasdara waiting to be rebuilt. Official screenshot, © Bohemia Interactive.

Quick answers

Questions people ask

How do you build a fence in DayZ?

Craft a fence kit from two sticks and rope, place it, attach two logs and build the lower frame with an axe, two more for the upper frame, then add planks with nails and a hammer or metal sheets with pliers.

How do you make a gate in DayZ?

Attach metal wire to a finished fence and build it with pliers. The fence becomes a gate that takes a combination lock or the official code lock.

Why did my base disappear in DayZ?

Persistence timers ran out, or the server wiped. Raise a flag on a flag pole inside the base to refresh everything within about 60 metres, and visit regularly.

How does the DayZ code lock work?

The official code lock, added with Badlands, takes a PIN and runs on a 9V battery. It resists damage and brute-forcing but unlocks itself when the battery dies, so charge batteries on a generator.

Can you rebuild houses in DayZ?

On Nasdara (Badlands), yes: clear rubble from a ruined house, gather bricks, mortar, wood and metal, and rebuild walls, doors and windows with a trowel, hammer and pliers. Broken wells can be repaired too.

Part of the DayZ2.net DayZ Wiki. Facts reflect DayZ as of update 1.30 (October 2026) and can change with patches. Screenshots are Bohemia Interactive's official store media, hosted here with credit. Independent fan site, not affiliated with Bohemia Interactive.

Survival

The basicsWhat’s wrongWeather & bodyFood & waterThreatsGear & travel

Tools

What can I craft?Base calculatorBlood type checkerWeight planner

Tier lists

WeaponsBackpacksArmourLoot by map

Site

HomeNewsDayZ WikiWhat we know about DayZ 2FAQContact