Forgot your password?
typodupeerror
Programming Games News

JavaScript Comes To Minecraft 149

Posted by samzenpus
from the try-it-out dept.
mikejuk writes "JavaScript is the language of the client and it is becoming the language of the server. Now it seems set to be the language of Minecraft. ScriptCraft is a Minecraft mod that can be added to the game to allow the player to use JavaScript commands. Walter Higgins ported the Rhino JVM implementation of JavaScript in a few spare weeks over Xmas. Some additional JavaScript classes allow the construction of blocks making it possible to automate construction. It also provides a 'turtle like' drone class that makes it easier to move in 3D. It makes use of a fluent API to create a domain specific language for movement. As its creator says: 'Ultimately I think the ScriptCraft mod could be used to take building in Minecraft to a whole new level. With a full-blown language at the Player's disposal, it should be possible to create not just castles and forts but entire road networks and cities.' Most importantly of all, it not only pushes the boundary of Minecraft, it also provides a way to get kids who are already hooked on Minecraft to start learning JavaScript."
This discussion has been archived. No new comments can be posted.

JavaScript Comes To Minecraft

Comments Filter:
  • by The MAZZTer (911996) <.megazzt. .at. .gmail.com.> on Monday January 21, 2013 @02:33PM (#42650003) Homepage
    RTFS. Just because Java and JavaScript appear in the same paragraph doesn't mean someone is equating the two. This is a JavaScript engine coded in Java, hooked up to Minecraft.
  • by vlm (69642) on Monday January 21, 2013 @03:10PM (#42650411)

    Does python still use whitespace as part of control flow structures? Ugh. I don't want to be the guy who posts the equivalent of "mysql doesn't have transactions" over and over in 2013, but I can't be bothered to keep up with a language I don't use, either.

    It is however a fact that Python at least USED TO BE in a really bad neighborhood, sandwiched in between COBOL and FORTRAN in the "compiler really cares a lot about whitespace" ghetto, even if they've fixed it since then. I'd rather write a million parenthesis in LISP.

  • by CastrTroy (595695) on Monday January 21, 2013 @03:12PM (#42650435) Homepage
    There's nothing inherently special about Java that makes it able to run games on Windows/Linux any more than C/C++. If the programmers set out to make a program that will run on both, it will run on both. If they just assume it will work on Linux, or have no intention of it running on Linux, then it doesn't matter if it's written in Java, C or .Net, it won't run on Linux.
  • by Anonymous Coward on Monday January 21, 2013 @03:18PM (#42650485)

    "JavaScript is the language of the client and it is becoming the language of the server. Now it seems set to be the language of Minecraft."

    translated : "Javascript is a language that is often used in client side programs, and increasingly is used in server side applications. And soon it may also be usable within minecraft." Hell the second sentence makes it pretty clear that the first sentence isn't even talking about minecraft.

  • Hardly revolutionary (Score:5, Informative)

    by Mercano (826132) <mercano@g[ ]l.com ['mai' in gap]> on Monday January 21, 2013 @04:32PM (#42651113)
    Not sure how this is a groundbreaking achievement. ComputerCraft [computercraft.info] already provides a LUA interpreter and turtles, and has a lot more documentation. There's also RedPower's [eloraam.com] Control module [wikispaces.com], that gives you an emulated 6502-based 8 bit computer. A FORTH boot disk can be crafted in-game, or you can edit your save files to bring in either an BASIC boot disk or your own assembler code. (Previous /.coverage of the 6502 emulator blocks [slashdot.org])
  • by Zmobie (2478450) on Monday January 21, 2013 @05:46PM (#42651773)

    No, not in this case. You must not be very familiar with java and its runtime. Java is DESIGNED to be extremely portable and is in fact one of the biggest reasons it was able to rise up and compete with C++ originally. I have ported many programs in java from a Windows Eclipse environment to a Linux native compiler and both of them produce virtually the same files, the compiled files actually ran on both environments without a recompile pretty much every time that I remember.

    C++ on the other had can be a BEAST to try and port even trivial programs between Windows and Linux, and in my early college days proved to be a pain in the ass because we standardized all of our programs compilations to the gcc and g++ Linux compilers while I was used to doing a lot of my coding using either Borland or Visual Studios on a Windows machine (Visual Studios has its own weird flavors as it is, but even more generic compilers had nasty results).

Two is not equal to three, even for large values of two.

Working...