Supercharge Minecraft commands with Python
Project description
Bolt
Supercharge Minecraft commands with Python.
infinite_invisibility = {
Id: 14,
Duration: 999999,
Amplifier: 1,
ShowParticles: false,
}
def summon_chicken_army(n):
for i in range(n):
summon chicken ~i ~ ~ {
Tags: [f"quack{i}"],
IsChickenJockey: true,
Passengers: [{
id: zombie,
IsBaby: true,
ActiveEffects: [infinite_invisibility]
}]
}
say Go forth, my minions!
summon_chicken_army(16)
Installation
The package can be installed with pip
.
$ pip install bolt
Contributing
Contributions are welcome. Make sure to first open an issue discussing the problem or the new feature before creating a pull request. The project uses poetry
.
$ poetry install
You can run the tests with poetry run pytest
.
$ poetry run pytest
The project must type-check with pyright
. If you're using VSCode the pylance
extension should report diagnostics automatically. You can also install the type-checker locally with npm install
and run it from the command-line.
$ npm run watch
$ npm run check
The code follows the black
code style. Import statements are sorted with isort
.
$ poetry run isort bolt tests
$ poetry run black bolt tests
$ poetry run black --check bolt tests
License - MIT
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
File details
Details for the file bolt-0.49.1.tar.gz
.
File metadata
- Download URL: bolt-0.49.1.tar.gz
- Upload date:
- Size: 53.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.6 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40cd165e6eb438161cc8cd91fbebc90672169ee7114a3a79d3351e127a08dec7 |
|
MD5 | c9cc5b89af8b7925187c521652886727 |
|
BLAKE2b-256 | 399595561e424e41850389b1e4a03cde86d8ac367878b7aa677dc1ea5de5eedb |
File details
Details for the file bolt-0.49.1-py3-none-any.whl
.
File metadata
- Download URL: bolt-0.49.1-py3-none-any.whl
- Upload date:
- Size: 59.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.6 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912496abb4ed2593db1e44ec6655685d63d0003ee7218a2740ce91ad8ad9e36e |
|
MD5 | cd9e3eb0e64ef3f7a7f056522f2abb5e |
|
BLAKE2b-256 | 9c61a147da5f0278c2b299eed14c7ea4b55420307fbcf794fec8db8b6adface6 |