This Python script is a workaround for the 32x32x32 block size limit of Minecraft structure blocks by automatically generating multiple structure files and corresponding functions. It allows users to create larger structures by specifying the desired dimensions, name, namespace, and directories through a user-friendly GUI.
- This script generates a bunch of structures, and 2 mcfunctions.
- The structures form a grid of structure blocks pre-configured to copy as large of an area as you want. You need to go through each one and all you have to do is click copy and then break the block.
- The first mcfunction places and configures all the blocks.
- After you copy you're area, if you don't change the names in the structure blocks, you can use the second function to place the entire structure. Stand one block above where you placed the grid of structure blocks and run the place command and it will place it.
- Generates multiple structure files (NBT) to overcome the 32x32x32 block size limit
- Creates corresponding functions to place and configure the structure blocks in the Minecraft world
- Provides a user-friendly graphical interface for inputting parameters
- Allows users to specify custom dimensions, name, namespace, and directories for the generated files
- Python 3.10 (only one I've tested in)
nbtlib
librarytkinter
library
- Clone the repository or download the source code.
- Install the required dependencies by running the following command:
pip install nbtlib
- Run the script using the following command:
python main.py
- The graphical user interface (GUI) will open.
- Enter the desired dimensions (width, height, depth) for your structure.
- Provide a name for your structure.
- (Optional) Enter a namespace for the structure blocks.
- (Optional) Enter a suffix for the generated structure files.
- Select the directory where you want to save the generated structure files.
- Select the directory where you want to save the generated function files.
- Click the "Generate" button to generate the structure files and functions.
- The script will generate the necessary files and display a success message.
- Structure Files: The script generates multiple NBT files containing structure_void blocks based on the specified dimensions. The files are saved in the selected structure directory.
- Function Files:
place_structures.mcfunction
: This function file contains commands to place and configure the structure blocks in the Minecraft world. This automatically turns the structure blocks to save mode, creates the areas they need to save, and names them. all you need to do it hit save and break the block.place-<structure_name>.mcfunction
: This function file contains commands to place the structures using the/place
command. It places the structures that are created with the first mcfunction.
- The script generates structure files containing only structure_void blocks for copying larger areas than structure block allow. It doesn't copy entities by default.
- The generated functions assume a specific relative position for placing the structures. You may need to adjust the coordinates in the functions based on your desired placement location.
This project is licensed under the GNU General Public License v3.0.
- The script utilizes the
nbtlib
library for working with NBT files. - The graphical user interface is created using the
tkinter
library.
Feel free to contribute, report issues, or suggest improvements!
Support me or see my other projects: https://ko-fi.com/notfamous