Jump to content




What if MC commands would use LUA?


5 replies to this topic

Poll: Youre thoughts

Would you like the MC command syntax replaced with lua syntax?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote

#1 Jummit

  • Members
  • 306 posts
  • LocationJulfander Squad Studio

Posted 25 September 2017 - 07:38 AM

I always was frustrated when I coded with the MC commands, because they are so difficult to program with. First, they were only commands that were two words long, and then they started to add (BAD) syntax for more complex code.

Would you like the MC command syntax replaced with lua syntax?

Here is a code snippet of how a command would look like:
MC syntax:
time set day
LUA syntax:
time.set(day)
-- day is a variable
time.set(1000)
-- time needs a number

say word
time set 1000
command argument argument […]
would mean
say(word)
time.set(1000)
command.argument(argument)
If the command requires more then one argument it change does that automatically

Why do you like the old syntax/prefer the lua syntax? What would you like to have as MC command syntax?

Edited by Jummit, 27 September 2017 - 05:51 AM.


#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 25 September 2017 - 01:28 PM

Considering you can do

commands.tellraw("@p", {text="Hello!", bold=true})

I feel there is no reason to change the syntax.

#3 Jummit

  • Members
  • 306 posts
  • LocationJulfander Squad Studio

Posted 26 September 2017 - 09:40 AM

View PostKingofGamesYami, on 25 September 2017 - 01:28 PM, said:

Considering you can do

commands.tellraw("@p", {text="Hello!", bold=true})

I feel there is no reason to change the syntax.
This has nothing to do with CC. I had the idea from the command computer, and thought that it would be cool to have this in vanilla.

#4 CLNinja

  • Members
  • 191 posts

Posted 26 September 2017 - 03:15 PM

View PostJummit, on 26 September 2017 - 09:40 AM, said:

View PostKingofGamesYami, on 25 September 2017 - 01:28 PM, said:

Considering you can do

commands.tellraw("@p", {text="Hello!", bold=true})

I feel there is no reason to change the syntax.
This has nothing to do with CC. I had the idea from the command computer, and thought that it would be cool to have this in vanilla.

But why? Commands in almost every game have always been /<command> [args]. Changing it would mean everyone would have to relearn how to do stuff.

#5 Jummit

  • Members
  • 306 posts
  • LocationJulfander Squad Studio

Posted 26 September 2017 - 03:33 PM

View PostCLNinja, on 26 September 2017 - 03:15 PM, said:

View PostJummit, on 26 September 2017 - 09:40 AM, said:

-snip-

But why? Commands in almost every game have always been /<command> [args]. Changing it would mean everyone would have to relearn how to do stuff.
Yes, thats true. But really, advanced commands can get very tricky. And maybe you could make some sort of syntactic sugar that works for commands that go like
say word
time set 1000
command argument argument […]
would mean
say(word)
time.set(1000)
command.argument(argument)
If the command requires more then one argument it does that automatically

Edited by Jummit, 26 September 2017 - 04:36 PM.


#6 LDDestroier

  • Members
  • 1,094 posts
  • LocationACDC Town

Posted 05 October 2017 - 10:34 PM

I feel like having a /lua command would be okay. But not a total rework of the minecraft command syntax.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users