Skip to content

Datapack Info

Skylar Sommers edited this page Sep 8, 2019 · 1 revision

Resources for CivResources can be added via datapacks.

The location for Resources is <domain>/mccivilizations/resources/<name>.json

All fields in the Json Object are optional and will default.

Fields

Name Type Required Default Value Additional Info
name Text Component False Translation (mccivilization.resources.<domain>.<name>) See The MC Wiki
group Text Component False Translation (mccivilization.resources.bundle) See The MC Wiki
max Long False Long.MAX_LONG
min Long False 0

Examples

{

}
{
  "name": {
    "translate": "mccivilizations.resource.test.wheat"
  },
  "group": {
    "translate": "mccivilizations.resource.test.bushel"
  },
  "max": 100,
  "min": -100
}

Clone this wiki locally