Skip to main content

Extension of bolt-expressions written in Bolt.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

wicked-expressions

GitHub Actions

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


Download files

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

Source Distribution

wicked_expressions-0.4.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

wicked_expressions-0.4.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file wicked_expressions-0.4.2.tar.gz.

File metadata

  • Download URL: wicked_expressions-0.4.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10

File hashes

Hashes for wicked_expressions-0.4.2.tar.gz
Algorithm Hash digest
SHA256 f1dac57d3e1fd3d5263b96b51f133586a5d004bfc3ca4bf6001c5d75c0e2a7bc
MD5 0b8f67591eed617252cb0071e703e731
BLAKE2b-256 9b57ca8d3f072fd857e176d3359bfe2e2055c2b201c1834bc6cd6b8bc8490721

See more details on using hashes here.

File details

Details for the file wicked_expressions-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: wicked_expressions-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.28.2 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/6.0.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.10

File hashes

Hashes for wicked_expressions-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ef5af306545f379b792c51cc41b035ce46867ee544067cb29cb3ff8176c60b88
MD5 9ff6253a27b350d0966e17df374d38a6
BLAKE2b-256 3c7e56d0bd15956d31f8090a046fff49da40d57bdbf16f57747045e7163b485c

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