Skip to content

Issue with watch and booleans in if #44

@birran237

Description

@birran237

When I use mcscript watch in the terminal, after defining a variable, it tells me that the variable has already been defined, when it’s the only line of code. However, when I use mcscript compile instead, it gives me no error.

Apart from that, when I put a Boolean into an if,it doesn’t parse well the command. But when I negate it, it works correctly, here’s an example:
Mcscript code:
If(ready @s){ Run say hi }
The output is:
Execute if ready run say hi
when it should be:
Execute if entity @s[tag=ready] run say hi. But when negated, it gives the proper unless statement

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions