2020-11-01 17:22:42 +01:00
{
"$schema" : "http://json-schema.org/draft-07/schema" ,
2021-04-04 13:52:35 +02:00
"$id" : "blockception.minecraft.behavior.entities.1.8.0.minecraft.entity_sensor" ,
2020-11-01 17:22:42 +01:00
"type" : "object" ,
2021-03-21 15:18:38 +01:00
"title" : "Entity Sensor 1.8.0" ,
2020-11-01 17:22:42 +01:00
"description" : "A component that fires an event when a set of conditions are met by other entities within the defined range." ,
"additionalProperties" : false ,
"properties" : {
"maximum_count" : {
"type" : "integer" ,
"default" : -1 ,
"description" : "The maximum number of entities that must pass the filter conditions for the event to send." ,
2021-03-21 15:18:38 +01:00
"title" : "Maximum Count"
2020-11-01 17:22:42 +01:00
} ,
"minimum_count" : {
"type" : "integer" ,
"default" : 1 ,
"description" : "The minimum number of entities that must pass the filter conditions for the event to send." ,
2021-03-21 15:18:38 +01:00
"title" : "Minimum Count"
2020-11-01 17:22:42 +01:00
} ,
2021-03-21 15:18:38 +01:00
"relative_range" : { "type" : "boolean" , "default" : true , "description" : "If true the sensor range is additive on top of the entity's size." , "title" : "Relative Range" } ,
2020-11-01 17:22:42 +01:00
"require_all" : {
"type" : "boolean" ,
"default" : false ,
"description" : "If true requires all nearby entities to pass the filter conditions for the event to send." ,
2021-03-21 15:18:38 +01:00
"title" : "Require All"
2020-11-01 17:22:42 +01:00
} ,
"sensor_range" : {
"type" : "number" ,
"default" : 10 ,
"description" : "The maximum distance another entity can be from this and have the filters checked against it." ,
2021-03-21 15:18:38 +01:00
"title" : "Sensor Range"
2020-11-01 17:22:42 +01:00
} ,
"event_filters" : { "$ref" : "../filters.json" } ,
2021-03-21 15:18:38 +01:00
"event" : { "title" : "Event" , "description" : "event" , "type" : "string" }
2020-11-01 17:22:42 +01:00
}
}