- Attribute components (#253)
This commit is contained in:
27
source/behavior/entities/format/components/attribute.json
Normal file
27
source/behavior/entities/format/components/attribute.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$id": "blockception.minecraft.behavior.entities.minecraft.attribute",
|
||||
"description": "Specifies the initial value of a specific attribute for an entity when spawned.",
|
||||
"type": "object",
|
||||
"title": "Attribute",
|
||||
"additionalProperties": false,
|
||||
"required": [],
|
||||
"properties": {
|
||||
"min": {
|
||||
"type": "number",
|
||||
"description": "The minimum starting health an entity has.",
|
||||
"title": "Minimum",
|
||||
"minimum": 0
|
||||
},
|
||||
"max": {
|
||||
"type": "number",
|
||||
"description": "The maximum starting health an entity has.",
|
||||
"title": "Maximum"
|
||||
},
|
||||
"value": {
|
||||
"description": "The amount of health an entity to start with by default.",
|
||||
"title": "Value",
|
||||
"$ref": "../types/range_number_type.json"
|
||||
}
|
||||
},
|
||||
"examples": [{ "value": 1, "max": 1 }]
|
||||
}
|
||||
Reference in New Issue
Block a user