Skip to content

Commit 2553302

Browse files
committed
🐛 Fix animation loop mode once still looping
Fixes #469 (nice)
1 parent 5118f37 commit 2553302

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/systems/datapackCompiler/1.20.4/animation.mcb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ dir animations {
288288
tag @s add <%TAGS.TRANSFORMS_ONLY()%>
289289
execute at @s run function ./zzz/set_frame {frame: 0}
290290
tag @s remove <%TAGS.TRANSFORMS_ONLY()%>
291+
tag @s remove <%TAGS.ANIMATION_PLAYING(export_namespace, animation.storage_name)%>
291292
}
292293
}
293294
scoreboard players add @s <%OBJECTIVES.FRAME(animation.storage_name)%> 1

src/systems/datapackCompiler/1.20.5/animation.mcb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ dir animations {
288288
tag @s add <%TAGS.TRANSFORMS_ONLY()%>
289289
execute at @s run function ./zzz/set_frame {frame: 0}
290290
tag @s remove <%TAGS.TRANSFORMS_ONLY()%>
291+
tag @s remove <%TAGS.ANIMATION_PLAYING(export_namespace, animation.storage_name)%>
291292
}
292293
}
293294
scoreboard players add @s <%OBJECTIVES.FRAME(animation.storage_name)%> 1

src/systems/datapackCompiler/1.21.0/animation.mcb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ dir animations {
288288
tag @s add <%TAGS.TRANSFORMS_ONLY()%>
289289
execute at @s run function ./zzz/set_frame {frame: 0}
290290
tag @s remove <%TAGS.TRANSFORMS_ONLY()%>
291+
tag @s remove <%TAGS.ANIMATION_PLAYING(export_namespace, animation.storage_name)%>
291292
}
292293
}
293294
scoreboard players add @s <%OBJECTIVES.FRAME(animation.storage_name)%> 1

src/systems/datapackCompiler/1.21.2/animation.mcb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ dir animations {
288288
tag @s add <%TAGS.TRANSFORMS_ONLY()%>
289289
execute at @s run function ./zzz/set_frame {frame: 0}
290290
tag @s remove <%TAGS.TRANSFORMS_ONLY()%>
291+
tag @s remove <%TAGS.ANIMATION_PLAYING(export_namespace, animation.storage_name)%>
291292
}
292293
}
293294
scoreboard players add @s <%OBJECTIVES.FRAME(animation.storage_name)%> 1

src/systems/datapackCompiler/1.21.4/animation.mcb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ dir animations {
288288
tag @s add <%TAGS.TRANSFORMS_ONLY()%>
289289
execute at @s run function ./zzz/set_frame {frame: 0}
290290
tag @s remove <%TAGS.TRANSFORMS_ONLY()%>
291+
tag @s remove <%TAGS.ANIMATION_PLAYING(export_namespace, animation.storage_name)%>
291292
}
292293
}
293294
scoreboard players add @s <%OBJECTIVES.FRAME(animation.storage_name)%> 1

0 commit comments

Comments
 (0)