Skip to content

Add more ways to assert data #4

@aksiome

Description

@aksiome

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions