GeezerVison is showing github.com โ ๐ Locator Functions during animations run before Data Manager ยท Issue #516 ยท Animated-Java/animated-java
๐ Locator Functions during animations run before Data Manager #516
Description
๐ Before you Start
- I have searched existing bug reports for my problem.
- I have read the F-A-Q.
- I am using the latest version of Animated Java
- I will only report a single bug in this report. If I have found multiple bugs, I will create a separate report for each one.
๐ฃ๏ธ Describe the bug
In the generated datapack, if a locator runs any functions during an animation, the frame calls the locator's function BEFORE the data manager reads & writes. If the called function affects the animated_java:data command storage in any way, incorrect data is sent back to the animating model.
This is NOT the case if you call a function on the root instead of a locator. (Root function is called AFTER the data manager reads & writes)
โ ๏ธ Error Message
๐๏ธ How to Reproduce
- Create a model with a locator and enable using entity (can be any entity)
- Create an animation with a function keyframe running as the locator that spawns another AJ model
- Export, spawn the model and run the animation.
- Check the animated_java:data command storage of the animating model. It will have UUIDs and data from the newly summoned model.
- Check the exported data pack and view the animation keyframes (If the locator function runs at frame 28, look for 28.mcfunction)
- You should find that 28.mcfunction runs 28_(name_of_your_locator) BEFORE the data manager reads & writes
โ
Expected Behavior
When summoning an AJ model through a locator function during animation it should not corrupt the animating model
๐ก Solutions & Alternatives
Since this is an issue for locators specifically and not functions ran as the root, find where the datapack exporter writes function keyframes for the root (which should happen after data manager read & write) and make sure function keyframes for locators are doing the same.
๐ฉ Minecraft Version
26.1.1
๐ฆ Blockbench Version
5.1.4
๐ป Operating System
Windows
๐ Installed Blockbench Plugins
None other than Animated Java
โฐ๏ธ Minecraft Environment
Singleplayer
Activity
added a commit that references this issue
on Jun 23, 2026This issue will close once commit dd36372 is merged into the 'main' branch.dd36372
Metadata
Metadata
Development
No branches or pull requestsIssue actions