@@ -102,7 +102,13 @@ dir <%export_namespace%> {
102102 $execute store success score #success <%OBJECTIVES.I()%> run data modify storage aj:temp args set value $(args)
103103
104104 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+ ], \
106112 teleport_duration: 0, \
107113 interpolation_duration: <%interpolation_duration%>, \
108114 Passengers:<%root_entity_passengers%>, \
@@ -116,7 +122,11 @@ dir <%export_namespace%> {
116122
117123 REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
118124 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)%>}
120130 execute as @e[type=<%locator.config.entity_type%>,tag=<%TAGS.NEW()%>,tag=<%TAGS.GLOBAL_LOCATOR()%>,limit=1,distance=..0.01] run {
121131 tag @s remove <%TAGS.NEW()%>
122132
@@ -138,10 +148,13 @@ dir <%export_namespace%> {
138148 }
139149
140150 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}
142156 execute as @e[type=item_display,tag=<%TAGS.NEW()%>,tag=<%TAGS.GLOBAL_CAMERA()%>,limit=1,distance=..0.01] run {
143157 tag @s remove <%TAGS.NEW()%>
144-
145158 function *global/internal/gu/convert_uuid_array_to_string with entity @s
146159 tp @s \
147160 ^<%roundTo(camera.default_transform.pos[0], 10)%> \
@@ -153,15 +166,13 @@ dir <%export_namespace%> {
153166 data modify entity @s data.cameras.<%camera.name%>.uuid set from storage aj:uuid main.out
154167 }
155168
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 \
158171 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
160173 }
161174 }
162175
163- tag @s remove <%TAGS.NEW()%>
164-
165176 # Variant Arguement
166177 IF (Object.keys(rig.variants).length > 1) {
167178 execute if data storage aj:temp args.variant run { with storage aj:temp args
@@ -199,6 +210,9 @@ dir <%export_namespace%> {
199210 %%>
200211 # Custom Summon Commands
201212
213+ tag @s remove <%TAGS.NEW()%>
214+ execute on passengers run tag @s remove <%TAGS.NEW()%>
215+
202216 # Run the on_summon function for the root entity.
203217 function #*<%export_namespace%>/as_root/on_summon
204218 }
0 commit comments