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
|
||||
===========
|
||||
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
|
||||
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
|
||||
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
|
||||
|
@ -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.
|
||||
* `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
|
||||
[ib]: http://wiki.bukkit.org/Setting_up_a_server
|
||||
[cbdl]: http://dl.bukkit.org/downloads/craftbukkit/
|
||||
|
@ -108,6 +108,8 @@ the Bukkit ScriptCraft plugin...
|
|||
Further Reading
|
||||
===============
|
||||
|
||||
ScriptCraft has [its own website][website] with further information.
|
||||
|
||||
* To get started using ScriptCraft to Learn Javascript I recommend [reading this][yp].
|
||||
* The ScriptCraft [API documentation][api].
|
||||
* 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
|
||||
[mm]: http://walterhiggins.net/blog/ScriptCraft-1-Month-later
|
||||
[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/" />
|
||||
|
||||
<target name="init">
|
||||
<tstamp/>
|
||||
<tstamp>
|
||||
<format property="DSTAMP"
|
||||
pattern="yyyy-MM-dd"
|
||||
locale="en,UK"/>
|
||||
</tstamp>
|
||||
<mkdir dir="${build}"/>
|
||||
</target>
|
||||
|
||||
|
@ -14,7 +18,7 @@
|
|||
<javac includeantruntime="false" srcdir="${src}" destdir="${build}" classpath="${bukkit-lib}" />
|
||||
</target>
|
||||
|
||||
<target name="gendocs" description="Generate API documentation">
|
||||
<target name="gendocs" depends="init" description="Generate API documentation">
|
||||
<javac includeantruntime="false" srcdir="src/docs/java"/>
|
||||
<java classname="jscript" failonerror="true" fork="true" output="docs/api.md">
|
||||
<classpath>
|
||||
|
@ -25,7 +29,7 @@
|
|||
</java>
|
||||
</target>
|
||||
|
||||
<target name="zip_js">
|
||||
<target name="zip_js" depends="init">
|
||||
<zip zipfile="${build}/js-plugins.zip" basedir="./src/main/javascript"/>
|
||||
</target>
|
||||
|
||||
|
@ -39,7 +43,7 @@
|
|||
</replace>
|
||||
|
||||
<!-- 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 name="clean" description="clean up" >
|
||||
|
@ -50,6 +54,6 @@
|
|||
<delete>
|
||||
<fileset dir="${craftbukkit}/plugins/" includes="scriptcraft*.*"/>
|
||||
</delete>
|
||||
<copy file="${dist}/scriptcraft-${bukkit-version}-${DSTAMP}.jar" todir="${craftbukkit}/plugins"/>
|
||||
<copy file="${dist}/${DSTAMP}/ScriptCraft.jar" todir="${craftbukkit}/plugins"/>
|
||||
</target>
|
||||
</project>
|
||||
|
|
Reference in a new issue