{"$schema":"http://json-schema.org/draft-07/schema","$id":"blockception.minecraft.behavior.entities","examples":[{"format_version":"1.19.0","minecraft:entity":{"description":{"identifier":"namespace:entity","is_spawnable":true,"is_summonable":true},"component_groups":{},"components":{},"events":{}}}],"type":"object","title":"Entity Behavior","description":"The minecraft entity behavior specification.","required":["format_version","minecraft:entity"],"additionalProperties":false,"properties":{"format_version":{"$ref":"#/definitions/A"},"minecraft:entity":{"$ref":"#/definitions/B"}},"definitions":{"A":{"title":"Format Version","description":"A version that tells minecraft what type of data format can be expected when reading this file.","pattern":"^([1-9]+)\\.([0-9]+)\\.([0-9]+)$","type":"string","default":"1.19.0","examples":["1.19.0","1.18.30","1.18.20","1.18.10","1.18.0","1.17.0","1.16.0","1.15.0","1.14.0","1.13.0","1.12.0","1.10.0","1.8.0"],"defaultSnippets":[{"label":"New Format version","body":"1.${1|8,10,12,17,18|}.${3|2|0|}"}]},"C":{"description":"A minecraft entity identifier.","examples":["namespace:entity_name"],"pattern":"^[0-9a-zA-Z:_\\.\\-]+$","title":"Entity Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"E":{"additionalProperties":false,"type":"object","title":"Add Rider","description":"Adds a rider to the entity. Requires `minecraft:rideable.`","required":["entity_type"],"properties":{"entity_type":{"type":"string","description":"The entity type that will be riding this entity.","title":"Entity Type"},"spawn_event":{"type":"string","description":"The spawn event that will be used when the riding entity is created.","title":"Spawn Event"}},"examples":[{"entity_type":"minecraft:rabbit"},{"entity_type":"minecraft:rabbit","spawn_event":"self:example"}]},"F":{"type":"object","title":"Admire Item","description":"Causes the mob to ignore attackable targets for a given duration.","additionalProperties":false,"properties":{"cooldown_after_being_attacked":{"type":"integer","default":0,"description":"Duration, in seconds, for which mob won't admire items if it was hurt.","title":"Cooldown After Being Attacked"},"duration":{"type":"integer","default":10,"description":"Duration, in seconds, that the mob is pacified.","title":"Duration"}},"examples":[{"cooldown_after_being_attacked":0,"duration":10}]},"H_object_item_descriptor":{"title":"Item Descriptor","description":"An object that describes an item.","type":"object","additionalProperties":false,"properties":{"tags":{"type":"string","$ref":"#/definitions/J","description":"[UNDOCUMENTED] A Molang expression ran against item or block to match.","$comment":"UNDOCUMENTED","examples":["query.any_tag('minecraft:is_tool')"]},"item_tag":{"type":"string","description":"[UNDOCUMENTED] A tag to lookup item or block by.","$comment":"UNDOCUMENTED","examples":["minecraft:is_tool"]}},"examples":[{"tags":"query.any_tag('minecraft:is_tool')"},{"item_tag":"minecraft:is_tool"}]},"I":{"description":"A minecraft item identifier.","pattern":"^[0-9a-zA-Z:_\\-\\.]+$","title":"Item Identifier","type":"string","defaultSnippets":[{"label":"New Identifier","body":"$1:$2"}]},"J":{"type":"string","title":"Molang","description":"Molang definition.","format":"molang","examples":["query.variant","(1.0)","query.","variable.=;"],"defaultSnippets":[{"label":"New Molang","body":"$1"}]},"H":{"anyOf":[{"$ref":"#/definitions/I"},{"$ref":"#/definitions/H_object_item_descriptor"},{"type":"object","properties":{"item":{"oneOf":[{"type":"string","$ref":"#/definitions/I"},{"type":"object","$ref":"#/definitions/H_object_item_descriptor"}]}}}]},"BA":{"title":"Event","description":"Minecraft behavior event.","examples":[{"event":"example:foo","target":"self"}],"type":"object","additionalProperties":false,"properties":{"event":{"type":"string","pattern":"^[a-zA-Z0-9_\\-:]+$","description":"The event to fire.","title":"Event"},"target":{"type":"string","description":"The target of the event.","title":"Target","enum":["baby","block","damager","other","parent","player","self