Rigs
Interacting with Locators
Locators are points in space that can be used to execute commands at specific positions / rotations relative to your Rig Instance. This page explains how to interact with Locators in your Rig Instance using commands.
Excuting Commands using Locator Offset Data
You can execute commands at a specific locator's position / rotation using the data entity's data.locators.<locator_name>
NBT.
Execute at a specific locator's position
Then, using the locator's position data, we can now execute commands at that position with macros:
You should always replace the example @e[tag=aj.global.root]
selector with a more specific selector.
Execute as a specific locator's entity
Note that this method will only work if you have the Locator's Use Entity
config option enabled.
Then, using the locator's UUID, we can now execute commands as that entity with macros:
Executing Commands as Locator Entities
You can use the as_own_locator_entities
function to execute commands as all of a Rig Instance's locator entities.