From 0682a5e69a390e19781186a14c344732bff1f4f1 Mon Sep 17 00:00:00 2001 From: Walter Higgins Date: Thu, 2 Jan 2014 10:37:34 +0000 Subject: [PATCH 1/2] Tweaked text in first paragraphs. --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 353a5ed..eea9584 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ # Let's begin... I created ScriptCraft to make it easier for younger programmers to -create their own Minecraft Mods. ScriptCraft makes it easier for new -programmers to create Minecraft mods. Mods are written using the -Javascript programming language and once the ScriptCraft mod is +create their own Minecraft Mods. Mods are written using the +Javascript programming language. Once the ScriptCraft mod is installed, you can add your own new Mods by adding Javascript (.js) files in a directory. @@ -18,7 +17,7 @@ files in a directory. ScriptCraft is a plugin for Minecraft Servers which lets operators, administrators and plug-in authors customize the game using Javascript. ScriptCraft makes it easier to create your own mods. Mods -can be written in Javscript and can use the full Bukkit API. The +can be written in Javscript and can use the full [Bukkit API][bukkit]. The ScriptCraft mod also lets you enter javascript commands at the in-game prompt. To bring up the in-game prompt press the `/` key then type `js ` followed by any javascript statement. E.g. `/js 1+1` will print @@ -33,6 +32,7 @@ Minecraft. [drone]: https://github.com/walterhiggins/ScriptCraft/tree/master/src/main/javascript/drone/drone.js [cottage]: https://github.com/walterhiggins/ScriptCraft/tree/master/src/main/javascript//drone/cottage.js +[bukkit]: http://dl.bukkit.org/ Prerequisites ============= From 1a247ecf1b140569d9880d52f85292e33f26a36a Mon Sep 17 00:00:00 2001 From: Walter Higgins Date: Thu, 2 Jan 2014 10:44:26 +0000 Subject: [PATCH 2/2] added simple plugin source --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index eea9584..39e7ff5 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,18 @@ files in a directory. then [Start Here][cda]. * Watch some [demos][ytpl] of what you can do with ScriptCraft. +This is a simple mod in a file called greet.js in the scriptcraft/plugins directory... + + exports.greet = function( player ) { + player.sendMessage('Hello ' + player.name ); + }; + +At the in-game prompt, type... + + /js greet(self) + +... to see the greeting. Anything you can do using CraftBukkit's API in Java, you can do using ScriptCraft in Javascript. + # Description ScriptCraft is a plugin for Minecraft Servers which lets operators,