File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed
Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,9 @@ async function createMCFile(
103103
104104 const staticAnimationUuid = store . get ( 'staticAnimationUuid' )
105105 const staticFrame = animations [ staticAnimationUuid ] . frames [ 0 ] . bones
106- // let staticDistance = 10
106+
107107 let maxDistance = 10
108108 if ( exporterSettings . autoDistance ) {
109- // staticDistance = roundToN(
110- // animations[staticAnimationUuid].maxDistance + -headYOffset,
111- // 1000
112- // )
113-
114109 maxDistance = roundToN (
115110 Object . values ( animations ) . reduce ( ( o , n ) => {
116111 return Math . max ( o , n . maxDistance )
@@ -856,11 +851,12 @@ async function createMCFile(
856851 z : roundToN ( rot . z , 10000 ) ,
857852 }
858853 // prettier-ignore
859- ret . push ( `execute if entity @s[tag=${ format ( tags . individualBone , { boneName} ) } ] positioned ^${ pos . x } ^${ pos . y } ^${ pos . z } run {
860- name frame/${ boneName } /${ leaf . index }
861- execute if entity @s[type=${ entityTypes . boneDisplay } ] run data modify entity @s Pose.Head set value [${ rot . x } f,${ rot . y } f,${ rot . z } f]
862- tp @s ~ ~ ~ ~ ~
863- }` )
854+ ret . push ( 'say a' )
855+ // ret.push(`execute if entity @s[tag=${format(tags.individualBone, {boneName})}] positioned ^${pos.x} ^${pos.y} ^${pos.z} run {
856+ // name frame/${boneName}/${leaf.index}
857+ // execute if entity @s [type=${entityTypes.boneDisplay}] run data modify entity @s Pose.Head set value [${rot.x}f,${rot.y}f,${rot.z}f]
858+ // tp @s ~ ~ ~ ~ ~
859+ // }`)
864860 }
865861 return ret . join ( '\n' )
866862 }
You can’t perform that action at this time.
0 commit comments