The Lord of the Rings Minecraft Mod Wiki
(Added Data Pack Templates page)
Tags: Source edit U36
 
mNo edit summary
Tags: Source edit U36
Line 1: Line 1:
This is a list of all the template [[Data packs|data packs]] created by [[User:LOTRMod|Mevans]] to demonstrate some of the mod's custom datapack systems. These can be used to help understand the file structure when creating your own data packs for the mod.
+
This is a list of all the template [[Data_Packs|data packs]] created by [[User:LOTRMod|Mevans]] to demonstrate some of the mod's custom datapack systems. These can be used to help understand the file structure when creating your own data packs for the mod.
   
 
Listed below are all the current data pack templates:
 
Listed below are all the current data pack templates:

Revision as of 23:19, 13 May 2021

This is a list of all the template data packs created by Mevans to demonstrate some of the mod's custom datapack systems. These can be used to help understand the file structure when creating your own data packs for the mod.

Listed below are all the current data pack templates:

Data pack Templates

Defaults Begone

Mod Version: Snapshot 2.13

Purpose:
Illustrates all possible _settings.jsons files, each removing at least one resource. Used to remove default mod resources.

Technical Explanation:

Example 1: data/lotr/map/roads/_settings.json

{
  "remove_namespaces": [ "lotr" ],
  "remove_singles": []
}

Will exclude all roads in the lotr: namespace, i.e. all the mod's default roads plus any added by any other datapacks in that namespace.


Example 2: data/lotr/map/waypoints/_settings.json

{
  "remove_namespaces": [],
  "remove_singles": [ "lotr:minas_tirith", "lotr:bree", "england:floating_oxford" ]
}

Will exclude the given waypoints if they exist. There will be a _settings.json present in each of these folders: - map/waypoints - map/roads - map/labels - factions - factions/regions This lets you remove all the default waypoints, or all the default roads, etc. by changing a single file for your datapack, instead of needing to replace loads of file with empty json.