JavaScript Comes To Minecraft
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."
Pretty sure it had the feature of modifying the world using javascript.
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.
I saw the headline and half expected that someone had in fact implemented a Javascript interpreter with MineCraft.
Don't blame me, I voted for Baltar.
You can already do all this in Java. What is the benefit of exposing players to the wonder of javascript via minecraft vs exposing them to the wonders of java via minecraft? Either one is a POS.
I wish someone would do a C rewrite. People make excuses about the fully manipulable world and such but the reality is that there is nothing going on in minecraft that would make it tax a Pentium 3 without no gpu offloading had it been authored well in a decent language.
Don't get me wrong it's a great game and fun to play. The implementation just leaves a lot to be desired. Buggy as hell too but you can't blame that on the language!
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
No, most importantly for my kid, it has the potential to get a highly JS-capable dad interested in Minecraft (a diversion he has hitherto managed to avoid).
However, whether this be a good thing or a bad one is a matter that's entirely up for debate. :)
Il n'y a pas de Planet B.
Read the article you fucking moron.
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.
Couldn't have said it better myself. It boggles the mind how many don't realize languages can target different run time instances and that *gasp* compilers sometimes are just layered language implementations. One of my college professors wrote a prolog compiler entirely in Java that was a very good compiler actually. Hell if one were so inclined, they could write a C# application that targets a JVM instead of the .NET framework.
Maybe it's just me, but there are so many elegant languages they could have gone with. Maybe a JS engine is easy to implement, but the thought of even using it just makes me shiver. It's a recurring problem though. Unity has JS like language too and people are dead set on using it. Oh well. Better that python i guess.
The Rhino engine has been part an optional extension of the very popular WorldEdit mod for ages. This isn't anything new.
I believe they were referring to the fact that JavaScript is executed on the client and this usage of it is moving it to the server-side... not that the client is written in JavaScript. Go drink some coffee and turn your brain on.
I would imagine this will primarily serve to ostracize the xbox port even further away from mainstream minecrafting.
"Science flies us to the moon. Religion flies us into buildings." - Victor Stenger
I find it amusing that this is news but what about LuaForge? It allows you to do Minecraft stuff in Lua, a language that can't be easier to learn, and is also pretty fast out of the box.
kids who are already hooked
Sounds like the earlier thread about a guy who wanted to get his wife hooked on (a.k.a., addicted to) video games just as he was....
"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.
Please disarm some of those hair-trigger hang-ups (java != javascript!!!11) you have acquired. Indulging that stuff is bad for you and drives people away; a consequence you may not yet understand to be bad.
A kid who learns JavaScript will very much be able to learn compiled languages later on in life if he/she so chooses. You don't have to have been born in the 1960s to become a competent programmer.
Apparently wizard is not a legitimate career path, so I chose programmer instead.
I feel sorry for the Minecraft developers. Have fun with a language that doesn't have a class object system like every other modern mature computer language which makes working in a team environment so much easier.
While we're at it, why don't we introduce PERL to minecraft?
HTML was upgraded to HTML5 and CSS was upgraded to CSS3. Why can't JavaScript be upgraded so it is more in line with modern languages? If that could happen then Google could give up on developing their new DART language which is designed to replace JavaScript.
I don't think there's much hope of that considering the huge similarities with python and considerable disparity in library availability and popularity. I'm not sure there's much awareness of it outside the gaming development community.
"Science can amuse and fascinate us all, but it is engineering that changes the world. " - Asimov.
I don't see how someone reinventing the wheel should get /. coverage. WorldEdit, a very popular plugin, already has javascript integration. Also, check out GroovyBukkit for groovy integration that is incredibly easy to use. I did one-liners in Groovy to, say, lay rail tracks wherever you're standing if you are holding a rail in your hands -- that way you just walk and the tracks follow you. I have a 100-line bot named "David" (named after the Prometheus character) which helps non-op people obtain things without having to bug me all the time -- it's basically a switch statement and a lot of regex. Anyway, back to the point: It is extremely trivial to write a minecraft mod if you know how to code already. Writing a mod that is actually useful and doesn't crash the server -- that's another story. My only advice is to learn how to manage threads (so that uncaught exceptions don't crash the main server thread) and write watchdogs into your code to avoid infinite loops. :-D
-B
Javascript was originally named livescript, but with the sudden and powerful popularity of java, they changed the name to apparently capitalize on the trend.
Python is a decent scripting language, please don't call it inferior to the abomination that is Javascript.
provides a way to get kids who are already hooked on Minecraft to start learning JavaScript
Won't somebody PLEASE think of the children and stop this madness?!
Learn something new.
Not sure how this is a groundbreaking achievement. ComputerCraft already provides a LUA interpreter and turtles, and has a lot more documentation. There's also RedPower's Control module, 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)
#include <signature.h>
I wish he had chosen Jython. But then again, if he implemented it "the right way" using the Java scripting engine, Jython should be pluggable in no time.
Just one more thing in minecraft to keep kids addicted to the computer instead of going out and getting fresh air.
that he picked javascript, the scum at the bottom of the barrel.
While he was scraping up that muck and ladling it out, couldn't he have taken a glance at some of the GOOD languages out there?
Or .. you could be a programmer and use Minecraft's source code that Mojang distributes with every release.
So many times some kid has come up to me and said they wanted to learn to make video games. The trouble is that there's this giant gulf between the multimillion dollar games they play, and what they can actually do with newbie knowledge. When I was a teenager, (80's) I could see a game I loved like say... Ultima or Zork... and understand the steps leading up to me making that game. A little harder to find that maker's connection with Halo, Bioshock, Borderlands, etc. So maybe Minecraft can be a good bridge between the effort of programming and the rewards that are possible. A kid or some coming-up coder might get their feet wet writing some scripting for a game they love. So I'm all for it. Sounds great.