BlockFrame 🔗
📦 BlockFrame is a Minetest mod that allows you to preview and precisely place blocks (or any item) before putting them in the world.
Ideal for detailed building or testing positions before confirming.
Features 🔗
- Preview blocks with adjustable size, rotation, and mirroring.
- Accepts any item, not only blocks.
- Adjustable snap (grid) for precise positioning.
- Absolute or relative placement to the player's view.
- Undo and delete commands with item return.
- Help and cancel commands.
Commands 🔗
-
/blockframe <args>— Create or update the block preview.
Possible args:size=x,y,z— Block size (1 value = x=y=z)rotate=x,y,z— Rotation in degrees for X, Y, and Z axesmirror=x|y|z— Mirroringpos=x,y,z— Absolute position of the blockstep=value— Snap for aiming
Examples: /blockframe size=0.5 /blockframe size=1,0.5 rotate=0,90,0 /blockframe pos=1,2,3 step=0.1 /blockframe mirror=x rotate=45,0,90
-
/blockframe_set— Place the block in the world based on the preview. -
/blockframe_cancel— Cancel the active preview. -
/blockframe_undo— Remove the last placed block and return the item. -
/blockframe_del— Delete a targeted block and return the item. -
/blockframe_help— Show help with examples.
Mod Files 🔗
blockframe/ ├── init.lua # Complete mod code including preview, placed blocks, commands, and memory ├── README.md # This file └── LICENSE.txt # CC BY 3.0 License
Installation 🔗
- Copy the
blockframefolder into your Minetestmods/directory. - Enable the mod in your world (
world.mtor the mods menu). - Start the world and use
/blockframe_helpto get started.
Example Usage 🔗
-
Hold a block or item.
-
Type: /blockframe size=1,0.5 rotate=0,90,0
-
Adjust the preview using
posorstep. -
Confirm with
/blockframe_set. -
To undo, use
/blockframe_undo.
License 🔗
This mod is distributed under the Creative Commons Attribution 3.0 (CC BY 3.0) license.
You can copy, modify, and use it commercially as long as you give credit to the original author.
More info: https://creativecommons.org/licenses/by/3.0/