Skip to content

🐛 Scoreboard Initialization #438

@MichaelsLifeProductions

Description

@MichaelsLifeProductions

🛑 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

The minecraft\tags\function\load.json has "animated_java:global/internal/gu/load" and "animated_java:global/on_load"
The problem is, when I loaded in a new world with my datapack, the gu/load function got called first which prevented the uuid converter from working because the scoreboard objective aj.i hadn't been set first from the global/on_load function.

⚠️ Error Message

🔄️ How to Reproduce

  1. Create a new world
  2. Add your datapack that contains animated java and some animations
  3. Load in your world, and create your animated character
  4. Notice that there is no animation because the uuids are all set to 00000.... because the aj.i objective hadn't been set first before running the gu/load function
  5. This may not always be the case, depending on the order that Minecraft calls the functions in the load tag.

✅ Expected Behavior

The scoreboard object aj.i needs to be set first so that the uuid converter can work properly, and then the animations will work on the model that was spawned in.

💡 Solutions & Alternatives

Place the call to the animated_java:global/on_load in the animated_java:global/internal/gu/load function on the first line so that the scoreboard objectives are set first before running scoreboard players set 256 aj.i 256

🟩 Minecraft Version

1.21.4

🟦 Blockbench Version

4.12.6

💻 Operating System

Windows

📃 Installed Blockbench Plugins

None

⛰️ Minecraft Environment

Just single player vanilla.

Metadata

Metadata

Assignees

Labels

🐛 BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions