Live data from Hacker News

ScriptCraft: Building cool things using Javascript in Minecraft

walterhiggins.net

21–30 of 34 posts

Re: ScriptCraft: Building cool things using Javascript in Minecraft

#21
post #10

This is cool, but for the server it is already possible to use a number of scripting languages. By using the Bukkit server mod, which provides a stable plugin API, it is relatively easy to add a wrapper around a scripting engine [0]. For example, a plugin providing Rhino support [2] and one providing python support [2]. I would recommend either porting your work to the Bukkit framework, or working with one of the exi…

Bukkit plugins require running a separate server and giving the kids access to the server. Doesn't seem as practical as a client mod if you're trying to make it kid friendly.

Re: ScriptCraft: Building cool things using Javascript in Minecraft

#22

Earlier quoted context omitted.

I'm currently introducing my 10 year old niece to programming using ComputerCraft, a single player mod that introduces several programmable objects in to the Minecraft world. Installing is a bit of an exercise, because it requires Forge, but it is otherwise worth it. I recommend using MCPatcher to load Forge, then just drop the ComputerCraft zip in to the /mods folder inside your Minecraft data folder. http://www.com…

Using MagicLauncher[1] makes it much easier. 1: http://www.minecraftforum.net/topic/939149-launcher-magic-la...

Wow! Thanks so much for that link.

One of the downsides of the diversity in the Minecraft modding community is that it can be difficult to identify the "best" way to do something. New tools come and go, and compatibility wanes when new releases hit.

Re: ScriptCraft: Building cool things using Javascript in Minecraft

#23

Considering how much of Minecraft can be about grinding for resources or MCMMO levels... imagine being able to script the player, or even being allowed "bot teammates" you can script! Since that part of it could run on just the client (minus small interface stuff on the server for clients to request basic info and send player input), you could go all out with as much advanced AI as you can muster, without draining th…

We wrote a library to do just that (sorry): https://github.com/minefold/node-minecraft

It needs a small fixes to work with the current version of Minecraft but it's pretty feature complete. We were using it internally for load testing (until we made our architecture support multiple games).

Re: ScriptCraft: Building cool things using Javascript in Minecraft

#24

Cool. As a matter of fact, about a week ago I tried to do something similar by trying to integrate Python with Minecraft. I actually did expose the full Bukkit API to Python (easy enough to do), so all its commands are available. I didn't really like the "type your code in Minecraft chat"-approach many similar projects were/are taking (i.e. "/js myCodeHere()" in chat) and wanted a proper interpreter window. To integr…

I wrote a bot a year or so ago which implemented a very basic subset of Turtle / LOGO using python for minecraft classic and a repl. When the newer protocol came out, I stopped working on it after the protocol changed but it was a fun exercise.

Re: ScriptCraft: Building cool things using Javascript in Minecraft

#25

Considering how much of Minecraft can be about grinding for resources or MCMMO levels... imagine being able to script the player, or even being allowed "bot teammates" you can script! Since that part of it could run on just the client (minus small interface stuff on the server for clients to request basic info and send player input), you could go all out with as much advanced AI as you can muster, without draining th…

http://www.computercraft.info/

There exists a mod that lets you build mining turtles, script-able in lua. If you really want to destroy your time, look up the Technic modpack-it has all sorts of awesome stuff like that.

Re: ScriptCraft: Building cool things using Javascript in Minecraft

#26
I am a Minecraft server owner (http://craftworksfactionrpg.net) and I've used a scripting plugin extensively to add server-side functionality to my server. The plugin is called 'Skript', http://dev.bukkit.org/server-mods/skript, and has a fairly large exposure of Bukkit APIs.

With this, I've created an entirely custom RPG class plugin, and a complete dungeon editor.

Problem was, with the 1.4.6 update, Skript stopped working in some areas so I've been forced to go into Eclipse and write Java with the bukkit APIs directly. For someone with experience, jumping into Bukkit plugin development was a piece of cake, but I was able to build out very very very sophisticated plugins with Skript before the update broke it.

Re: ScriptCraft: Building cool things using Javascript in Minecraft

#27

Cool. As a matter of fact, about a week ago I tried to do something similar by trying to integrate Python with Minecraft. I actually did expose the full Bukkit API to Python (easy enough to do), so all its commands are available. I didn't really like the "type your code in Minecraft chat"-approach many similar projects were/are taking (i.e. "/js myCodeHere()" in chat) and wanted a proper interpreter window. To integr…

http://dev.bukkit.org/server-mods/python-plugin-loader/

I have been using a python-bukkit plugin layer for quite some time for a lot of small administrative plugin tasks on my private server. You should check out his project, it's on github.

Re: ScriptCraft: Building cool things using Javascript in Minecraft

#28
post #10

This is cool, but for the server it is already possible to use a number of scripting languages. By using the Bukkit server mod, which provides a stable plugin API, it is relatively easy to add a wrapper around a scripting engine [0]. For example, a plugin providing Rhino support [2] and one providing python support [2]. I would recommend either porting your work to the Bukkit framework, or working with one of the exi…

Bukkit plugins require running a separate server and giving the kids access to the server. Doesn't seem as practical as a client mod if you're trying to make it kid friendly.

The author mentioned It makes it possible for Minecraft Server administrators to create interesting places for players to come and play.

I agree a client mod is a great place to have this functionality, but if it is being done on the server as well then using a framework like Bukkit is a great choice.

For one thing, the author complained about obfuscation making it difficult to expose different functions in the game. Bukkit provides a stable API, so it makes sense for a scripting wrapper to expose those functions, and by doing so gain a lot of functionality.

Re: ScriptCraft: Building cool things using Javascript in Minecraft

#29
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).

Re: ScriptCraft: Building cool things using Javascript in Minecraft

#30
post #10

This is cool, but for the server it is already possible to use a number of scripting languages. By using the Bukkit server mod, which provides a stable plugin API, it is relatively easy to add a wrapper around a scripting engine [0]. For example, a plugin providing Rhino support [2] and one providing python support [2]. I would recommend either porting your work to the Bukkit framework, or working with one of the exi…

RedStoneTorch looks very interesting.
Post reply on HN