File tree Expand file tree Collapse file tree
src/systems/datapackCompiler/1.21.4 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ dir root {
6666 }
6767 execute on passengers run { with entity @s data.uuids_by_name
6868 REPEAT (Object.values(rig.nodes).filter(node => BONE_TYPES.includes(node.type))) as node {
69- $rotate $(<%node.storage_name%>) ~ ~
69+ $tp $(<%node.storage_name%>) ~ ~ ~ ~ ~
7070 # Precise Rotation Workaround. Fixes MC-272913.
7171 # Thanks @Triton365! (https://discord.com/channels/154777837382008833/157097006500806656/1402253905408163842)
7272 $execute \
@@ -170,7 +170,7 @@ IF (!auto_update_rig_orientation) {
170170 function ./root/on_tick/transform_floating_entities
171171 }
172172 REPEAT (Object.values(rig.nodes).filter(node => BONE_TYPES.includes(node.type))) as node {
173- $rotate $(<%node.storage_name%>) ~ ~
173+ $tp $(<%node.storage_name%>) ~ ~ ~ ~ ~
174174 # Precise Rotation Workaround. Fixes MC-272913.
175175 # Thanks @Triton365! (https://discord.com/channels/154777837382008833/157097006500806656/1402253905408163842)
176176 $execute \
@@ -505,7 +505,7 @@ dir animations {
505505 if (Object.keys(to_merge.locators).length > 0 || Object.keys(to_merge.cameras).length > 0) {
506506 frameFunc += `\ndata modify entity @s data merge value ${JSON.stringify(to_merge)}`
507507 if (!auto_update_rig_orientation) {
508- frameFunc += `\nfunction . /on_tick/transform_floating_entities`
508+ frameFunc += `\nfunction animated_java:${export_namespace}/root /on_tick/transform_floating_entities`
509509 }
510510 hasFunction = true
511511 }
You can’t perform that action at this time.
0 commit comments