From 8acb3227476d5e2c807493dc59d87595f22f9417 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 6 Dec 2020 02:41:44 +0000 Subject: [PATCH] Merge docs for 'entity_area can accept entity as a starting bounding box.' --- docs/scarpet/Full.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/scarpet/Full.md b/docs/scarpet/Full.md index 66269f15..7e34a261 100644 --- a/docs/scarpet/Full.md +++ b/docs/scarpet/Full.md @@ -2931,10 +2931,13 @@ belonging to that group. Returns entities of a specified type in an area centered on `center` and at most `distance` blocks away from -the center point. Uses the same `type` selectors as `entities_list`. +the center point/area. Uses the same `type` selectors as `entities_list`. `center` and `distance` can either be a triple of coordinates or three consecutive arguments for `entity_area`. `center` can -also be represented as a block, in this case the search box will be centered on the middle of the block. +also be represented as a block, in this case the search box will be centered on the middle of the block, or an entity - in this case +entire bounding box of the entity serves as a 'center' of search which is then expanded in all directions with the `'distance'` vector. + +In any case - returns all entities which bounding box collides with the bounding box defined by `'center'` and `'disteance'`. entity_area is simpler than `entity_selector` and runs about 20% faster, but is limited to predefined selectors and cuboid search area.