#Need help with a sniffing animation (Resolved)

1 messages · Page 1 of 1 (latest)

astral phoenix
astral phoenix
#

Can anyone help me with this?

zinc steeple
astral phoenix
#

I want the rat to sniff at a random time when in idle

zinc steeple
zinc steeple
astral phoenix
#

nope, haven't gotten there yet

zinc steeple
astral phoenix
#

ok

zinc steeple
#

are you fimilair with events?

astral phoenix
#

yes

zinc steeple
#

alright create an event
called "minecraft:entity_spawned"

#

make it add a group component called "rat_idle"

#

add make one for it

astral phoenix
#

ok

zinc steeple
#

is everything understood so far?

astral phoenix
#

nearly

zinc steeple
#

if you didn't get something pls don't be shy about it and tell me

astral phoenix
#

ok wait I think I know what to do give me a sec

zinc steeple
astral phoenix
#

ok

#

@zinc steeple like this

        "minecraft:rat_idle": {
            "add": {
                "component_groups": [""]
            },
            "remove": {
                "component_groups": [""]
            }
        }
zinc steeple
astral phoenix
#

ok

zinc steeple
#

oops, wrong file

#

let me send you the right one rq

astral phoenix
#

i was a bit confused about the player file though

zinc steeple
zinc steeple
astral phoenix
#

alright

astral phoenix
zinc steeple
astral phoenix
#

oh ok

astral phoenix
zinc steeple
astral phoenix
#

ok

astral phoenix
zinc steeple
#

head to the component groups section and add the component group "rat_idle"

astral phoenix
#

ok

astral phoenix
zinc steeple
#

alright for the next step

#
"minecraft:variant":{
    "value": 0
}
#

add this in "rat_idle": {}

#

||@astral phoenix ||

astral phoenix
zinc steeple
#

now this is the timer component

astral phoenix
#

ok

zinc steeple
#

but it has to be modified

astral phoenix
#

alright

zinc steeple
#

secondly, choose your random time you want

#

the first value is the min random and the last is the max value

#

then added to the component group "rat_idle"

zinc steeple
astral phoenix
zinc steeple
astral phoenix
#

oh my bad

zinc steeple
#

very well, now head again to the events section and make an event called "rat_sniff"

#

and make it add the component group "rat_sniff" and make it remove the component group "rat_idle"

#

hey, i gtg, i am going to come back after some time

opal linden
#

you could just do this in animations

zinc steeple
#

||@astral phoenix || Ok , I came back

zinc steeple
opal linden
#

oh-

#

nvm then

astral phoenix
zinc steeple
astral phoenix
#

