Function library for the Bolt scripting language.
Project description
lightning-rod
Function library for the Bolt scripting language.
Introduction
Minecraft version: 1.19.4
This library features an API for the minecraft commands, usually improved by adding dynamic support or even adding new abstract functions.
from lightning_rod:api import Bossbar, set_level, random
# example of OOP bossbars ^^
bb = Bossbar()
bb.name = 'gas prices'
bb.color = 'red'
bb.show()
# example of dynamic level setting at runtime ^^
set_level(random(5, 20))
Installation
pip install lightning_rod
Getting started
The library is designed to be used within any bolt
script (either a .mcfunction
or bolt
file) inside a bolt
enabled project.
require:
- bolt
- lightning_rod
pipeline:
- mecha
Once you've required bolt
and lightning_rod
, you are able to import the package's api
module directly inside your bolt script.
Most of the imports come from the lightning_rod:api
module as shown below.
from lightning_rod:api import random, sqrt
Now you're free to use the API!
Documentation
Coming soon...
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
Hashes for lightning_rod-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d96597520216e5bfc00ad7a39c816491c2de48cc49e76071534282352260479 |
|
MD5 | 190e5c1fafd25fda91a85a9b110c78f2 |
|
BLAKE2b-256 | bba9113a4abcd7b254a98ec493e450db4285e01418440668a5ccc0070cbaf7b0 |