@@ -32,7 +32,7 @@ dir <%export_namespace%> {
32
32
}
33
33
data modify entity @s data.rigHash set value '<%rigHash%>'
34
34
execute on passengers run data merge entity @s {Glowing: 1b, glow_color_override: <%0xff0000%>}
35
- summon minecraft:text_display ~ ~ ~ {Tags:['<%TAGS.GLOBAL_RIG ()%>', '<%TAGS.OUTDATED_RIG_TEXT_DISPLAY()%>', '<%TAGS.NEW()%>'], text:'<%TELLRAW.RIG_OUTDATED_TEXT_DISPLAY()%>', billboard: "vertical", transformation:{translation:[0f,<%boundingBox[1]/16%>f,0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1f,1f,1f]}}
35
+ summon minecraft:text_display ~ ~ ~ {Tags:['<%TAGS.GLOBAL_ENTITY ()%>', '<%TAGS.OUTDATED_RIG_TEXT_DISPLAY()%>', '<%TAGS.NEW()%>'], text:'<%TELLRAW.RIG_OUTDATED_TEXT_DISPLAY()%>', billboard: "vertical", transformation:{translation:[0f,<%boundingBox[1]/16%>f,0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],scale:[1f,1f,1f]}}
36
36
ride @e[type=minecraft:text_display,tag=<%TAGS.NEW()%>,limit=1,distance=..0.01] mount @s
37
37
tag @e[type=minecraft:text_display,tag=<%TAGS.NEW()%>,limit=1,distance=..0.01] remove <%TAGS.NEW()%>
38
38
}
@@ -243,7 +243,7 @@ dir <%export_namespace%> {
243
243
#ARGS: {frame: int}
244
244
REPEAT (Object.values(animation.modified_nodes).sort(nodeSorter)) as node {
245
245
IF (['bone', 'text_display', 'item_display', 'block_display'].includes(node.type)) {
246
- $execute on passengers run data modify entity @s[tag=<%TAGS.LOCAL_BONE (export_namespace, node.safe_name)%>] {} merge from \
246
+ $execute on passengers run data modify entity @s[tag=<%TAGS.PROJECT_NODE_NAMED (export_namespace, node.safe_name)%>] {} merge from \
247
247
storage aj.<%export_namespace%>:animations <%animation.safe_name%>.$(frame).<%node.type + '_' + node.safe_name%>
248
248
} ELSE IF (['locator', 'camera'].includes(node.type)) {
249
249
$execute on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run data modify entity @s data.<%node.type + 's.' + node.safe_name%> merge from \
@@ -261,7 +261,7 @@ dir <%export_namespace%> {
261
261
#ARGS: {frame: int}
262
262
REPEAT (Object.values(animation.modified_nodes).sort(nodeSorter)) as node {
263
263
IF (['bone', 'text_display', 'item_display', 'block_display'].includes(node.type)) {
264
- $execute on passengers if entity @s[tag=<%TAGS.LOCAL_BONE (export_namespace, node.safe_name)%>] run data modify entity @s {} merge from \
264
+ $execute on passengers if entity @s[tag=<%TAGS.PROJECT_NODE_NAMED (export_namespace, node.safe_name)%>] run data modify entity @s {} merge from \
265
265
storage aj.<%export_namespace%>:animations <%animation.safe_name%>.$(frame).<%node.type + '_' + node.safe_name%>
266
266
} ELSE IF (['locator', 'camera'].includes(node.type)) {
267
267
$execute on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run data modify entity @s data.<%node.type + 's.' + node.safe_name%> merge from \
@@ -415,7 +415,7 @@ dir <%export_namespace%> {
415
415
$execute store success score #success <%OBJECTIVES.I()%> run data modify storage aj:temp args set value $(args)
416
416
417
417
summon minecraft:item_display ~ ~ ~ { \
418
- Tags:['<%TAGS.NEW()%>','<%TAGS.GLOBAL_RIG ()%>','<%TAGS.GLOBAL_ROOT()%>','<%TAGS.PROJECT_ROOT(export_namespace)%>'], \
418
+ Tags:['<%TAGS.NEW()%>','<%TAGS.GLOBAL_ENTITY ()%>','<%TAGS.GLOBAL_ROOT()%>','<%TAGS.PROJECT_ROOT(export_namespace)%>'], \
419
419
teleport_duration: 0, \
420
420
interpolation_duration: <%interpolation_duration%>, \
421
421
Passengers:<%root_entity_passengers%>, \
@@ -429,7 +429,7 @@ dir <%export_namespace%> {
429
429
430
430
REPEAT (Object.values(rig.nodes).filter(v => v.type === 'locator')) as locator {
431
431
IF (locator.config && locator.config.use_entity) {
432
- summon <%locator.config.entity_type%> ~ ~ ~ {Tags:['<%TAGS.NEW()%>', '<%TAGS.GLOBAL_LOCATOR()%>', '<%TAGS.PROJECT_LOCATOR(export_namespace)%>', '<%TAGS.LOCAL_LOCATOR (export_namespace, locator.name)%>']}
432
+ summon <%locator.config.entity_type%> ~ ~ ~ {Tags:['<%TAGS.NEW()%>', '<%TAGS.GLOBAL_LOCATOR()%>', '<%TAGS.PROJECT_LOCATOR(export_namespace)%>', '<%TAGS.PROJECT_LOCATOR_NAMED (export_namespace, locator.name)%>']}
433
433
execute as @e[type=<%locator.config.entity_type%>,tag=<%TAGS.NEW()%>,tag=<%TAGS.GLOBAL_LOCATOR()%>,limit=1,distance=..0.01] run {
434
434
tag @s remove <%TAGS.NEW()%>
435
435
@@ -445,7 +445,7 @@ dir <%export_namespace%> {
445
445
}
446
446
447
447
REPEAT (Object.values(rig.nodes).filter(v => v.type === 'camera')) as camera {
448
- summon item_display ~ ~ ~ {Tags:['<%TAGS.NEW()%>', '<%TAGS.GLOBAL_CAMERA()%>', '<%TAGS.PROJECT_CAMERA(export_namespace)%>', '<%TAGS.LOCAL_CAMERA (export_namespace, camera.name)%>'], teleport_duration: 2}
448
+ summon item_display ~ ~ ~ {Tags:['<%TAGS.NEW()%>', '<%TAGS.GLOBAL_CAMERA()%>', '<%TAGS.PROJECT_CAMERA(export_namespace)%>', '<%TAGS.PROJECT_CAMERA (export_namespace, camera.name)%>'], teleport_duration: 2}
449
449
execute as @e[type=item_display,tag=<%TAGS.NEW()%>,tag=<%TAGS.GLOBAL_CAMERA()%>,limit=1,distance=..0.01] run {
450
450
tag @s remove <%TAGS.NEW()%>
451
451
@@ -455,7 +455,7 @@ dir <%export_namespace%> {
455
455
}
456
456
457
457
REPEAT (Object.values(rig.nodes).filter(v => ['bone', 'text_display', 'item_display', 'block_display'].includes(v.type))) as bone {
458
- execute on vehicle on passengers if entity @s[tag=<%TAGS.LOCAL_BONE (export_namespace, bone.name)%>] run \
458
+ execute on vehicle on passengers if entity @s[tag=<%TAGS.PROJECT_NODE_NAMED (export_namespace, bone.name)%>] run \
459
459
function *global/internal/gu/convert_uuid_array_to_string with entity @s
460
460
data modify entity @s data.bones.<%bone.type + '_' + bone.name%> set from storage aj:uuid main.out
461
461
}
@@ -535,16 +535,6 @@ dir <%export_namespace%> {
535
535
}
536
536
}
537
537
538
- IF (Object.keys(rig.variants).length > 1) {
539
- dir summon {
540
- REPEAT (Object.values(rig.variants)) as variant {
541
- function <%variant.name%> {
542
- function *<%export_namespace%>/summon {args:{variant: '<%variant.name%>'}}
543
- }
544
- }
545
- }
546
- }
547
-
548
538
IF (has_entity_locators) {
549
539
function as_own_locator_entities {
550
540
#ARGS: {command: string}
0 commit comments