ModelAsset
Documentation for the ModelAsset asset type.
Location
Models
Use in Your Files
Add this to your JSON files for IDE autocompletion and validation:
"$schema": "https://hytaledb.ginco.gg/schemas/ModelAsset.schema.json" Schema
Model
stringnull
Texture
stringnull
GradientSet
stringnull
GradientId
stringnull
Icon
stringnull
IconProperties unknown
Any of
Light unknown
Any of
PhysicsValues unknown
Any of
MinScale
number
MaxScale
number
EyeHeight
number
HitBox
Box
DetailBoxes objectnull
Additional properties: array
CrouchOffset
number
Camera unknown
Any of
DefaultAttachments arraynull
Array items: ModelAttachment
RandomAttachmentSets objectnull
Additional properties: object
AnimationSets objectnull
Additional properties: AnimationSet
Particles arraynull
Array items: ModelParticle
Trails arraynull
Array items: ModelTrail
Phobia
string
Enum used to specify if the NPC is part of a phobia (e.g. spider for arachnophobia).
PhobiaModelAssetId
stringnull
The model to use if the player has the setting with the matching phobia toggled on.
All of
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "ModelAsset.json",
"title": "ModelAsset",
"description": "ModelAsset asset type",
"type": "object",
"allOf": [
{
"$ref": "base.schema.json"
}
],
"properties": {
"Model": {
"type": [
"string",
"null"
]
},
"Texture": {
"type": [
"string",
"null"
]
},
"GradientSet": {
"type": [
"string",
"null"
]
},
"GradientId": {
"type": [
"string",
"null"
]
},
"Icon": {
"type": [
"string",
"null"
]
},
"IconProperties": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/AssetIconProperties"
},
{
"type": "null"
}
]
},
"Light": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/ColorLight"
},
{
"type": "null"
}
]
},
"PhysicsValues": {
"anyOf": [
{
"default": {
"Mass": 68,
"DragCoefficient": 0.5,
"InvertedGravity": false
},
"$ref": "common.schema.json#/$defs/PhysicsValues"
},
{
"type": "null"
}
]
},
"MinScale": {
"type": "number",
"default": 0.949999988079071
},
"MaxScale": {
"type": "number",
"default": 1.0499999523162842
},
"EyeHeight": {
"type": "number",
"default": 0
},
"HitBox": {
"$ref": "common.schema.json#/$defs/Box"
},
"DetailBoxes": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "array",
"items": {
"$ref": "common.schema.json#/$defs/DetailBox"
}
}
},
"CrouchOffset": {
"type": "number",
"default": 0
},
"Camera": {
"anyOf": [
{
"$ref": "common.schema.json#/$defs/CameraSettings"
},
{
"type": "null"
}
]
},
"DefaultAttachments": {
"type": [
"array",
"null"
],
"items": {
"$ref": "common.schema.json#/$defs/ModelAttachment"
}
},
"RandomAttachmentSets": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "object",
"additionalProperties": {
"$ref": "common.schema.json#/$defs/ModelAttachment"
}
}
},
"AnimationSets": {
"type": [
"object",
"null"
],
"additionalProperties": {
"$ref": "common.schema.json#/$defs/AnimationSet"
}
},
"Particles": {
"type": [
"array",
"null"
],
"items": {
"$ref": "common.schema.json#/$defs/ModelParticle"
}
},
"Trails": {
"type": [
"array",
"null"
],
"items": {
"$ref": "common.schema.json#/$defs/ModelTrail"
}
},
"Phobia": {
"type": "string",
"title": "Phobia",
"description": "Enum used to specify if the NPC is part of a phobia (e.g. spider for arachnophobia).",
"enum": [
"None",
"Arachnophobia",
"Ophidiophobia"
],
"default": "None"
},
"PhobiaModelAssetId": {
"type": [
"string",
"null"
],
"description": "The model to use if the player has the setting with the matching phobia toggled on."
}
}
}