Skip to main content

Generate music compositions in Minecraft noteblocks.

Project description

Noteblock generator

Generate music in Minecraft noteblocks.

My projects using this program:

Requirements

  • Minecraft java 1.18+
  • python >= 3.10, < 3.12

Installation:

pip install --upgrade noteblock-generator

Usage

noteblock-generator [-h] [--location [LOCATION ...]] [--orientation [ORIENTATION ...]] [--theme THEME] [--clear] 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
  --clear               clear the space before generating

Path in

Path to a music file, or a folder containing multiple music files.

At this point in time 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).

Clear

--clear will clear the space before generating. This guarantees nothing may be in the way that interferes with the redstones or note blocks. But this option makes the program much slower.

Rule of thumb: Use --clear just to be safe, unless you know what you're doing.

License

This program is given to the public domain. No rights reserved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

noteblock_generator-0.1.6.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

noteblock_generator-0.1.6.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file noteblock_generator-0.1.6.2.tar.gz.

File metadata

  • Download URL: noteblock_generator-0.1.6.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.5.3-arch1-1

File hashes

Hashes for noteblock_generator-0.1.6.2.tar.gz
Algorithm Hash digest
SHA256 f895b640b48012e911fa1e6d4a5ed05ba4a8f4285c4ddd11d6b5d1d74f347686
MD5 32c345ef628771154457c856a0100e34
BLAKE2b-256 3227d5caa456c697a7d86b0f28f12052020931fddd27204f438f5fac07a4eebf

See more details on using hashes here.

File details

Details for the file noteblock_generator-0.1.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for noteblock_generator-0.1.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3daa62e0cf3e915b01c1fd03e66f7c1cc5901ac9feb60536198cf1dd3028d5b
MD5 d74e186273262a073ddad5ed8b6ee792
BLAKE2b-256 b010dd3be990284c8ee9fa98e39d6808496c9fe239915d3d7e0eeaa8cabfd9e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page