Animated-Java / animated-java

A Blockbench plugin that makes complex animation a breeze in Minecraft: Java Edition.
Other
156 stars 25 forks source link

[FR] Enhance Command Execution Configuration to Allow for Finite Repeats #239

Open Dearliet opened 1 month ago

Dearliet commented 1 month ago

Old:

{
    "commands": "/say hi",
    "execute_condition": "",
    "repeat": false,
    "repeat_frequency": 1
}

New:

{
    "commands": "/say hi",
    "execute_condition": "",
    "total_cycles": 5,
    "frames_per_cycle": 10
}

Note: The parameter is frames_per_cycle rather than ticks_per_cycle, allowing commands to align with the animation speed. For example, if the animation is running at 0.5x speed, the command execution will adjust proportionally to maintain synchronization.