Yupe
"component_groups": {
"rat_idle" : {
"minecraft:variant":{
"value": 0
},
"minecraft:timer":{
"looping": true,
"randomInterval":true,
"time": [5.0, 3.0],
"time_down_event": {
"event":"rat_sniff"
}
}
},

zinc steeple
#

make another event there and name it rat_sniff

#

and make it add the component group "rat_sniff" and make it remove the component group "rat_idle"

astral phoenix
#

ok

astral phoenix
zinc steeple
astral phoenix
zinc steeple
astral phoenix
zinc steeple
astral phoenix
zinc steeple
#

execellent, now head again to the component groups section

#

and add a component group called "rat_sniff"

#

add the same components you used for rat_idle

astral phoenix
zinc steeple
astral phoenix
#

ok

zinc steeple
#
                "minecraft:variant":{
                    "value": 1
                },
                "minecraft:timer":{
                "looping": true,
                "time": 1,
                "time_down_event": {
                "event":"rat_idle"
                    }
                }
#

add this to "rat_sniff"

astral phoenix
# zinc steeple add this to "rat_sniff"

Yupe
"component_groups": {
"rat_idle" : {
"minecraft:variant":{
"value": 0
},
"minecraft:timer":{
"looping": true,
"randomInterval":true,
"time": [0.0, 0.0],
"time_down_event": {
"event":"rat_sniff"
}
},
"rat_sniff" : {
"minecraft:variant":{
"value": 1
},
"minecraft:timer":{
"looping": true,
"time": 1,
"time_down_event": {
"event":"rat_idle"
}
}
},

zinc steeple
#

also how long is the sniffing animation?(like how many seconds till it ends?)

astral phoenix
#

3.5 length

zinc steeple
zinc steeple
zinc steeple
#

Just like this

            "rat_idle: {
                "add": {
                    "component_groups": ["rat_idle"]
                },
                "remove": {
                    "component_groups": ["rat_sniff"]
                }
            }
#

||@astral phoenix ||

astral phoenix
#

i see

astral phoenix
zinc steeple
astral phoenix
#

alright

zinc steeple
#

here is the fixed file use it @astral phoenix

astral phoenix
#

ty

zinc steeple
#

ok time for the final step

#

go to your animation controller file you sent at the beginning

astral phoenix
#

ok

zinc steeple
#

go to idle in states

#

to transitions

#

from

{"sniff": "v.idle >= 10.0"}

to

{"sniff": "q.variant == 1"}
astral phoenix
#

ok

zinc steeple
#

now, if everything was done correctly, it should work in game

astral phoenix
#

wait... Its a missing_state

zinc steeple
astral phoenix
#

it wont work right?

zinc steeple
#

@astral phoenix and afterwards head to minecraft and test it

astral phoenix
#

Oh then I probably messed around if it after posting

astral phoenix
#

well I fixed it

zinc steeple
#

okay very well, just test it now, and hopefully it will work fine

astral phoenix
#

ok

astral phoenix
zinc steeple
#

wha.....

#

well, that was unexpected

#

can you send the bp file?

astral phoenix
#

sure

zinc steeple
astral phoenix
#

yes

#

the animation is working when moving

zinc steeple
zinc steeple
astral phoenix
#

yes and it has something to do with the bp file

astral phoenix
zinc steeple
zinc steeple
#

i foung "physics" empty in the bp so it's most likely the reason

astral phoenix
#

ok

zinc steeple
#

try this file @astral phoenix

astral phoenix
#

ok

astral phoenix
zinc steeple
#

hmmm...

#

was it like this before i came to you?

astral phoenix
zinc steeple
#

@astral phoenix

astral phoenix
#

ok

astral phoenix
#

so now do I have to wait until it does the sniff animation?

zinc steeple
zinc steeple
astral phoenix
zinc steeple
# astral phoenix yeah

okay in the entity bp go to component groups to rat_idle and change the time to [7.0,10.0]

#

maybe the time was so low so it didn't play correctly

astral phoenix
#

ok

zinc steeple
#

like this "time": [7.0, 10.0],

zinc steeple
astral phoenix
#

ok

#

doesn't seem like its doing the sniff animation

zinc steeple
astral phoenix
zinc steeple
astral phoenix
#

sure

zinc steeple
#

and the entity rp pls

astral phoenix
#

ok

zinc steeple
astral phoenix
#

they do I haven't added them to the move controller yet

zinc steeple
#

replace it with the current one

astral phoenix
zinc steeple
zinc steeple
zinc steeple
astral phoenix
#

ok

zinc steeple
#

is it working now?

astral phoenix
#

the rat isn't playing it's animations

zinc steeple
#

ahh my bad, i will sent you the fixed file for this

astral phoenix
#

ok

zinc steeple
astral phoenix
#

not playing animations

#

||@zinc steeple ||

zinc steeple
astral phoenix
#

the move

#

animation

zinc steeple
#

ok, gotta fix it rq

astral phoenix
#

ok

zinc steeple
#

replace it with the animation controller

astral phoenix
#

ok

zinc steeple
astral phoenix
#

im getting there

zinc steeple
astral phoenix
zinc steeple
#

can you also send the animations file for the rat? @astral phoenix

astral phoenix
#

sure

zinc steeple
#

replace the first file with thebp entity file and the second with the animation controller

astral phoenix
#

ok

astral phoenix
zinc steeple
zinc steeple
astral phoenix
#

yes

#

nearly back to square one

zinc steeple
astral phoenix
#

ok

zinc steeple
#

hmmm, i see

#

it should work now

astral phoenix
#

ok

#

OMG

#

IT working

#

THANKS YOU 😭

zinc steeple
zinc steeple
#

But there is only one step left
I am sure you noticed that it something in chat
I will send you one last time a file that it doesn't do that.

astral phoenix
#

because I wanted it to do a sniff

zinc steeple
astral phoenix
#

oh ok XD

#

I can just delete the queue_command

zinc steeple
zinc steeple
#

Well, anything else?

astral phoenix
#

Im checking...

astral phoenix
zinc steeple
astral phoenix
#

ok

zinc steeple
#

@astral phoenix just test it

astral phoenix
#

ok

astral phoenix
zinc steeple
#

can you also pls send the render controller file?

astral phoenix
#

sure

zinc steeple
#

@astral phoenix

astral phoenix
#

yupe

astral phoenix
#

Thank you so much for being here for about 3 hours straight helping me with just a sniff animation

zinc steeple
astral phoenix
#

yes I do

zinc steeple
astral phoenix
#

I did learn something with bp file for entites though

zinc steeple
#

Btw, what addon are you making?

astral phoenix
# zinc steeple Btw, what addon are you making?

Download Honkai Star Rail using my link: https://hoyo.link/a0mxCMAd and make sure to use this code: BSN2EWMHA4RP to get 50 Stellar Jades!

Time for a little party trick.

Support me on Ko-Fi or YouTube for cool perks and alpha / experimental mod access!
https://ko-fi.com/doctor4t/tiers
https://www.youtube.com/channel/UCROkFwHWMk5QeZK_LHJPu5g/joi...

▶ Play video
zinc steeple
astral phoenix
#

I know because I dont make behavior packs

zinc steeple
#

and is also a great way to start as a beginner

astral phoenix
#

i know ty for your help making the animation work otherwise I would give up on it

zinc steeple
#

Well, Good luck with the addon!

astral phoenix
#

thanks