Merge branch 'master' of https://github.com/walterhiggins/ScriptCraft
This commit is contained in:
commit
8a65765f08
1 changed files with 16 additions and 4 deletions
20
README.md
20
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.
|
||||
|
||||
|
@ -13,12 +12,24 @@ 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,
|
||||
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 +44,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
|
||||
=============
|
||||
|
|
Reference in a new issue