@@ -102,7 +102,13 @@ dir <%export_namespace%> {
102
102
$execute store success score #success <%OBJECTIVES.I()%> run data modify storage aj:temp args set value $(args)
103
103
104
104
summon minecraft:item_display ~ ~ ~ { \
105
- Tags:['<%TAGS.NEW()%>','<%TAGS.GLOBAL_ENTITY()%>','<%TAGS.GLOBAL_ROOT()%>','<%TAGS.PROJECT_ROOT(export_namespace)%>'], \
105
+ Tags:[ \
106
+ '<%TAGS.NEW()%>', \
107
+ '<%TAGS.GLOBAL_ENTITY()%>', \
108
+ '<%TAGS.GLOBAL_ROOT()%>', \
109
+ '<%TAGS.PROJECT_ENTITY(export_namespace)%>', \
110
+ '<%TAGS.PROJECT_ROOT(export_namespace)%>' \
111
+ ], \
106
112
teleport_duration: 0, \
107
113
interpolation_duration: <%interpolation_duration%>, \
108
114
Passengers:<%root_entity_passengers%>, \
@@ -116,7 +122,11 @@ dir <%export_namespace%> {
116
122
117
123
REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
118
124
IF (locator.config && locator.config.use_entity) {
119
- summon <%locator.config.entity_type%> ^<%locator.default_transform.pos[0]%> ^<%locator.default_transform.pos[1]%> ^<%locator.default_transform.pos[2]%> {Tags:['<%TAGS.NEW()%>', '<%TAGS.GLOBAL_LOCATOR()%>', '<%TAGS.PROJECT_LOCATOR(export_namespace)%>', '<%TAGS.PROJECT_LOCATOR_NAMED(export_namespace, locator.name)%>']}
125
+ summon <%locator.config.entity_type%> \
126
+ ^<%locator.default_transform.pos[0]%> \
127
+ ^<%locator.default_transform.pos[1]%> \
128
+ ^<%locator.default_transform.pos[2]%> \
129
+ {Tags:<%getNodeTags(locator, rig)%>}
120
130
execute as @e[type=<%locator.config.entity_type%>,tag=<%TAGS.NEW()%>,tag=<%TAGS.GLOBAL_LOCATOR()%>,limit=1,distance=..0.01] run {
121
131
tag @s remove <%TAGS.NEW()%>
122
132
@@ -138,10 +148,13 @@ dir <%export_namespace%> {
138
148
}
139
149
140
150
REPEAT (Object.values(rig.nodes).filter(v => v.type === 'camera')) as camera {
141
- summon item_display ~ ~ ~ {Tags:['<%TAGS.NEW()%>', '<%TAGS.GLOBAL_CAMERA()%>', '<%TAGS.PROJECT_CAMERA(export_namespace)%>', '<%TAGS.PROJECT_CAMERA(export_namespace, camera.name)%>'], teleport_duration: 2}
151
+ summon item_display \
152
+ ^<%camera.default_transform.pos[0]%> \
153
+ ^<%camera.default_transform.pos[1]%> \
154
+ ^<%camera.default_transform.pos[2]%> \
155
+ {Tags:<%getNodeTags(camera, rig)%>, teleport_duration: 2}
142
156
execute as @e[type=item_display,tag=<%TAGS.NEW()%>,tag=<%TAGS.GLOBAL_CAMERA()%>,limit=1,distance=..0.01] run {
143
157
tag @s remove <%TAGS.NEW()%>
144
-
145
158
function *global/internal/gu/convert_uuid_array_to_string with entity @s
146
159
tp @s \
147
160
^<%roundTo(camera.default_transform.pos[0], 10)%> \
@@ -153,15 +166,13 @@ dir <%export_namespace%> {
153
166
data modify entity @s data.cameras.<%camera.name%>.uuid set from storage aj:uuid main.out
154
167
}
155
168
156
- REPEAT (Object.values(rig.nodes).filter(v => ['bone', 'text_display', 'item_display', 'block_display'].includes(v.type))) as bone {
157
- execute on vehicle on passengers if entity @s[tag=<%TAGS.PROJECT_NODE_NAMED(export_namespace, bone .name)%>] run \
169
+ REPEAT (Object.values(rig.nodes).filter(v => ['bone', 'text_display', 'item_display', 'block_display'].includes(v.type))) as node {
170
+ execute on vehicle on passengers if entity @s[tag=<%TAGS.PROJECT_NODE_NAMED(export_namespace, node .name)%>] run \
158
171
function *global/internal/gu/convert_uuid_array_to_string with entity @s
159
- data modify entity @s data.bones.<%bone .type + '_' + bone .name%> set from storage aj:uuid main.out
172
+ data modify entity @s data.bones.<%node .type + '_' + node .name%> set from storage aj:uuid main.out
160
173
}
161
174
}
162
175
163
- tag @s remove <%TAGS.NEW()%>
164
-
165
176
# Variant Arguement
166
177
IF (Object.keys(rig.variants).length > 1) {
167
178
execute if data storage aj:temp args.variant run { with storage aj:temp args
@@ -199,6 +210,9 @@ dir <%export_namespace%> {
199
210
%%>
200
211
# Custom Summon Commands
201
212
213
+ tag @s remove <%TAGS.NEW()%>
214
+ execute on passengers run tag @s remove <%TAGS.NEW()%>
215
+
202
216
# Run the on_summon function for the root entity.
203
217
function #*<%export_namespace%>/as_root/on_summon
204
218
}
0 commit comments