File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
src/routes/docs/[...5]resources/[...2]migrating-from-older-versions Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,22 @@ You will also need to remove the Animated Java function references from the `min
30
30
31
31
- ` <data_pack_root>/data/minecraft/tags/functions/tick.json `
32
32
- ` <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
+ ```
You can’t perform that action at this time.
0 commit comments