Skip to content

Commit f38e0b9

Browse files
committed
🚧 Add summon function changes to migration guide
1 parent 083bcec commit f38e0b9

File tree

1 file changed

+19
-0
lines changed
  • src/routes/docs/[...5]resources/[...2]migrating-from-older-versions

1 file changed

+19
-0
lines changed

‎src/routes/docs/[...5]resources/[...2]migrating-from-older-versions/+page.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,22 @@ You will also need to remove the Animated Java function references from the `min
3030

3131
- `<data_pack_root>/data/minecraft/tags/functions/tick.json`
3232
- `<data_pack_root>/data/minecraft/tags/functions/load.json`
33+
34+
## Function API Changes
35+
36+
A few changes have been made to the function API in Animated Java. These changes are detailed below.
37+
38+
### Summon Function
39+
40+
The [summon function](/docs/exported-rigs/summoning-a-new-rig-instance) has been updated to use macro arguments instead of scoreboard arguments.
41+
42+
```rust title="Old"
43+
scoreboard players operation #variant aj.i = $aj.armor_stand.variant.no_baseplate aj.id
44+
scoreboard players operation #animation aj.i = $aj.armor_stand.animation.walk aj.id
45+
scoreboard players set #frame aj.i 20
46+
function animated_java:armor_stand/summon
47+
```
48+
49+
```rust title="New"
50+
function animated_java:armor_stand/summon {args:{variant:'no_baseplate', animation:'walk', frame: 20}}
51+
```

0 commit comments

Comments
 (0)