Documentation

Learn how to install and use LiquidBounce with our comprehensive guides

BedDefender

BedDefender keeps your bed alive in BedWars by automatically placing blocks over it the moment it becomes exposed. When the module is on, it constantly scans the area around you for your own bed, works out which surrounding faces are uncovered, and queues block placements to seal them back up — letting you focus on fighting or bridging while your defense maintains itself.

You decide how thick the wall should be with MaxLayers (1–5 layers of blocks around the bed), and which blocks it's allowed to use: by default it only consumes full solid blocks, picking the hardest, most blast-resistant ones first via the block-slot comparator, so obsidian or end stone is preferred over wool. Because a bed may already be partially covered, it searches a slightly larger area than its reach so it can still find and finish the job — see the bed search and placement logic.

Crucially, BedDefender only acts on your bed, decided by the SelfBed mode. Leave it on None and it won't defend anything; pick Color to identify your bed by the dyed blocks (e.g. armor of a matching color) around it, SpawnLocation to treat the nearest bed within a distance of your spawn as yours, or Manual to bind keys that mark and unmark a specific bed yourself. Placements are ordered innermost layer first, closest gaps prioritized, so the holes nearest the bed get plugged first.

Category: World Enabled by default: No

Settings

SettingTypeDefaultRangeDescription
MaxLayersInteger11..5How many layers of blocks to wrap around the bed. Higher values build a thicker, harder-to-break shell.
AllowChestsTogglefalseWhen on, chests may also be used as defense blocks, not just full solid blocks.
SelfBedMode SelectorNoneNone, Color, SpawnLocation, ManualHow the module decides which bed counts as yours and should be defended. None disables defending.
SelfBed → [Color] → SlotsMulti-Select[Head]Feet, Legs, Chest, HeadWhich armor/equipment slots are checked to match your team color when identifying your bed.
SelfBed → [Color] → LooseTogglefalseWhen on, color matching is more lenient when deciding whether a bed belongs to your team.
SelfBed → [SpawnLocation] → BedDistanceDecimal24.016.0..48.0Maximum distance from your spawn point within which a bed is considered your own.
SelfBed → [Manual] → TrackKeyKey that marks the bed you are looking at / nearest as the one to defend.
SelfBed → [Manual] → UntrackKeyKey that removes a previously marked bed from defense tracking.
PlaceSetting GroupSee Shared: Block Placer.
RequiresSneakTogglefalseWhen on, blocks are only placed while you are holding sneak, giving you manual control over when defending happens.

Last updated: 2026-06-08 — Based on source code