FarmingCoopAsset
Documentation for the FarmingCoopAsset asset type.
Location
Farming/Coops
Use in Your Files
Add this to your JSON files for IDE autocompletion and validation:
"$schema": "https://hytaledb.ginco.gg/schemas/FarmingCoopAsset.schema.json" Schema
MaxResidents
integer
ProduceDrops objectnull
Additional properties
Any of
ResidentSpawnOffset
Vector3d
ResidentRoamTime arraynull
Array items: unknown
CaptureWildNPCsInRange
boolean
WildCaptureRadius
NullableNumberOrSpecial
AcceptedNpcGroups arraynull
Array items: unknown
All of
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "FarmingCoopAsset.json",
"title": "FarmingCoopAsset",
"description": "FarmingCoopAsset asset type",
"type": "object",
"allOf": [
{
"$ref": "base.schema.json"
}
],
"properties": {
"MaxResidents": {
"type": "integer",
"default": 0
},
"ProduceDrops": {
"type": [
"object",
"null"
],
"additionalProperties": {
"anyOf": [
{
"type": "string",
"title": "Reference to ItemDropList"
},
{
"$ref": "ItemDropList.json#"
}
]
}
},
"ResidentSpawnOffset": {
"default": {
"X": 0,
"Y": 0,
"Z": 0
},
"$ref": "common.schema.json#/$defs/Vector3d"
},
"ResidentRoamTime": {
"type": [
"array",
"null"
],
"title": "IntRange",
"items": [
{
"type": "integer"
},
{
"type": "integer"
}
],
"minItems": 2,
"maxItems": 2
},
"CaptureWildNPCsInRange": {
"type": "boolean",
"default": false
},
"WildCaptureRadius": {
"$ref": "base.schema.json#/$defs/NullableNumberOrSpecial"
},
"AcceptedNpcGroups": {
"type": [
"array",
"null"
],
"items": {
"anyOf": [
{
"type": "string",
"title": "Reference to NPCGroup"
},
{
"$ref": "NPCGroup.json#"
}
]
}
}
}
}