HomeJavaDatapacksStructure Block Tools
Structure Block Tools
DatapacksJava

Structure Block Tools

by Conure512 · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Data pack only.

⬇ Download for 1.21–26.2⬇ Download for 1.20.5–1.20.6
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Structure Block Tools — screenshot 1

Structure Block Tools

This datapack gives the player several ways to edit the contents of a Structure Block bounding box, designed to be used when creating custom structure datapacks!

How to Use

A full video explaining how to use the datapack can be found HERE

COMMANDS

Recommended command to run when you first install the datapack:

/gamerule commandModificationBlockLimit 110592

(this is the max possible volume of a structure bounding box)

Select Structure Block - Run this command while standing on top of the structure block

/function sbtools:select_structure_block

(this can also be accomplished by just right-clicking the block with a Blaze Rod)

Deselect Current Structure Block

/function sbtools:deselect_structure_block

All "Fill" commands will apply to the selected structure block's entire bounding box without the need for numerical input

Dynamic Fill - Acts a bit like the "Paint Bucket" in pixel art programs. The function's origin (usually the location where the player is standing) will be the starting point. dynamic_fill_voids and dynamic_fill_water replace only air by default.

/function sbtools:dynamic_fill_voids
/function sbtools:dynamic_fill_water
/function sbtools:dynamic_fill {fill:"[block to fill]",replace:"[block to replace]"}

Replace Fill - Replaces all instances of one block with another inside the bounding box

/function sbtools:replace_fill_voids
/function sbtools:replace_fill_water
/function sbtools:replace_fill {fill:"[block to fill]",replace:"[block to replace]"}

Total Fill - Completely fills the bounding box with the specified block

/function sbtools:total_fill_air
/function sbtools:total_fill_voids
/function sbtools:total_fill_water
/function sbtools:total_fill {fill:"[block to fill]"}

Note that for the fill and replace parameters in macros, block states {fill:"minecraft:oak_log[​axis=y]"} do work, and for replace, block tags {replace:"#minecraft:logs"} also work!

DO NOT run any of the commands that begin with sbtools:util/..., as these are "under-the-hood" functions and may break things if executed by a player.

Read more on the PlanetMinecraft Page

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more