#MoLang animation not loading
1 messages ยท Page 1 of 1 (latest)
Trying to use this documentation (https://wiki.bedrock.dev/animation-controllers/molang-into-scoreboard.html) modified slightly, I've connected the controller (first image) and it seems to set the "var" value and its own value to 0 as expected, however it doesn't seem to load the animation (second image). In game it gives me "animations | child 'molang_t\o_score' not valid here" and "can't find animation molang_to_score"
Message deleted
Yea
Could you upload your code rather than screenshots
?screenshots
Screenshots are hard to read, and photos even more so. This is especially true if you are using bridge or another tree editor, as this format obscures the JSON format.
We can help you best if you copy and paste your code here, or send it directly as a file.
molang_to_score.animation.json
"format_version" : "1.10.0",
"animations" : {
"molang_to_score": {
"animation_length": 10.0,
"anim_time_update": "t.digit = Math.mod(Math.floor(v.convert / v.digit), 10) + 0.1; v.digit = v.digit / 10; return t.digit;",
"timeline": {
"0.0": [ "/scoreboard players operation @s MoLang *= \"#10\" MoLang", "/scoreboard players operation @s MoLang += \"var\" MoLang", "/scoreboard players set \"var\" MoLang 0" ],
"1.0": [ "/scoreboard players set \"var\" MoLang 1" ],
"2.0": [ "/scoreboard players set \"var\" MoLang 2" ],
"3.0": [ "/scoreboard players set \"var\" MoLang 3" ],
"4.0": [ "/scoreboard players set \"var\" MoLang 4" ],
"5.0": [ "/scoreboard players set \"var\" MoLang 5" ],
"6.0": [ "/scoreboard players set \"var\" MoLang 6" ],
"7.0": [ "/scoreboard players set \"var\" MoLang 7" ],
"8.0": [ "/scoreboard players set \"var\" MoLang 8" ],
"9.0": [ "/scoreboard players set \"var\" MoLang 9" ]
}
}
}
}```
wait let me just upload the files
What's the full content log
(Ignore the middle line)
in the second file?
Change your format to 1.8.0 for the molang_to_score.animation.json
If not, just use the original file but change the format version only. No need to omit the animations key
Just changing the format version to 1.8.0 still gives the same error
Should I modify the controller?
Its something to do with the animations then. Could you create a dummy animation in blockbench then modify the code there
Its a behaviour pack
I'll try
Ah figured it out