@@ -18,7 +18,7 @@ function generateBonePassenger(uuid: string, bone: AnimatedJava.IRenderedNodes['
1818 if ( ! passenger . get ( 'Tags' ) ) passenger . set ( 'Tags' , new deepslate . NbtList ( ) )
1919 const tags = passenger . get ( 'Tags' ) as InstanceType < typeof deepslate . NbtList >
2020 tags . add ( new deepslate . NbtString ( G . TAGS . new ) )
21- tags . add ( new deepslate . NbtString ( G . TAGS . rootEntity ) )
21+ tags . add ( new deepslate . NbtString ( G . TAGS . rigEntity ) )
2222 tags . add ( new deepslate . NbtString ( G . TAGS . boneEntity ) )
2323 tags . add ( new deepslate . NbtString ( formatStr ( G . TAGS . namedBoneEntity , [ bone . name ] ) ) )
2424
@@ -392,7 +392,6 @@ export function generateFunctions(folders: IFolders) {
392392 ...G . VARIANTS . map ( ( v , i ) => `scoreboard players set $aj.${ G . PROJECT_NAME } .variant.${ v . name } ${ G . SCOREBOARD . id } ${ i } ` ) ,
393393 // Variable initialization
394394 `scoreboard players add .aj.last_id ${ G . SCOREBOARD . id } 0` ,
395- `scoreboard players set $aj.default_interpolation_duration ${ G . SCOREBOARD . i } ${ G . DEFAULT_INTERPOLATION_DURATION } ` ,
396395 // prettier-ignore
397396 ...G . LOOP_MODES . map ( ( mode , i ) => `scoreboard players set $aj.loop_mode.${ mode } ${ G . SCOREBOARD . i } ${ i } ` ) ,
398397 // version ID
@@ -458,7 +457,7 @@ export function generateFunctions(folders: IFolders) {
458457 ] )
459458 // ANCHOR - function G.INTERNAL_FUNCTIONS/tick_as_root
460459 . chainNewFile ( 'tick_as_root.mcfunction' , [
461- `execute unless score @s ${ G . SCOREBOARD . rigLoaded } matches 1 run function ${ G . INTERNAL_PATH } /on_load` ,
460+ `execute unless score @s ${ G . SCOREBOARD . rigLoaded } = @s ${ G . SCOREBOARD . rigLoaded } run function ${ G . INTERNAL_PATH } /on_load` ,
462461 `scoreboard players add @s ${ G . SCOREBOARD . lifeTime } 1` ,
463462 `execute at @s on passengers run tp @s ~ ~ ~ ~ ~` ,
464463 `function ${ G . INTERNAL_PATH } /animations/tick` ,
@@ -811,7 +810,7 @@ export function generateFunctions(folders: IFolders) {
811810 ] )
812811 // ANCHOR - func G.INTERNAL_PATH:animations/<anim_name>/tween_as_root
813812 . chainNewFile ( 'tween_as_root.mcfunction' , [
814- `execute unless score #tween_duration ${ G . SCOREBOARD . i } = #tween_duration ${ G . SCOREBOARD . i } run scoreboard players operation #tween_duration ${ G . SCOREBOARD . i } = $aj.default_interpolation_duration ${ G . SCOREBOARD . i } ` ,
813+ `execute unless score #tween_duration ${ G . SCOREBOARD . i } = #tween_duration ${ G . SCOREBOARD . i } run scoreboard players set #tween_duration ${ G . SCOREBOARD . i } 1 ` ,
815814 `scoreboard players operation @s ${ G . SCOREBOARD . tweenTime } = #tween_duration ${ G . SCOREBOARD . i } ` ,
816815 G . IS_SINGLE_ENTITY_RIG
817816 ? `execute store result entity @s interpolation_duration int 1 run scoreboard players get #tween_duration ${ G . SCOREBOARD . i } `
0 commit comments