Update target_when_pushed.json

Updated description
Removed undocumented comments
Updated example
This commit is contained in:
ChibiMango
2022-07-13 22:41:33 +01:00
parent 5b237833b9
commit 86af037f01

View File

@@ -1,7 +1,6 @@
{ {
"$id": "blockception.minecraft.behavior.entities.minecraft.behavior.target_when_pushed", "$id": "blockception.minecraft.behavior.entities.minecraft.behavior.target_when_pushed",
"description": "Allows this mob to target an entity that pushed it", "description": "Allows an entity to select a valid target entity that pushed it.",
"$comment": "UNDOCUMENTED",
"type": "object", "type": "object",
"title": "Target When Pushed", "title": "Target When Pushed",
"additionalProperties": false, "additionalProperties": false,
@@ -11,21 +10,21 @@
"$ref": "types/priority.json" "$ref": "types/priority.json"
}, },
"entity_types": { "entity_types": {
"$ref": "../types/entity_types.json",
"title": "Entity Types", "title": "Entity Types",
"description": "The list of conditions the other entity must meet to be a valid target", "$ref": "../types/entity_types.json",
"$comment": "UNDOCUMENTED" "description": "The list of conditions the other entity must meet to be a valid target"
}, },
"percent_chance": { "percent_chance": {
"type": "number",
"title": "Percent Chance", "title": "Percent Chance",
"description": "The chance that the entity becomes a target when this mob is pushed", "type": "number",
"$comment": "UNDOCUMENTED" "default": 5.0,
"description": "Probability that the entity will target the entity that pushed it."
} }
}, },
"examples": [ "examples": [
{ {
"percent_chance": 0.0 "percent_chance": 5.0,
"entity_types": []
} }
] ]
} }