@@ -14,27 +14,27 @@ dir global {
14
14
data modify storage aj:temp args set value {}
15
15
# Initialize Rigs
16
16
scoreboard players reset * <%OBJECTIVES.IS_RIG_LOADED()%>
17
- function #animated_java: global/on_load
17
+ function #* global/on_load
18
18
}
19
19
20
20
function on_tick minecraft:tick {
21
- execute as @e[type=item_display,tag=<%TAGS.GLOBAL_ROOT()%>] at @s run function #animated_java: global/root/on_tick
21
+ execute as @e[type=item_display,tag=<%TAGS.GLOBAL_ROOT()%>] at @s run function #* global/root/on_tick
22
22
}
23
23
24
24
tag functions on_load {
25
- animated_java: <%export_namespace%>/on_load
25
+ * <%export_namespace%>/on_load
26
26
}
27
27
28
28
dir root {
29
29
# TODO Maybe instead of merging tags, I should just generate it from the .ajmeta data every time a rig is exported?
30
30
# That way I can also check if the rig's files still exist, and remove tag entries if they don't.
31
31
# An entry will be added for each exported rig.
32
32
tag functions on_tick {
33
- animated_java: <%export_namespace%>/root/on_tick
33
+ * <%export_namespace%>/root/on_tick
34
34
}
35
35
# An entry will be added for each exported rig.
36
36
tag functions on_load {
37
- animated_java: <%export_namespace%>/root/on_load
37
+ * <%export_namespace%>/root/on_load
38
38
}
39
39
}
40
40
@@ -45,7 +45,6 @@ dir global {
45
45
46
46
dir errors {
47
47
function function_not_executed_as_root_entity {
48
- # Make this text fancier in the actual implementation.
49
48
$tellraw @a <%TELLRAW.FUNCTION_NOT_EXECUTED_AS_ROOT_ERROR('$(function_path)', TAGS.PROJECT_ROOT(export_namespace))%>
50
49
}
51
50
}
@@ -58,7 +57,7 @@ dir global {
58
57
}
59
58
60
59
dir internal {
61
- # Thanks Gibbly for this code! https://github.com/gibbsly/gu
60
+ # Thanks Gibbsly for this code! https://github.com/gibbsly/gu
62
61
dir gu {
63
62
function load minecraft:load {
64
63
scoreboard players set 256 <%OBJECTIVES.I()%> 256
@@ -129,7 +128,7 @@ dir <%export_namespace%> {
129
128
}
130
129
execute as @e[type=item_display,tag=<%TAGS.PROJECT_ROOT(export_namespace)%>] \
131
130
unless score @s <%OBJECTIVES.IS_RIG_LOADED()%> matches 1 at @s run \
132
- function animated_java: <%export_namespace%>/root/on_load
131
+ function * <%export_namespace%>/root/on_load
133
132
}
134
133
135
134
dir root {
@@ -153,9 +152,9 @@ dir <%export_namespace%> {
153
152
}
154
153
function on_tick {
155
154
execute unless entity @s[tag=<%TAGS.PROJECT_ROOT(export_namespace)%>] run return 0
156
- execute unless score @s <%OBJECTIVES.IS_RIG_LOADED()%> matches 1 run function #animated_java: global/root/on_load
155
+ execute unless score @s <%OBJECTIVES.IS_RIG_LOADED()%> matches 1 run function #* global/root/on_load
157
156
# Pre tick
158
- function #animated_java: <%export_namespace%>/as_root/pre_tick
157
+ function #* <%export_namespace%>/as_root/pre_tick
159
158
# Animations
160
159
REPEAT (animations) as animation {
161
160
execute if entity @s[tag=<%TAGS.ANIMATION_PLAYING(export_namespace, animation.name)%>] run \
@@ -193,7 +192,7 @@ dir <%export_namespace%> {
193
192
# Rotation Logic
194
193
execute at @s on passengers run tp @s ~ ~ ~ ~ ~
195
194
# Post tick
196
- function #animated_java: <%export_namespace%>/as_root/post_tick
195
+ function #* <%export_namespace%>/as_root/post_tick
197
196
}
198
197
}
199
198
@@ -455,7 +454,7 @@ dir <%export_namespace%> {
455
454
execute as @e[type=<%locator.config.entity_type%>,tag=<%TAGS.NEW()%>,tag=<%TAGS.GLOBAL_LOCATOR()%>,limit=1,distance=..0.01] run {
456
455
tag @s remove <%TAGS.NEW()%>
457
456
458
- function animated_java: global/internal/gu/convert_uuid_array_to_string with entity @s
457
+ function * global/internal/gu/convert_uuid_array_to_string with entity @s
459
458
execute as @e[type=item_display,tag=<%TAGS.NEW()%>,limit=1,distance=..0.01] on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run {
460
459
data modify entity @s data.locators.<%locator.name%>.uuid set from storage aj:uuid main.out
461
460
}
@@ -473,7 +472,7 @@ dir <%export_namespace%> {
473
472
execute as @e[type=item_display,tag=<%TAGS.NEW()%>,tag=<%TAGS.GLOBAL_CAMERA()%>,limit=1,distance=..0.01] run {
474
473
tag @s remove <%TAGS.NEW()%>
475
474
476
- function animated_java: global/internal/gu/convert_uuid_array_to_string with entity @s
475
+ function * global/internal/gu/convert_uuid_array_to_string with entity @s
477
476
execute as @e[type=item_display,tag=<%TAGS.NEW()%>,limit=1,distance=..0.01] on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run {
478
477
data modify entity @s data.cameras.<%camera.name%>.uuid set from storage aj:uuid main.out
479
478
}
@@ -541,7 +540,7 @@ dir <%export_namespace%> {
541
540
# Custom Summon Commands
542
541
543
542
# Run the on_summon function for the root entity.
544
- function #animated_java: <%export_namespace%>/as_root/on_summon
543
+ function #* <%export_namespace%>/as_root/on_summon
545
544
}
546
545
}
547
546
@@ -569,7 +568,6 @@ dir <%export_namespace%> {
569
568
}
570
569
}
571
570
572
-
573
571
dir remove {
574
572
# Removes all instances of this rig from the world.
575
573
function all {
@@ -582,7 +580,7 @@ dir <%export_namespace%> {
582
580
{'function_path': 'animated_java:<%export_namespace%>/remove/this'}
583
581
584
582
# On Remove Event
585
- function #animated_java: <%export_namespace%>/as_root/on_remove
583
+ function #* <%export_namespace%>/as_root/on_remove
586
584
587
585
execute on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run {
588
586
REPEAT (Object.values(rig.nodeMap).filter(v => v.type === 'locator' && v.config?.use_entity)) as locator {
0 commit comments