Stevertus / mcscript

A programming language for Minecraft Vanilla
https://mcscript.stevertus.com
MIT License
233 stars 16 forks source link

A boolean if/else statement doesn't include "entity" in the execute command #30

Open theTisch21 opened 3 years ago

theTisch21 commented 3 years ago

Hi! I discovered a bug: When writing an if/else statement that uses a boolean variable, the generator does not include the word "entity" inside the "unless" execute statement that was generated for the "else" statement, causing the datapack to not run. Here's an example: My code: image Generated output: image Expected output: image

vichvich4444 commented 3 years ago

Can confirm.