ReplaceBlock
ReplaceBlock is a server-side data pack library that replaces blocks across already generated worlds, using commands and storage instead of Java code.
What it does
A datapack traverses the loaded chunks in a configurable range and replaces blocks, working outward from the current chunk until it has cleared one chunk. Replacement pairs are read from a storage ID such as test:test, so a world can be altered after world generation with the vanilla command system.
Server owners who need to swap blocks in an existing world, for example to convert a biome's ground or remove a structure's blocks, can script the change with a reset settings file as the example. The mod is published for Fabric, Forge, NeoForge and Quilt, with the data pack form also available, across 21 release versions, 1.20.3 – 26.3.
The server must run the library, while players may leave it out. The library is open source under the GNU General Public License v3.0 or later, and requires the Localization Resource Pack.
Key features
Replacement through storage
Target blocks and their replacements are stored under a namespaced ID and read by the datapack at run time.
Chunk traversal
Replacement runs chunk by chunk, outward from the current chunk, and the traversal range can be set in the configuration.
Configurable search and success
The search range and the success threshold control how far replacement reaches and when a run counts as complete.
Fallback defaults
Options left out of a configuration fall back to default values, while an invalid value can produce wrong results without a clear error message.
Compatibility
Latest build for each game version and loader.
26.x5 of 5 versions with builds
1.21.x12 of 12 versions with builds
1.20.x4 of 4 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Converting existing worlds
A server can replace blocks in terrain that is already generated, without regenerating chunks.
Who it’s for: Server owners and datapack authors who want to replace blocks through commands and storage, and who can check the configuration options before a run.
Questions
Does ReplaceBlock need to be installed on the client?
Which loaders does ReplaceBlock support?
What does Localization Resource Pack do for ReplaceBlock?
In the catalog
ReplaceBlock is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 8,071 mods support Minecraft 26.3.
More from white_elephant
Similar mods
What the author says
This datapack provides a powerful API that can replace blocks in the world after world generation in a completely vanilla way with high performance. Below, {{storage}} is used as a placeholder for the namespaced ID of your command storage, for example test:test.
Official listing
- Modrinth page
- modrinth.com/mod/replaceblock
- Owner
- white_elephant
- Published
- 2025-11-19
- Updated on Modrinth
- 2026-09-20
- Facts verified
- 2026-10-15
