packtest
packtest copied to clipboard
Add more ways to assert data
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)