Files
minecraft-bedrock-json-schemas/source/behavior/entities/1.16.0/components/minecraft.block_sensor.json

31 lines
1.3 KiB
JSON
Raw Normal View History

2021-06-06 10:07:19 +00:00
{
"$id": "blockception.minecraft.behavior.entities.1.16.0.minecraft.block_sensor",
"type": "object",
"title": "Block Sensor 1.16.0",
"description": "Fires off a specified event when a block in the block list is broken within the sensor range.",
"additionalProperties": false,
"properties": {
2021-07-01 16:37:41 +02:00
"sensor_radius": { "type": "integer", "description": "UNDOCUMENTED", "$comment": "UNDOCUMENTED", "title": "Sensor Radius", "minimum": 0 },
2021-06-06 10:07:19 +00:00
"on_break": {
"type": "array",
"title": "On Break",
2021-07-03 11:45:14 +02:00
"description": "Blocks that will trigger the component when broken and what event will trigger.",
2021-06-06 10:07:19 +00:00
"items": {
"type": "object",
"title": "On Block Broken",
2021-07-03 11:45:14 +02:00
"description": "",
2021-06-06 10:07:19 +00:00
"additionalProperties": false,
"properties": {
2021-06-09 09:41:09 +02:00
"block_list": {
"type": "array",
"title": "Block List",
2021-07-03 11:45:14 +02:00
"description": "Blocks that will trigger the component when broken and what event will trigger.",
"items": { "$ref": "../../../../general/block/identifier.json", "title": "Block ID" }
2021-06-09 09:41:09 +02:00
},
2021-07-03 11:45:14 +02:00
"on_block_broken": { "type": "string", "title": "On Block Broken", "description": "Event to run when a block breaks" }
2021-06-06 10:07:19 +00:00
}
2021-07-03 11:45:14 +02:00
}
2021-06-06 10:07:19 +00:00
}
}
}