updated readme to include new download link and website - builds go to distinct timestamp dir
This commit is contained in:
parent
5b473d9c93
commit
6f51e28947
2 changed files with 16 additions and 8 deletions
10
README.md
10
README.md
|
@ -5,9 +5,9 @@ A Minecraft mod that lets you create mods using Javascript.
|
||||||
Description
|
Description
|
||||||
===========
|
===========
|
||||||
ScriptCraft is a plugin for Minecraft Servers which lets
|
ScriptCraft is a plugin for Minecraft Servers which lets
|
||||||
operators/administrators/plug-in authors customize the game using
|
operators, administrators and plug-in authors customize the game using
|
||||||
Javascript. ScriptCraft makes it easier to create your own mods. Mods
|
Javascript. ScriptCraft makes it easier to create your own mods. Mods
|
||||||
can be written in Javscript and use the full Bukkit API. The
|
can be written in Javscript and can use the full Bukkit API. The
|
||||||
ScriptCraft mod also lets you enter javascript commands at the in-game
|
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
|
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
|
`js ` followed by any javascript statement. E.g. `/js 1+1` will print
|
||||||
|
@ -99,7 +99,7 @@ the Bukkit ScriptCraft plugin...
|
||||||
* `self` - The player/command-block or server console operator who invoked the js command. Again, this is a good jumping off point for diving into the Bukkit API.
|
* `self` - The player/command-block or server console operator who invoked the js command. Again, this is a good jumping off point for diving into the Bukkit API.
|
||||||
* `server` - The top-level org.bukkit.Server object. See the [Bukkit API docs][bukapi] for reference.
|
* `server` - The top-level org.bukkit.Server object. See the [Bukkit API docs][bukapi] for reference.
|
||||||
|
|
||||||
[dl]: http://walterhiggins.net/blog/files/scriptcraft/
|
[dl]: http://scriptcraftjs.org/download
|
||||||
[api]: http://jd.bukkit.org/apidocs/org/bukkit/plugin/java/JavaPlugin.html
|
[api]: http://jd.bukkit.org/apidocs/org/bukkit/plugin/java/JavaPlugin.html
|
||||||
[ib]: http://wiki.bukkit.org/Setting_up_a_server
|
[ib]: http://wiki.bukkit.org/Setting_up_a_server
|
||||||
[cbdl]: http://dl.bukkit.org/downloads/craftbukkit/
|
[cbdl]: http://dl.bukkit.org/downloads/craftbukkit/
|
||||||
|
@ -108,6 +108,8 @@ the Bukkit ScriptCraft plugin...
|
||||||
Further Reading
|
Further Reading
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
ScriptCraft has [its own website][website] with further information.
|
||||||
|
|
||||||
* To get started using ScriptCraft to Learn Javascript I recommend [reading this][yp].
|
* To get started using ScriptCraft to Learn Javascript I recommend [reading this][yp].
|
||||||
* The ScriptCraft [API documentation][api].
|
* The ScriptCraft [API documentation][api].
|
||||||
* To delve deeper into creating your own minecraft mod, I recommend [reading this][mm].
|
* To delve deeper into creating your own minecraft mod, I recommend [reading this][mm].
|
||||||
|
@ -119,3 +121,5 @@ You can find more information about [ScriptCraft on my blog][blog].
|
||||||
[yp]: http://walterhiggins.net/blog/YoungPersonProgrammingMinecraft
|
[yp]: http://walterhiggins.net/blog/YoungPersonProgrammingMinecraft
|
||||||
[mm]: http://walterhiggins.net/blog/ScriptCraft-1-Month-later
|
[mm]: http://walterhiggins.net/blog/ScriptCraft-1-Month-later
|
||||||
[api]: https://github.com/walterhiggins/ScriptCraft/blob/master/docs/api.md
|
[api]: https://github.com/walterhiggins/ScriptCraft/blob/master/docs/api.md
|
||||||
|
[website]: http://scriptcraftjs.org/
|
||||||
|
|
||||||
|
|
14
build.xml
14
build.xml
|
@ -6,7 +6,11 @@
|
||||||
<property name="dist" location="target/" />
|
<property name="dist" location="target/" />
|
||||||
|
|
||||||
<target name="init">
|
<target name="init">
|
||||||
<tstamp/>
|
<tstamp>
|
||||||
|
<format property="DSTAMP"
|
||||||
|
pattern="yyyy-MM-dd"
|
||||||
|
locale="en,UK"/>
|
||||||
|
</tstamp>
|
||||||
<mkdir dir="${build}"/>
|
<mkdir dir="${build}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -14,7 +18,7 @@
|
||||||
<javac includeantruntime="false" srcdir="${src}" destdir="${build}" classpath="${bukkit-lib}" />
|
<javac includeantruntime="false" srcdir="${src}" destdir="${build}" classpath="${bukkit-lib}" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="gendocs" description="Generate API documentation">
|
<target name="gendocs" depends="init" description="Generate API documentation">
|
||||||
<javac includeantruntime="false" srcdir="src/docs/java"/>
|
<javac includeantruntime="false" srcdir="src/docs/java"/>
|
||||||
<java classname="jscript" failonerror="true" fork="true" output="docs/api.md">
|
<java classname="jscript" failonerror="true" fork="true" output="docs/api.md">
|
||||||
<classpath>
|
<classpath>
|
||||||
|
@ -25,7 +29,7 @@
|
||||||
</java>
|
</java>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="zip_js">
|
<target name="zip_js" depends="init">
|
||||||
<zip zipfile="${build}/js-plugins.zip" basedir="./src/main/javascript"/>
|
<zip zipfile="${build}/js-plugins.zip" basedir="./src/main/javascript"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
@ -39,7 +43,7 @@
|
||||||
</replace>
|
</replace>
|
||||||
|
|
||||||
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
|
||||||
<jar jarfile="${dist}/scriptcraft-${bukkit-version}-${DSTAMP}.jar" basedir="${build}"/>
|
<jar jarfile="${dist}/${DSTAMP}/ScriptCraft.jar" basedir="${build}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean" description="clean up" >
|
<target name="clean" description="clean up" >
|
||||||
|
@ -50,6 +54,6 @@
|
||||||
<delete>
|
<delete>
|
||||||
<fileset dir="${craftbukkit}/plugins/" includes="scriptcraft*.*"/>
|
<fileset dir="${craftbukkit}/plugins/" includes="scriptcraft*.*"/>
|
||||||
</delete>
|
</delete>
|
||||||
<copy file="${dist}/scriptcraft-${bukkit-version}-${DSTAMP}.jar" todir="${craftbukkit}/plugins"/>
|
<copy file="${dist}/${DSTAMP}/ScriptCraft.jar" todir="${craftbukkit}/plugins"/>
|
||||||
</target>
|
</target>
|
||||||
</project>
|
</project>
|
||||||
|
|
Reference in a new issue