Stevertus / mcscript

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

Support for cross-dimensions #27

Closed SirSmirnoff closed 4 years ago

SirSmirnoff commented 4 years ago

Hi. First off, i'm loving using mcscript! I am making a continuous game, which is spread out between multiple dimensions. Your compiler doesn't seem to like:

in('minecraft:minigames'){
run: say hi
}

so therefore I am having to work around it by doing:

as('@s in minecraft:minigames'){
run: say hi
}

The workaround isn't that annoying, it's not a big deal. My issue is, I am now having to use that extra as @s where it is not needed.

Once again, thanks for providing such an amazing resource. It takes a lot of the repeating out and is generally really clean and easy to use. Retro

Stevertus commented 4 years ago

Thank you for this report. Mcscript has the dimension keyword for this, so you can literally use

dimension('minecraft:minigames'){
run: say hi
}

Nevertheless I´ve also included in as an alias for it in the upcoming version