Terasology/docs/Module.txt.md
Tobias Nett 2d8ef61e80
doc: move wiki content to docsify page (#5155)
* rename docs to docs-pre-merge
* add wiki content based on commit e4d4b10424f24eed6583ea0e998da8aa32a27a3f
* replace wikilinks with markdown links in _sidebar
* use sidebar link text as title via ` autoHeader: true` 
* rename files with `:` or `,` in the name
* use the wiki Home page as entry point instead of the repo README
2023-10-31 14:46:35 +01:00

2 KiB

Module.txt

Contents

  • id - Machine-readable name of the module. Used by the terasology engine and other modules to refer to the module.
  • version - Version of the module. See Module Versioning
  • displayName - The name of the module isplayed to end-users
  • description - Human-readable description of the module.
  • dependencies - List of ids and minVersions of modules needed for this module to work. See Module-Dependencies
  • defaultWorldGenerator - The default world generator to use for this module.

Ways to categorize your module:

  • serverSideOnly - only used on servers
  • isGameplay - defines a game type/mode (mod pack) that may depend on a large number of modules and forces a particular style of play. Unlikely to work well with other gameplay modules. Example: WoodAndStone, LightAndShadow
  • isAugmentation - some sort of plug and play content that can be enabled and seen/played, but doesn't force particular gameplay. Could work in combination with a gameplay module. Example: NightTerrors* isAsset - plain art / passive content module, possibly with basic block/model definitions. Example: LASR, Minerals, Soils
  • isWorld - provides world generation features. Example: AnotherWorld
  • isLibrary - active content for use by other modules. Cannot be used by itself. Typically Component Systems. Example: BlockNetwork
  • isSpecial - Special-purpose modules. Core, Sample, Malicious

Example

{
    "id" : "CoreSampleGameplay",
    "version" : "2.0.0-SNAPSHOT",
    "displayName" : "Core Gameplay",
    "description" : "Minimal gameplay template. Little content but a few starting items.",
    "dependencies" : [
        {"id": "Core", "minVersion": "2.0.0"}
    ],
    "isGameplay" : "true",
    "defaultWorldGenerator" : "Core:FacetedPerlin"
}

More information

Gestalt Modules - In-depth discussion of Modules (non-Terasology-specific)