Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Creators
Details
VoxelCleaner
VoxelCleaner is a Minecraft mod designed to provide powerful voxel-based editing capabilities via in-game commands. With features like room generation, area hollowing, history tracking (undo/redo), loot management, and block protection, it is an essential tool for creators, map builders, and server admins.
Table of Contents
- Features
- Installation
- Usage
- Configuration
- Examples
- Troubleshooting
- Dependencies
- Contributors
- License
Features
- 🧱 Room Generation: Generate rooms of specified width, height, and depth with a single command.
- 🕳️ Area Hollowing: Clear out volumes while preserving outer shell blocks.
- ♻️ Undo/Redo: Revert or reapply world changes with history tracking.
- 🎁 Loot Management: Break blocks, spawn chests, and auto-distribute loot.
- 🔒 Block Protection: Prevents modification of protected blocks like spawners and blocks with entities.
- 🧰 Command Utilities: Utility methods to assist with player and block targeting in commands.
Installation
- Install Fabric Loader for Minecraft.
- Install the Fabric API.
- Download the
VoxelCleanermod JAR and place it in yourmodsfolder. - Launch the game using the Fabric profile.
Usage
Main Commands
/voxelcleaner
Alias: /vc
Clears (hollows) a rectangular area in front of the player.
/voxelcleaner <width> <height> <depth>
/voxelcleaner <width> <height> <depth> <material>
/voxelcleaner <width> <height> <depth> <material> <force>
/voxelcleaner <width> <height> <depth> <material> <force> <loot>
Parameters:
width– Inner width of the areaheight– Inner height of the areadepth– Inner depth of the areamaterial(optional) – Block used for the outer shellforce(optional, boolean) – Removes protected blocksloot(optional, boolean) – Collects drops into chests
/voxelroom
Alias: /vr
Creates a fully built room with walls, floor, and ceiling.
/voxelroom <width> <height> <depth> <walls> <floor> <ceiling>
/voxelroom <width> <height> <depth> <walls> <floor> <ceiling> <force>
/voxelroom <width> <height> <depth> <walls> <floor> <ceiling> <force> <loot>
Parameters:
width– Inner width of the roomheight– Inner height of the roomdepth– Inner depth of the roomwalls– Wall blockfloor– Floor blockceiling– Ceiling blockforce(optional, boolean) – Overrides protected blocksloot(optional, boolean) – Collects removed blocks into chests
History Commands
/voxelundo
Alias: /vcu
Undoes the last voxel action.
/voxelundo
/voxelundo <count>
/voxelredo
Alias: /vcr
Redoes previously undone voxel actions.
/voxelredo
/voxelredo <count>
/voxelhistory
Alias: /vch
Displays the command history for the current player.
/voxelhistory
/voxelhistory <count>
Notes
- All commands are player-only (cannot be executed from console).
- Undo/redo works per player and per dimension.
forceandlootdefault tofalseif not specified.- Protected blocks (block entities, spawners) are preserved unless
force = true.
Configuration
All constants are centralized in VoxelConfig.java. Notable configuration options:
public static final int MAX_W = 64;
public static final int MAX_H = 64;
public static final int MAX_D = 64;
public static final int MAX_ACTIONS_PER_PLAYER = 10;
public static final int MAX_HISTORY_LINES = 20;
public static final String TIMEZONE = "America/New_York";
Adjust these values to fine-tune player limits, history depth, and size constraints.
Examples
# Hollow out a 10x5x10 area using default material
/voxelcleaner 10 5 10
# Hollow out a 10x5x10 area with stone shell and collect loot
/voxelcleaner 10 5 10 minecraft:stone true true
# Create a 7x4x7 room using different blocks for walls, floor, and ceiling
/voxelroom 7 4 7 minecraft:oak_planks minecraft:birch_planks minecraft:glass
# Create a 7x4x7 room and override protected blocks
/voxelroom 7 4 7 minecraft:oak_planks minecraft:birch_planks minecraft:glass true
# Undo the last 2 voxel actions
/voxelundo 2
# Redo the last undone voxel action
/voxelredo 1
# View the last 5 voxel actions for the current player
/voxelhistory 5
Troubleshooting
- ❗ Commands not recognized? Make sure the mod is loaded and you're using the Fabric profile.
- ❗ Block edits not working? Ensure you're not targeting protected blocks (e.g., spawners, blocks with entities).
- ❗ Undo stack not working? Check
VoxelConfig.MAX_ACTIONS_PER_PLAYERto ensure history is enabled for players.
Dependencies
- Minecraft (Fabric)
- Fabric API
- Brigadier (Minecraft’s command parser)
- Minecraft Server Classes (for block, entity, world management)
Contributors
- Jason Oltzen – Author and core developer
License
This work is released under the Creative Commons CC0 1.0 Universal (CC0 1.0) Public Domain Dedication.



