Pack Making General Master File - DonBruce64/MinecraftTransportSimulator GitHub Wiki

For MTS to even consider something as a pack, it must have a packdefinition.json file inside of it. This file tells MTS the packID, what files to load, and where they will be found. This file also controls dynamic loading, which allows packs to only load specific components if specific mods or packs are present. The packdefinition.json file contains the following parameters:

  • packID – The ID for your pack. This must be unique!
  • packName – A name for your pack. Used in GUIs and creative tabs.
  • packItem – The name of the item that will be the icon for the creative tab. Leave blank to have the icon cycle through all items.
  • fileStructure – A number that represents the file structure of this pack. 0 is default, 1 is layered, and 2 is modular.
  • externalSkinsInOwnTab – If this is true, then any skins added by any packs for content in this pack will appear in their tab rather than this pack's tab.
  • internalSkinsInOwnTab – If this is true, then any skins added by this pack for other packs will appear in this pack's tabs rather than the other pack's tabs.
  • activators – A mapping of sub-directories to lists that tells MTS what packs or mods are required to load packs from the specified sub-directory. This is a key-list mapping, where the key is the sub-directory, and the list is a list of one or more mods or packs that must be present to load files from this sub-directory. A list with no entries implies that files from this sub-directory will always be loaded (unless blocked by a blocker).
  • blockers – Like activators, but instead MTS will block loading files from this directory if the a pack or mod in the list is loaded. Allows for switching of loading if a mod is present from one directory to another.
  • dependents – This list contains a list of dependents, of which one of them must be installed for your pack to be functional. If MTS detects that none of the packs in this list are present, it will block access to your creative tab and the crafting GUIs and warn the player that they are missing one of the packs. Note that this list is a β€œone of many”, in that you can list multiple packs in here and as long as one is installed, the user can use your pack. This is done to allow packs without core parts like engines or wheels to ensure that there is another pack that provides these parts, while not locking the player into a specific pack itself.