Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more ways to assert data #4

Open
aksiome opened this issue Mar 9, 2024 · 0 comments
Open

Add more ways to assert data #4

aksiome opened this issue Mar 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@aksiome
Copy link

aksiome commented Mar 9, 2024

Description

Testing numbers with the data command is always a bit tedious. I was thinking that this could be simplified using the same interface as for scores.

Proposition

The assert data command could be expanded to also support matches with float ranges and operators like for the score version. This would of course only work with numbers.

Example:

assert data storage foo bar matches 1.5..1.6
assert data storage foo bar < storage bar baz

Edit: i spotted a small mistake in the readme. (checks NBT data using the same syntax as execute if score) should atm be (checks NBT data using the same syntax as execute if data)

@misode misode added the enhancement New feature or request label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants