You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/routes/docs/[...3]exported-rigs/[...2]summoning-a-new-rig-instance/+page.md
+12-28Lines changed: 12 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,26 +7,14 @@ description: Learn how to summon a new Rig Instance.
7
7
8
8
To summon a new Rig Instance, you will need to use the `summon` function provided by the Rig's export namespace. This function will create a new Rig Instance at your current position, and rotation in the world:
9
9
10
-
```html title=Summoning a Rig Instance | copy
11
-
function animated_java:<export_namespace>/summon {args: {}}</export_namespace>
However, you may want to specify the position and rotation of the Rig Instance. To do this, you can change the execution context of the `summon` function:
15
15
16
-
```html title=Summoning a Rig Instance at a specific position and rotation | copy
17
-
execute positioned
18
-
<x>
19
-
<y>
20
-
<z>
21
-
rotated
22
-
<rx>
23
-
<ry>
24
-
run function animated_java:<export_namespace>/summon {args: {}}</export_namespace></ry
25
-
></rx
26
-
></z
27
-
></y
28
-
></x
29
-
>
16
+
```rust title=Summoning a Rig Instance at a specific position and rotation | copy
There is no way to remove a Variant individually once it has been applied. To reset the Variant to it's default state, you can apply the default Variant.
150
124
151
-
```html title=Apply the default Variant | copy
152
-
execute as @e[type=item_display,tag=aj.<export_namespace
153
-
>.root] run \ function animated_java:<export_namespace
154
-
>/variants/default/apply</export_namespace
155
-
></export_namespace
156
-
>
125
+
```rust title=Apply the default Variant | copy
126
+
executeas@e[type=item_display,tag=aj.<export_namespace>.root] run \
0 commit comments