Hello, I am trying to create my first mob (it is a raccoon) I have created the model, the texture and the animations. But I am having a lot of problems with the animation control, when I spawn it the animal is doing the walking animation even while standing still in place, could someone tell me where the problem is? I would appreciate it very much
#animation control
1 messages · Page 1 of 1 (latest)
I am using addon maker app (android) and blockbench for the model, texture and animations
Somebody please?👀
Help please😩
you didn't define a script animation for "walk" in your enity file
{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "pa:raccon",
"materials": {
"default": "goat"
},
"textures": {
"default": "textures/entity/pamobile/pa_raccon"
},
"geometry": {
"default": "geometry.pa_raccon"
},
"spawn_egg": {
"base_color": "#FFFFFF",
"overlay_color": "#000000"
},
"scripts": {
"pre_animation": [
"variable.tcos_right_side = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
"variable.tcos_left_side = -variable.tcos_right_side;",
"variable.attack_head_rot = Math.sin(variable.attack_time * 180.0) * -37.3;",
"variable.ram_head_rot = Math.sin(variable.should_bow_head * 90.0) * 37.3;"
],
"animate": [
"walk",
"look_at_target",
{
"attack": "variable.has_target && variable.attack_time >= 0.0"
},
"ram_attack"
]
},
"animations": {
"walk": "animation.pa_raccon.walk",
"look_at_target": "animation.pa_raccon.look_at_target",
"attack": "animation.pa_raccon.attack",
"ram_attack": "animation.pa_raccon.ram_attack",
"default": "animation.pa_raccon.default"
},
"render_controllers": [
"controller.render.goat"
]
}
}
}
do you mean this? I can't try raccoon again now... I updated to version 1.21.23 and since they removed the experimental functions it doesn't work anymore, is there a solution for this?
In "animate": "walk" is active meaning it's in a constant state of animation
You need to define a function that makes it so when you walk you can play the animation
{
"format_version": "1.10.0",
"minecraft:client_entity": {
"description": {
"identifier": "pa:raccon",
"materials": {
"default": "goat"
},
"textures": {
"default": "textures/entity/pamobile/pa_raccon"
},
"geometry": {
"default": "geometry.pa_raccon"
},
"spawn_egg": {
"base_color": "#FFFFFF",
"overlay_color": "#000000"
},
"scripts": {
"pre_animation": [
"variable.tcos_right_side = (Math.cos(query.modified_distance_moved * 38.17) * query.modified_move_speed / variable.gliding_speed_value) * 57.3;",
"variable.tcos_left_side = -variable.tcos_right_side;",
"variable.attack_head_rot = Math.sin(variable.attack_time * 180.0) * -37.3;",
"variable.ram_head_rot = Math.sin(variable.should_bow_head * 90.0) * 37.3;"
],
"animate": [
{
"walk": "query.is_moving"
},
"look_at_target",
{
"attack": "variable.has_target && variable.attack_time >= 0.0"
},
"ram_attack"
]
},
"animations": {
"walk": "animation.pa_raccon.walk",
"look_at_target": "animation.pa_raccon.look_at_target",
"attack": "animation.pa_raccon.attack",
"ram_attack": "animation.pa_raccon.ram_attack",
"default": "animation.pa_raccon.default"
},
"render_controllers": [
"controller.render.goat"
]
}
}
}
Is that query enough or do you recommend something else?
By the way, thank you very much for your help😊💜
It would be easier if you use an animation controller, but this is how I did mine
I also have the animation control, but as you said, I needed to link it with entity, now it works! thank you very much for your help😊 In the end the only thing I was missing was the query.is_moving in the entity folder
Now I'm learning to do the sit animation when the player tells the animal to sit. I have created the sitting animation and the movement control, but I still can't get it to sit, I'm still learning😊
No problem, glad to help
There should be a wiki page about the sittable component
Yes, I found a guide through this discord😊 I'm following it. many thanks for your help!
To make a custom animation of sitting on the BP, what is recommended? create an event or use a command? What is the best option?
Events are simpler imo
Thanks😊💜
I have gotten it to do the sitting animation, but it gets up immediately. I have tried to modify the animation by adding that it stays in the last frame so that it looks like it is sitting, but when I do this the animal no longer does the sitting animation. (I am not using events for this animation)
Any ideas on how to solve this?
It has to be your animation
Your sitting animation plays only once, you have to add "loop": "hold_on_last_frame" in your animation
ready! It was just a detail! Thank you very much for your help😊, without you it would have cost me many more hours
If I ended up uploading it to a page, would you like me to thank you somewhere or do you prefer anonymity?
It's not necessary, I didn't do anything, it's just a correction XD
Amazing
We look forward to your success
thank you very much 😊 there is still a lot to improve and learn 🍾 but publishing it will give me more encouragement
👍
Hello again!😊 I've been updating the raccoon and I'm trying to do 2 things, but I'm stuck
-
Make the sleeping animation at night, this should be indicated in the bp, right? I have created a sleep and wake behavior (and animation with query is sleeping)
-
Give the raccoon a gift when he wakes up with the player
+for this I have created 2 functions and in wake with owner events I have made the reference I greatly appreciate any help😊💜