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