This project is a Python script that generates a Minecraft decoder schematic using the mcschematic
library. The script allows you to create a redstone decoder dynamically based on the number of bits you specify. It uses redstone wires, wool, redstone repeaters, and redstone torches to construct the decoder.
- Automatically generates a redstone decoder with a one-block gap between wires.
- Dynamically positions wires and components based on the number of bits.
- Saves the schematic in the format compatible with Minecraft Java Edition 1.20.
-
Install the required library:
- Install
mcschematic
using pip:pip install mcschematic
- Install
-
Run the script:
- Modify the
n_bits
parameter in thegenerate_decoder
function to specify the number of bits for the decoder. - Execute the script to generate the schematic:
python decoder_generator.py
- Modify the
-
Import the schematic into Minecraft:
- Use tools like WorldEdit or MCASelector to import the generated schematic (
decoder_with_gap.schem
) into your Minecraft world.
- Use tools like WorldEdit or MCASelector to import the generated schematic (
- Repeaters: You need to manually add repeaters after every 15 redstone wires to avoid signal loss.
- Glass Towers: Glass towers for vertical signal stacking need to be added manually. This can be done easily using tools like MCEdit.
- Generate the decoder schematic using the script.
- Use MCEdit or similar tools to:
- Add repeaters every 15 redstone wires.
- Add glass towers for vertical stacking if needed.
- Save and import the modified schematic into your Minecraft world.
Special thanks to Sloimay, the developer of the mcschematic
library, for creating this incredible tool that made this project possible.
This project is licensed under the MIT License. See the LICENSE file for details.