mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-25 19:55:47 +01:00
Created Common Features for Texture and Model Definition Files (markdown)
parent
35f1bd41c3
commit
e1b18c9451
11
Common-Features-for-Texture-and-Model-Definition-Files.md
Normal file
11
Common-Features-for-Texture-and-Model-Definition-Files.md
Normal file
@ -0,0 +1,11 @@
|
||||
Texture and model definition files follow a number of common formatting and syntax conventions:
|
||||
* All definitions are line-oriented, although some definition lines will dictate the interpretation of following lines.
|
||||
* All lines are processed in the order they are defined in the file
|
||||
* Any line starting with a number sign (#) or semicolon (;) will be treated as a comment, and ignored
|
||||
* Any line may start with a version restriction token, allowing the line only be processed for specific versions of Minecraft or specific versions of the mod associated with the definition file). For Minecraft version restriction, the token is formatted [<lower-bound>-<upper-bound>], where <lower-bound> is the optional minimum Minecraft version matching and <upper-bound> is the maximum Minecraft version matching (e.g. '[1.5.0-1.6.4]' would cause the line to only be processed on Minecraft versions 1.5.0 through 1.6.4, while '[-1.6.4]' would be processed on any version up to 1.6.4, and '[1.5.2-]' would be processed on any version starting with 1.5.2). For mod version restriction, the format is similar : '[mod:<lower-bound>-<upper-bound>]'.
|
||||
|
||||
Both texture and model definition files support the following definition lines, which generally are placed at the start of the definition file:
|
||||
* 'version:' - If defined, this specifies a global restriction on the Minecraft version. The line is formatted 'version:<lower-bound>-<upper-bound>', with the <lower-bound> indicating the minimum supported Minecraft version and <upper-bound> specifying the maximum version (either bound can be omitted to not have an associated minimum or maximum version). If the range specified by the constraints does not match the server's version, processing of the definition file will abort and will not be used.
|
||||
* 'modname:' - If defined, this specifies the name of the mod associated with the definition file. This is case sensitive, and must match the name used in the mod itself. If the mod uses different names (for different versions, for example), more than one name can be provided (with commas used to separate the list). Optionally, each name can be followed by a mod version constraint, formatted as '[<lower-bound>-<upper-bound]' (as above). In this event, the definition file will only be used if the mod with the given name is installed AND has a version matching the given constraint. For example, "modname:BiomesOPlenty[-0.5.8]" would cause the definition file to only be used if the BiomesOPlenty mod is installed, and has a version of 0.5.8 or earlier.
|
||||
* 'cfgfile:' - If defined, this specifies the relative path and file name to use to find the configuration settings for the mod (assuming the format is standard for Minecraft Forge mod configuration files). This causes the associated configuration file to be loaded, and symbols to be defined for the various settings within the file (in particular, for the IDs configured for the various block IDs). See 'Configuration Settings' for the details on how these settings are mapped.
|
||||
* 'var:' - If defined, this allows default values to be defined for symbols that may not be defined in the configuration file (e.g. block IDs for blocks that were not defined in older versions of the mod). The fields defined are formatted as a comma-separated list of '<attrib-id>=<number>' pairs (e.g. 'var:template.id=0,architect.id=0,pathMarker.id=0'). If any 'var:' lines need to be defined, they should be defined BEFORE the 'cfgfile:' lines (otherwise, they may replace the values loaded from the configuration file).
|
Loading…
Reference in New Issue
Block a user