@@ -38,7 +38,7 @@ dir global {
3838 dir errors {
3939 function function_not_executed_as_root_entity {
4040 #ARGS: {export_namespace: string, function_path: string}
41- $tellraw @a <%TELLRAW.FUNCTION_NOT_EXECUTED_AS_ROOT_ERROR('$(function_path)', TAGS.PROJECT_ROOT('$(export_namespace)') )%>
41+ $tellraw @a <%TELLRAW.FUNCTION_NOT_EXECUTED_AS_ROOT_ERROR('$(function_path)')%>
4242 }
4343 }
4444 }
@@ -122,7 +122,7 @@ dir <%export_namespace%> {
122122 execute store result storage aj:temp y int 1 store result score #this.y aj.i run data get entity @s Pos[1] 1
123123 execute store result storage aj:temp z int 1 store result score #this.z aj.i run data get entity @s Pos[2] 1
124124 block outdated_tellraw { with storage aj:temp
125- $tellraw @a <%TELLRAW.RIG_OUTDATED(export_namespace )%>
125+ $tellraw @a <%TELLRAW.RIG_OUTDATED()%>
126126 }
127127 data modify entity @s data.rigHash set value '<%rigHash%>'
128128 execute on passengers run data merge entity @s {Glowing: 1b, glow_color_override: <%0xff0000%>}
@@ -174,7 +174,7 @@ dir <%export_namespace%> {
174174 }
175175 }
176176 # Rotation Logic
177- execute at @s on passengers run tp @s ~ ~ ~ ~ ~
177+ execute at @s on passengers run rotate @s ~ ~
178178 IF (root_ticking_commands) {
179179 <%%
180180 emit.mcb(root_ticking_commands)
@@ -224,11 +224,17 @@ dir <%export_namespace%> {
224224
225225 REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
226226 IF (locator.config && locator.config.use_entity) {
227- summon <%locator.config.entity_type%> ~ ~ ~ {Tags:['<%TAGS.NEW()%>', '<%TAGS.GLOBAL_LOCATOR()%>', '<%TAGS.PROJECT_LOCATOR(export_namespace)%>', '<%TAGS.LOCAL_LOCATOR(export_namespace, locator.name)%>']}
227+ 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.LOCAL_LOCATOR(export_namespace, locator.name)%>']}
228228 execute as @e[type=<%locator.config.entity_type%>,tag=<%TAGS.NEW()%>,tag=<%TAGS.GLOBAL_LOCATOR()%>,limit=1,distance=..0.01] run {
229229 tag @s remove <%TAGS.NEW()%>
230230
231231 function *global/internal/gu/convert_uuid_array_to_string with entity @s
232+ tp @s \
233+ ^<%roundTo(locator.default_transform.pos[0], 10)%> \
234+ ^<%roundTo(locator.default_transform.pos[1], 10)%> \
235+ ^<%roundTo(locator.default_transform.pos[2], 10)%> \
236+ ~<%roundTo(locator.default_transform.head_rot[1], 10)%> \
237+ ~<%roundTo(locator.default_transform.head_rot[0], 10)%>
232238 <%%
233239 if (locator.config.summon_commands) {
234240 emit.mcb(locator.config.summon_commands)
@@ -245,6 +251,12 @@ dir <%export_namespace%> {
245251 tag @s remove <%TAGS.NEW()%>
246252
247253 function *global/internal/gu/convert_uuid_array_to_string with entity @s
254+ tp @s \
255+ ^<%roundTo(camera.default_transform.pos[0], 10)%> \
256+ ^<%roundTo(camera.default_transform.pos[1], 10)%> \
257+ ^<%roundTo(camera.default_transform.pos[2], 10)%> \
258+ ~<%roundTo(camera.default_transform.head_rot[1], 10)%> \
259+ ~<%roundTo(camera.default_transform.head_rot[0], 10)%>
248260 }
249261 data modify entity @s data.cameras.<%camera.name%>.uuid set from storage aj:uuid main.out
250262 }
@@ -286,7 +298,7 @@ dir <%export_namespace%> {
286298 function *<%export_namespace%>/set_default_pose
287299
288300 tp @s ~ ~ ~ ~ ~
289- execute at @s on passengers run tp @s ~ ~ ~ ~ ~
301+ execute at @s on passengers run rotate @s ~ ~
290302 data modify entity @s teleport_duration set value <%teleportation_duration%>
291303 execute on passengers run data modify entity @s teleport_duration set value <%teleportation_duration%>
292304 # Custom Summon Commands
0 commit comments