Small refactor of information
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
"$id": "blockception.minecraft.behavior.entities.filters.has_damage",
|
||||
"type": "object",
|
||||
"title": "Has Damage",
|
||||
"description": "Returns true when the subject entity receives the named damage type.",
|
||||
"description": "Returns true when the subject entity receives the named damage type. has_damage can also use subject and operator parameters but they are optional.",
|
||||
"required": ["value"],
|
||||
"examples": [{ "test": "has_damage", "value": "fatal" }],
|
||||
"properties": {
|
||||
"test": { "type": "string", "title": "Test Property", "description": "Returns true when the subject entity receives the named damage type." },
|
||||
"operator": { "$ref": "./types/operator.json" },
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"speed_multiplier": { "$ref": "./types/speed_multiplier.json" },
|
||||
"damage_sources": {
|
||||
"type": "array",
|
||||
"items": { "$ref": "../../../../general/entity_damage.json" },
|
||||
"items": { "$ref": "../../../../general/entity/damage_source.json" },
|
||||
"default": [["all"]],
|
||||
"description": "The list of Entity Damage Sources that will cause this mob to panic",
|
||||
"title": "Damage Sources"
|
||||
|
||||
@@ -38,12 +38,12 @@
|
||||
"title": "Damage Sources",
|
||||
"description": "The list of Entity Damage Sources that will cause this mob to start playing dead.",
|
||||
"oneOf": [
|
||||
{ "type": "string", "$ref": "../../../../general/entity_damage.json" },
|
||||
{ "type": "string", "$ref": "../../../../general/entity/damage_source.json" },
|
||||
{
|
||||
"type": "array",
|
||||
"items": {
|
||||
"title": "Damage Source",
|
||||
"$ref": "../../../../general/entity_damage.json"
|
||||
"$ref": "../../../../general/entity/damage_source.json"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -42,8 +42,9 @@
|
||||
},
|
||||
"properties": {
|
||||
"triggers": {
|
||||
"description": "The list of triggers that fire when the environment conditions match the given filter criteria.",
|
||||
"title": "Triggers",
|
||||
"description": "The list of triggers that fire when the environment conditions match the given filter criteria.",
|
||||
"examples": [[{ "cause": "all", "deals_damage": false }]],
|
||||
"oneOf": [
|
||||
{ "type": "array", "items": { "$ref": "#/definitions/trigger" } },
|
||||
{ "type": "object", "$ref": "#/definitions/trigger" }
|
||||
|
||||
Reference in New Issue
Block a user