walterh

Joined 14 years ago

Karma
79
Submissions
24
Member since
Feb 23
Programmer and Author. http://walterhiggins.net/blog http://www.peachpit.com/store/beginners-guide-to-writing-minecraft-plugins-in-javascript-9780133930146
View on Hacker News

Recent submissions

Comment · 6 years ago
It has a trackpoint!
Comment · 12 years ago
Comment · 14 years ago
Comment · 14 years ago
I've implemented ScriptCraft as a bukkit plugin now. Bukkit's API and plug-in deployment mechanism is sweet. ScriptCraft and Bukkit are really well suited.
Comment · 14 years ago
RedStoneTorch looks very interesting.
Comment · 14 years ago
It looks like Bukkit might be a perfect fit for ScriptCraft. Bukkit seems to have wrappers around a lot proprietary minecraft code. The ability to use those wrappers in Javascript would mean that once ScriptCraft was installed, futher Bukkit plugins could be written entirely in Javascript (no need for java).
Comment · 14 years ago
Agreed. It makes sense for admins to be able to build using javascript but would lead to accidental/deliberate griefing if all players on a server had it.
Comment · 14 years ago
I would love if the Minecraft guys provided Javascript scriptability without the need for a mod.
Comment · 14 years ago
Hi Dan, Adding in-game scriptability means you can do some serious in-game world building with a little knowledge of Javascript. I haven't used out-of-game tools like mcedit. I personally like the ability to prototype at the in-game command prompt. E.g...

  /js box('35:15',4,9,1)
...creates a 2001 Monolith at the current location. The real power of ScriptCraft though is its ability to load and execute javascript files containing functions, and the ability to easily extend the Drone class. E.g.

  // file monolith.js 
  Drone.extend('monolith',function(){
      return this.box('35:15',4,9,1);
  });
After loading monolith.js, players can do the following to create 3 monoliths...

  /js monolith().right(6).monolith().right(6).monolith()
I've provided a couple of example scripts but it will be interesting to see what players do with this.
Comment · 14 years ago
/js box(5,6,3,7)

creates a wooden block 6 wide by 3 tall by 7 long.

/js box0(5,6,3,7)

creates an empty box 6 x 3 x 7

/js load()

opens a file chooser dialog so you can load your own scripts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton