Replaceblocks Console Command
Swap one block type, or a whole material, for another across a base or vessel with replaceblocks, remove a block type in bulk, and what to check first.
replaceblocks (Admin) swaps every block of one type on a structure for another type, for example ordinary windows for armored ones or wood for concrete, on a BA, CV, SV or HV. It is meant for Creative and single player: the command itself says not to run it on a server. How to open the console: How Do I Use Console Commands?.
The command
replaceblocks entity ID source target, optionally followed by an index.
- Entity ID: the number that di or ents shows, without brackets. Leading zeros may be left out, so 00001016 and 1016 both work, and Error parsing entity id means it was mistyped. Finding IDs: Structure and Entity Commands.
- Source and target: block names as they are written after Name: in BlocksConfig.ecf, for example ConcreteArmoredFull, capitals or not, or block ID numbers. With di switched on, aim at a block to see its name.
- Index: for blocks with parent blocks, such as windows and shutters. 1 is the parent for large-block structures (BA, CV) and 0 the one for small-block vessels (SV, HV); without an index a block keeps the one it has.
A whole material at once
A material group name changes every shape of a material in one command, matching the shapes by their place in the two groups. For large blocks: WoodBlocks, ConcreteBlocks, ConcreteArmoredBlocks, PlasticLargeBlocks, HullLargeBlocks, HullArmoredLargeBlocks, HullCombatLargeBlocks, AlienLargeBlocks and AlienBlocks. For small blocks: PlasticSmallBlocks, HullSmallBlocks, HullArmoredSmallBlocks and HullCombatSmallBlocks. You can still convert one shape set at a time, such as WoodExtended3 to ConcreteExtended3; keep the same set on both sides, or the shapes change.
Removing a block type
Use empty, air or 0 as the target to clear every block of the source type, for example all container extensions.
Before you start
- There is no undo, not even the build menu's Undo. Save a blueprint of the structure first.
- When source and target differ in size, or the target is not allowed on that structure type, the command only warns and then runs anyway.
- Not every material offers the same textures, so a change of material can lose textures you applied.
Updated 2026-11-30