.. highlight:: xml ========================= Package description files ========================= The package description files are written in XML. Thus you can edit them with any text editor. But an editor with syntax highlighting is recommended. The root element of every description is `mod`:: ... In the root element can contain the following elements: * name -- Name of the package(required):: MyMod * author -- Name of the author(required):: Nobody * version -- Version of the package(required):: 1.2.0 * revision -- Revision of the description file(increment after edit by one):: 3 * mcversion -- Version of Minecraft, for which the package is made for(required):: 1.1.0 * shortdesc -- Short description of the package(optional):: This is doing something cool * description -- Long description of the package(optional):: This is doing this and that. It can also do ... * dependencies -- List of dependencies. Can contain zero or more `dependency` elements(required) * dependency -- Name of a dependency(optional):: ... * downloads -- List of downloads(required) * download -- URL of the download. Specify target name with attribute `name` and in case the user has to download the file, use the `user` attribute:: http://adf.ly/... * install -- List of instructions to install the package(required) * descr -- Description of one step. Set the type using the `type` attribute(The types are listed at :ref:`install-desc`):: ... .. _install-desc: Install Descriptions -------------------- Currently there are the following types: * source2jar -- Copies files from a source to the minecraft.jar. Fields: * source -- The source * from -- File/Folder to copy. Leave empty to copy everything in the source. * to -- Where to place them. Leave it empty to copy it to the root directory. :: somesource * zip2source -- Creates a source from a zip files contained in another source * source -- The source * from -- The zip file * target -- The name of the source to create :: somes folder/Core.zip core * download2source -- Creates an source from an downloaded file * download -- The filename of the download * target -- The name of the source to create :: mymod.zip MyMod