Commands are really useful in Minecraft. But, they are limited in the fact that they can't do conditions.
How this could be added is with a /statement command. How I was thinking it could work is like this:
- /statement if(@s[tag="pizza"]) {summon cat} else if(@s[tag="burger"]) {summon wolf} else {summon parrot}
- /statement while(@a[c=1,tag="some"]) {say This is annoying!}
- /statement for(i=0; i<10; i++) {kill @e[type=item]}
There would also be support for !, <, >, <=, and >= for conditions.
I believe there are more conditional statements than these 3, but the only one I remember is the switch statement, and I don't really know how it works, so I couldn't make a great way of how it would work.
Please sign in to leave a comment.
6 Comments