@@ -139,7 +139,7 @@ dir root {
139139
140140IF (!auto_update_rig_orientation) {
141141 function move {
142- debug assert executed_as_root_entity
142+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
143143
144144 tp @s ~ ~ ~ ~ ~
145145
@@ -161,7 +161,7 @@ dir animations {
161161 REPEAT (animations) as animation {
162162 dir <%animation.storage_name%> {
163163 function play {
164- debug assert executed_as_root_entity
164+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
165165
166166 function *<%export_namespace%>/animations/pause_all
167167
@@ -173,7 +173,7 @@ dir animations {
173173 }
174174
175175 function stop {
176- debug assert executed_as_root_entity
176+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
177177
178178 function *<%export_namespace%>/animations/pause_all
179179
@@ -184,19 +184,19 @@ dir animations {
184184 }
185185
186186 function pause {
187- debug assert executed_as_root_entity
187+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
188188
189189 tag @s remove <%TAGS.ANIMATION_PLAYING(export_namespace, animation.storage_name)%>
190190 }
191191
192192 function resume {
193- debug assert executed_as_root_entity
193+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
194194
195195 tag @s add <%TAGS.ANIMATION_PLAYING(export_namespace, animation.storage_name)%>
196196 }
197197
198198 function next_frame {
199- debug assert executed_as_root_entity
199+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
200200
201201 execute if score @s <%OBJECTIVES.FRAME(animation.storage_name)%> matches <%animation.duration%>.. run scoreboard players set @s <%OBJECTIVES.FRAME(animation.storage_name)%> 1
202202 data remove storage <%temp_storage%> args
@@ -208,7 +208,7 @@ dir animations {
208208 function set_frame {
209209 # Sets the frame without interpolation
210210 #ARGS: {frame: int}
211- debug assert executed_as_root_entity
211+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
212212
213213 data remove storage <%temp_storage%> args
214214 $execute store result storage <%temp_storage%> args.frame int 1 run scoreboard players set @s <%OBJECTIVES.FRAME(animation.storage_name)%> $(frame)
@@ -217,7 +217,7 @@ dir animations {
217217
218218 function apply_frame {
219219 #ARGS: {frame: int}
220- debug assert executed_as_root_entity
220+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
221221
222222 data remove storage <%temp_storage%> args
223223 $execute store result storage <%temp_storage%> args.frame int 1 run scoreboard players set @s <%OBJECTIVES.FRAME(animation.storage_name)%> $(frame)
@@ -227,7 +227,7 @@ dir animations {
227227 function tween {
228228 # Attempts to smoothly transition from the currently playing animation into this one.
229229 #ARGS: {duration: int, to_frame: int}
230- debug assert executed_as_root_entity
230+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
231231
232232 function *<%export_namespace%>/animations/pause_all
233233
@@ -478,7 +478,7 @@ dir animations {
478478 }
479479 function pause_all {
480480 # Pauses all animations
481- debug assert executed_as_root_entity
481+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
482482
483483 REPEAT (animations) as animation {
484484 tag @s remove <%TAGS.ANIMATION_PLAYING(export_namespace, animation.storage_name)%>
@@ -722,7 +722,7 @@ function summon {
722722IF (has_entity_locators) {
723723 function as_locator {
724724 #ARGS: {name: string, command: string}
725- debug assert executed_as_root_entity
725+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
726726
727727 data remove storage <%temp_storage%> args
728728 $data modify storage <%temp_storage%> args merge value {name:'$(name)', command:'$(command)', uuid:'+MISSING_UUID+'}
@@ -759,7 +759,7 @@ IF (has_entity_locators) {
759759
760760 function as_all_locators {
761761 #ARGS: {command: string}
762- debug assert executed_as_root_entity
762+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
763763
764764 data remove storage <%temp_storage%> args
765765 $data modify storage <%temp_storage%> args merge value {command:'$(command)'}
@@ -782,7 +782,7 @@ IF (has_entity_locators) {
782782IF (has_locators) {
783783 function at_locator {
784784 #ARGS: {name: string, command: string}
785- debug assert executed_as_root_entity
785+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
786786
787787 data remove storage <%temp_storage%> args
788788 $data modify storage <%temp_storage%> args merge value {name:'$(name)', command:'$(command)'}
@@ -824,7 +824,7 @@ IF (has_locators) {
824824
825825 function at_all_locators {
826826 #ARGS: {command: string}
827- debug assert executed_as_root_entity
827+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
828828
829829 data remove storage <%temp_storage%> args
830830 $data modify storage <%temp_storage%> args merge value {command:'$(command)'}
@@ -850,7 +850,7 @@ IF (has_locators) {
850850IF (has_cameras) {
851851 function as_camera {
852852 #ARGS: {name: string, command: string}
853- debug assert executed_as_root_entity
853+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
854854
855855 data remove storage <%temp_storage%> args
856856 $data modify storage <%temp_storage%> args merge value {name:'$(name)', command:'$(command)', uuid:'+MISSING_UUID+'}
@@ -904,7 +904,7 @@ dir remove {
904904
905905 function this {
906906 # Removes the rig this function is executed as.
907- debug assert executed_as_root_entity
907+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
908908
909909 <%%
910910 if (on_remove_function) emit.mcb(on_remove_function)
@@ -944,7 +944,7 @@ dir remove {
944944
945945 dir this {
946946 function without_on_remove_function {
947- debug assert executed_as_root_entity
947+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
948948
949949 IF (has_entity_locators || has_cameras) {
950950 execute on passengers if entity @s[tag=<%TAGS.GLOBAL_DATA()%>] run block as_data {
@@ -975,7 +975,7 @@ IF (Object.keys(rig.variants).length > 1) {
975975 REPEAT (Object.values(rig.variants)) as variant {
976976 dir <%variant.name%> {
977977 function apply {
978- debug assert executed_as_root_entity
978+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
979979
980980 <%%
981981 global.filteredNodes = Object.values(rig.nodes).filter(
@@ -1093,7 +1093,7 @@ IF (has_locators || has_cameras) {
10931093
10941094function apply_default_pose {
10951095 # Changes the pose of the rig to the the default pose with interpolation
1096- debug assert executed_as_root_entity
1096+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
10971097
10981098 IF (has_locators || has_cameras) {
10991099 function ./zzz/reset_floating_entities
@@ -1113,7 +1113,7 @@ function apply_default_pose {
11131113
11141114function set_default_pose {
11151115 # Changes the pose of the rig to the the default pose without interpolation
1116- debug assert executed_as_root_entity
1116+ debug assert executed_as_root_entity <%TAGS.PROJECT_ROOT(export_namespace)%>
11171117
11181118 IF (has_locators || has_cameras) {
11191119 function ./zzz/reset_floating_entities
0 commit comments