{
  "$id": "blockception.minecraft.behavior.entities.1.8.0.minecraft.environment_sensor",
  "title": "Environment Sensor 1.8.0",
  "additionalProperties": false,
  "description": "Allows the entity to power jump like the horse does in vanilla.",
  "type": "object",
  "definitions": {
    "on_environement": {
      "type": "object",
      "additionalProperties": false,
      "description": "Allows the entity to power jump like the horse does in vanilla.",
      "title": "On Environement",
      "properties": {
        "filters": { "$ref": "../../filters/filters.json", "description": "The filters to evualate for this environment sensor", "title": "Filters" },
        "event": { "type": "string", "pattern": "^.+$", "description": "The event to trigger if the filters are true", "title": "Event" },
        "target": { "description": "The target of the event", "$ref": "../../filters/filters/types/subject.json" }
      }
    }
  },
  "required": [],
  "anyOf": [
    { "type": "object", "$ref": "#/definitions/on_environement" },
    {
      "type": "array",
      "items": {
        "oneOf": [
          { "$ref": "#/definitions/on_environement" },
          { "type": "object", "properties": { "on_environment": { "$ref": "#/definitions/on_environement" } } }
        ]
      }
    }
  ]
}
