@@ -174,7 +174,7 @@ dir <%export_namespace%> {
174
174
}
175
175
}
176
176
# Rotation Logic
177
- execute at @s on passengers run tp @s ~ ~ ~ ~ ~
177
+ execute at @s on passengers run rotate @s ~ ~
178
178
IF (root_ticking_commands) {
179
179
<%%
180
180
emit.mcb(root_ticking_commands)
@@ -224,11 +224,17 @@ dir <%export_namespace%> {
224
224
225
225
REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
226
226
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)%>']}
228
228
execute as @e[type=<%locator.config.entity_type%>,tag=<%TAGS.NEW()%>,tag=<%TAGS.GLOBAL_LOCATOR()%>,limit=1,distance=..0.01] run {
229
229
tag @s remove <%TAGS.NEW()%>
230
230
231
231
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)%>
232
238
<%%
233
239
if (locator.config.summon_commands) {
234
240
emit.mcb(locator.config.summon_commands)
@@ -245,6 +251,12 @@ dir <%export_namespace%> {
245
251
tag @s remove <%TAGS.NEW()%>
246
252
247
253
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)%>
248
260
}
249
261
data modify entity @s data.cameras.<%camera.name%>.uuid set from storage aj:uuid main.out
250
262
}
@@ -286,7 +298,7 @@ dir <%export_namespace%> {
286
298
function *<%export_namespace%>/set_default_pose
287
299
288
300
tp @s ~ ~ ~ ~ ~
289
- execute at @s on passengers run tp @s ~ ~ ~ ~ ~
301
+ execute at @s on passengers run rotate @s ~ ~
290
302
data modify entity @s teleport_duration set value <%teleportation_duration%>
291
303
execute on passengers run data modify entity @s teleport_duration set value <%teleportation_duration%>
292
304
# Custom Summon Commands
0 commit comments