Minecraft wiki entry for Development_versions, associated text: Execute detect command now uses local coordinates correctly. (MCPE-29942)
Modified CommandPosition so that an optional offset can be specified to move the rotation point in case of a local coordinate.
Fixed the ExecuteCommand detect option to correctly use an entity rather than a position so that it can use the entity orientation to calculate camera relative offsets.