Small refactor of information

This commit is contained in:
DaanV2
2021-10-08 13:59:05 +02:00
parent 0184a67dd3
commit 9e2badace5
5 changed files with 7 additions and 46 deletions

View File

@@ -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" },

View File

@@ -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"

View File

@@ -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"
}
}
]

View File

@@ -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" }

View File

@@ -1,41 +0,0 @@
{
"$id": "blockception.minecraft.general.1.8.0.entity.damage",
"type": "string",
"title": "Entity Damage Name",
"description": "The type of damage that is received",
"enum": [
"all",
"anvil",
"block_explosion",
"charging",
"contact",
"drowning",
"entity_attack",
"entity_explosion",
"fall",
"fatal",
"falling_block",
"fire",
"fire_tick",
"fireworks",
"fly_into_wall",
"freezing",
"lava",
"lightning",
"magic",
"magma",
"none",
"override",
"piston",
"projectile",
"stalactite",
"stalagmite",
"starve",
"suffocation",
"suicide",
"temperature",
"thorns",
"void",
"wither"
]
}