Class ServerEntityConfig
- Namespace
- Vintagestory.ServerMods.NoObf
- Assembly
- VSEssentials.dll
Specific configuration settings for entities on the server-side.
public class ServerEntityConfig
- Inheritance
-
ServerEntityConfig
Examples
"server": {
"behaviors": [
{
"code": "passivephysics",
"groundDragFactor": 1,
"airDragFactor": 0.25,
"gravityFactor": 0.75
},
{
"code": "despawn",
"minSeconds": 600
}
]
},
Fields
SpawnConditions (Recommended) (Default: None)
The spawn conditions for the entity. Without this, the entity will not spawn anywhere.
[JsonProperty]
public SpawnConditions SpawnConditions
Field Value
Attributes (Optional) (Default: None)
A set of server-side attributes passed to the entity.
[JsonProperty]
[JsonConverter(typeof(JsonAttributesConverter))]
public JsonObject Attributes
Field Value
Behaviors (Optional) (Default: None)
A list of all server-side behaviors for the entity.
[JsonProperty(ItemConverterType = typeof(JsonAttributesConverter))]
public JsonObject[] Behaviors