Skip to content

Commit a4c9eec

Browse files
committed
📝 Add modern examples to rigs/controlling-a-rig-instance
1 parent 5e3774d commit a4c9eec

File tree

1 file changed

+7
-2
lines changed
  • src/routes/docs/[...4]rigs/[...3]controlling-a-rig-instance

1 file changed

+7
-2
lines changed

src/routes/docs/[...4]rigs/[...3]controlling-a-rig-instance/+page.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Before we can control a Rig Instance, we need to be able to select it. The follo
2121

2222
## Moving and Rotating the Rig Instance
2323

24-
Similar to how we control normal entities in Minecraft, we can move and rotate Rig Instances using the `tp` command.
24+
Similar to how we control normal entities in Minecraft, we can move and rotate Rig Instances using the `tp` or `rotate` command.
2525

2626
```rust title=Move a Rig Instance 5 blocks towards positive X | copy
2727
execute as @e[type=item_display,tag=aj.<export_namespace>.root] at @s run \
@@ -30,7 +30,12 @@ execute as @e[type=item_display,tag=aj.<export_namespace>.root] at @s run \
3030

3131
```rust title=Rotate a Rig Instance 90 degrees | copy
3232
execute as @e[type=item_display,tag=aj.<export_namespace>.root] at @s run \
33-
tp @s ~ ~ ~ ~90 ~
33+
rotate @s ~90 ~
34+
```
35+
36+
```rust title=Move a Rig Instance 5 blocks upwards and rotate it 90 degrees | copy
37+
execute as @e[type=item_display,tag=aj.<export_namespace>.root] at @s run \
38+
tp @s ~ ~5 ~ ~90 ~
3439
```
3540

3641
## Controlling Animation Playback

0 commit comments

Comments
 (0)