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.20.1

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

The library 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 package's api module directly inside your bolt script.

Most of the imports come from the wicked_expressions:api module as shown below.

from wicked_expressions:api import Scoreboard

Now you're free to use the API. Use simple and complex expressions, compare expressions and have access to many more features of the library!

Documentation

Docs available 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.9.0.tar.gz (12.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.9.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wicked_expressions-0.9.0.tar.gz
  • Upload date:
  • Size: 12.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.31.0 requests-toolbelt/1.0.0 urllib3/2.0.2 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13

File hashes

Hashes for wicked_expressions-0.9.0.tar.gz
Algorithm Hash digest
SHA256 dd9804a6278360c0ef5828b80768990a55afdedd695c06244b6e3774a31c2c34
MD5 4194fb3aa03b5579137245c6a530b276
BLAKE2b-256 a790f865f59716df9ab440e75c65b0889ddb0ff47a5326d7dbbfd74302b50ffd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wicked_expressions-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 16.4 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.31.0 requests-toolbelt/1.0.0 urllib3/2.0.2 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.13

File hashes

Hashes for wicked_expressions-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed983a910c2b8efa44df0a3ddfa2371f9bacc6486ee002801eea35a1cce19bd4
MD5 9e1ff6baab3a7972f46339f496c369bd
BLAKE2b-256 ff5a117320c0feb43b83d23063fcf281a60d37761f8cbf92690f5868828a3c5b

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