File tree Expand file tree Collapse file tree 4 files changed +24
-8
lines changed
src/systems/datapackCompiler Expand file tree Collapse file tree 4 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -283,8 +283,12 @@ dir animations {
283283 execute \
284284 if score @s <%OBJECTIVES.FRAME(animation.storage_name)%> \
285285 matches <%animation.duration-1%> \
286- run return run \
287- function ../stop
286+ run return run block loop_mode_stop {
287+ scoreboard players set @s <%OBJECTIVES.FRAME(animation.storage_name)%> 0
288+ tag @s add <%TAGS.TRANSFORMS_ONLY()%>
289+ execute at @s run function ./zzz/set_frame {frame: 0}
290+ tag @s remove <%TAGS.TRANSFORMS_ONLY()%>
291+ }
288292 }
289293 scoreboard players add @s <%OBJECTIVES.FRAME(animation.storage_name)%> 1
290294 }
Original file line number Diff line number Diff line change @@ -283,8 +283,12 @@ dir animations {
283283 execute \
284284 if score @s <%OBJECTIVES.FRAME(animation.storage_name)%> \
285285 matches <%animation.duration-1%> \
286- run return run \
287- function ../stop
286+ run return run block loop_mode_stop {
287+ scoreboard players set @s <%OBJECTIVES.FRAME(animation.storage_name)%> 0
288+ tag @s add <%TAGS.TRANSFORMS_ONLY()%>
289+ execute at @s run function ./zzz/set_frame {frame: 0}
290+ tag @s remove <%TAGS.TRANSFORMS_ONLY()%>
291+ }
288292 }
289293 scoreboard players add @s <%OBJECTIVES.FRAME(animation.storage_name)%> 1
290294 }
Original file line number Diff line number Diff line change @@ -283,8 +283,12 @@ dir animations {
283283 execute \
284284 if score @s <%OBJECTIVES.FRAME(animation.storage_name)%> \
285285 matches <%animation.duration-1%> \
286- run return run \
287- function ../stop
286+ run return run block loop_mode_stop {
287+ scoreboard players set @s <%OBJECTIVES.FRAME(animation.storage_name)%> 0
288+ tag @s add <%TAGS.TRANSFORMS_ONLY()%>
289+ execute at @s run function ./zzz/set_frame {frame: 0}
290+ tag @s remove <%TAGS.TRANSFORMS_ONLY()%>
291+ }
288292 }
289293 scoreboard players add @s <%OBJECTIVES.FRAME(animation.storage_name)%> 1
290294 }
Original file line number Diff line number Diff line change @@ -283,8 +283,12 @@ dir animations {
283283 execute \
284284 if score @s <%OBJECTIVES.FRAME(animation.storage_name)%> \
285285 matches <%animation.duration-1%> \
286- run return run \
287- function ../stop
286+ run return run block loop_mode_stop {
287+ scoreboard players set @s <%OBJECTIVES.FRAME(animation.storage_name)%> 0
288+ tag @s add <%TAGS.TRANSFORMS_ONLY()%>
289+ execute at @s run function ./zzz/set_frame {frame: 0}
290+ tag @s remove <%TAGS.TRANSFORMS_ONLY()%>
291+ }
288292 }
289293 scoreboard players add @s <%OBJECTIVES.FRAME(animation.storage_name)%> 1
290294 }
You canāt perform that action at this time.
0 commit comments