Generate music compositions in Minecraft noteblocks.
Project description
Noteblock generator
Generate music in Minecraft noteblocks.
This program is only intended for my own use, and shared only for others to replicate my builds.
See my projects:
- Handel's He trusted in God
- Bach's Sind Blitze, sind Donner
- Bach's Herr, unser Herrscher
- Mozart's Confutatis
- Mozart's Dies irae
Requirements
- Minecraft java 1.19+
- python 3.10+
Installation:
pip install --upgrade noteblock-generator
Usage
noteblock-generator [-h] [--location [LOCATION ...]] [--orientation [ORIENTATION ...]] [--theme THEME] [--blend] path_in path_out
positional arguments:
path_in path to music source file(s)
path_out path to Minecraft world
options:
-h, --help show this help message and exit
--location [LOCATION ...] build location (in x y z); default is ~ ~ ~
--dimension DIMENSION build dimension; default is player's dimension
--orientation [ORIENTATION ...] build orientation (in x y z); default is + + +
--theme THEME opaque block for redstone components; default is stone
--blend blend the structure in with its environment
Path in
Path to a music file, or a folder containing multiple music files.
This program is only intended for my own use, so there is no documentation for writing music files. Follow the build from source
instructions in my projects in order to replicate my builds.
Path out
Path to a Minecraft world save folder.
Location
The location where the structure will be generated.
This uses Minecraft's relative coordinates syntax, where ~
stands for the player's location. For example, --location ~ ~ ~
(default) is the player's current location, --location ~ ~10 ~
is 10 blocks above the player, etc.
Notes: In Unix operating systems, ~
is a special character that stands for the home directory, make sure to escape it.
Dimension
The dimension where the structure will be generated.
Valid choices are overworld
, the_nether
, the_end
.
If not given, it will be the player's current dimension.
Orientation
In which direction, from the aforementioned location, the structure will be generated.
--orientation + + +
(default) means the structure will be generated towards the positive x, positive y, positive z directions.
All valid orientations are + + +
, + + -
, + - +
, + - -
, - + +
, - + -
, + + +
, + + -
, + - +
, + - -
.
Note: Make sure there is enough space in your specified direction in order to generate. The program cannot generate below bedrock, or above the height limit, etc. For example, if you are at y=-64, --location ~ ~ ~ --orientation + - +
will not work.
Theme
Choose a block that can conduct redstones to theme the structure. Default is stone
.
Consult Minecraft's documentation for what blocks can conduct redstone and their technical names (java version).
Blend
By default, the program will clear the entire space before generating. With --blend
, it will place noteblocks and redstone components where they need to be and leave the rest as-is.
This is an experimental feature. If the redstones and/or noteblocks don't behave as expected, turn it off.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for noteblock_generator-0.1.7.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d539eab4d1ac85bd4ef04bce41f85c5dbe300d619bc7565067bc2b040616564 |
|
MD5 | eac76e4bcc29ecfdc9e5741947e8bef6 |
|
BLAKE2b-256 | aa1c6ee1fe6aad0220d55b77b430f20c8a2f5a0947f5f98d64c09cdf788d45d8 |
Hashes for noteblock_generator-0.1.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62ee686365e3a5cefb7e39c770de1997e107bb1871f0a098b58eba73ca127150 |
|
MD5 | 442be4bcd08a013e23b60bdb5ce1758c |
|
BLAKE2b-256 | 991ea759b8bbbb75ba15bc936d9ffc187122c9f646f0c490830ac28cc2175b10 |