Extension of bolt-expressions written in Bolt.
Project description
wicked-expressions
Extension of bolt-expressions written in Bolt.
Introduction
Minecraft version: 1.19.4
This is an extension of the bolt-expressions package. I highly recommend getting accustom to the original before using this one. This package is meant to build upon it by adding more functionality.
from wicked_expressions:api import Scoreboard, Data
score_0 = Scoreboard('test_objective')['$score_0']
data_0 = Data.storage('my_library:internal')['data_0']
score_0 = 123
data_0 = 30
if score_0:
tellraw @a "score_0 == 1"
else:
tellraw @a "score_0 != 1"
if data_0 > score_0:
tellraw @a "data_0 is bigger than 30"
elif data_0 == score_0:
tellraw @a "data_0 is equal to score_0"
Installation
pip install wicked_expressions
Getting started
This package is designed to be used within any bolt
script (either a .mcfunction
or bolt
file) inside a bolt
enabled project.
require:
- bolt
- wicked_expressions
pipeline:
- mecha
Once you've required bolt
and wicked_expressions
, you are able to import the python package's api
module directly inside your bolt scripts.
from wicked_expressions:api import Scoreboard, Data
Now you're free to use the API objects. Create simple and complex expressions, compare storages with scores, scores with scores, check if scores exist and more.
Documentation
Check the docs out here.
Features
- Most if not all the functionality of bolt-expressions.
- Built in score & data comparison using python's comparison operators.
- Useful functions and methods especially for bolt library developers such as
.store()
and.get()
. - Anonymous runtime variables.
- DataStash feature allowing per-entity data.
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 wicked_expressions-0.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1b2fb6e58554ac2cc76d02620be4faf11d489869fc6db30023f2ab6eef9fef5 |
|
MD5 | aa1403c8e73adac7dd4a9dd821fca829 |
|
BLAKE2b-256 | ba6b041d37fef33df0b236fe6f2d2729e36268881f2ccc18ef8dfbc137b36d10 |