Jump to content




Midnightas' Lua Preprocessor (Adds many new features to Lua)

utility java lua

  • You cannot reply to this topic
25 replies to this topic

#21 Midnightas

  • Members
  • 44 posts

Posted 10 March 2017 - 06:50 PM

View Postsupernicejohn, on 10 March 2017 - 06:47 PM, said:

Why only numbers? Would be cool to see something really powerful, like all data types mixed together, that would be really useful!
Also I'd say drop the 'if' at the end of the line, but we'll see what others think of it.
The numbers are just an example. Any expression can be thrown in there.
Yeah, the "if" makes it a lot more verbose.

#22 hbomb79

  • Members
  • 352 posts
  • LocationOrewa, New Zealand

Posted 10 March 2017 - 08:17 PM

Perhaps?

switch someNumber
  case 1 then
  
  case 2 then
 
  default then
end


#23 Midnightas

  • Members
  • 44 posts

Posted 10 March 2017 - 09:15 PM

View PostHbomb_79, on 10 March 2017 - 08:17 PM, said:

Perhaps?

switch someNumber
  case 1 then
  
  case 2 then

  default then
end
Oh yeah, I completely forgot about the default case :P
That actually looks very clean. 'll do that!

#24 Midnightas

  • Members
  • 44 posts

Posted 11 March 2017 - 08:18 AM

v1.14!
I don't remember much I've added, but looking at the commit changes, I've added a switch statement and some bug fixes.
Download and "switch" tutorial in the main post.

#25 Midnightas

  • Members
  • 44 posts

Posted 15 May 2017 - 10:22 PM

Beta 1.15! Honestly it should've been 1.2 already.
Added a stream API, documentation in the now-updated main post
Other things have been added

#26 Midnightas

  • Members
  • 44 posts

Posted 19 November 2017 - 10:28 AM

I completely rewrote MLua from scratch, since the old implementation was way to buggy, and wasn't even a superset of Lua.
Anyways, after a couple of bug fixes and updates, I might discontinue this, since I've lost faith in Minecraft after the Better Together update.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users