#Animations for holding
1 messages · Page 1 of 1 (latest)
i was having problems with this aswell, coudlnt find where I’d add the animation controllers
If someone gives you the solution can you @ me?
yeah for sure
this is pretty simple to do, just go to 'player.entity.json' and then in animations add your zombie_holding animation (just add it and don't remove other animations), then go to scripts and animate it by using query.is_item_name_any
Here's the example :
"zombie_holding": "animation.zombie.attack_bare_hand"
},
"scripts": {
"animate": [ {"zombie_holding":"query.is_item_name_any('slot.weapon.mainhand',0,'your_custom_item_identifier','player')"}
]
}```
it's invisible?
@quick marsh
for the animations in first person, you have to follow the wiki.dev tutorials about attachables, because currently first person animations are a bit confusing to master
but it shouldn't be too hard
just make 2 animations, one's for first person and the other one's for third person
the 3rd person animation is in the attachable file
could add more but that means you have to add both the third and first person animations
how about the first person animation?
"format_version": "1.10.0",
"minecraft:attachable": {
"description": {
"identifier": "xx:colt_m1911",
"materials": {
"default": "entity",
"enchanted": "entity_alphatest_glint"
},
"textures": {
"default": "textures/guns/colt_m1911",
"enchanted": "textures/misc/enchanted_item_glint"
},
"geometry": {
"default": "geometry.colt_m1911"
},
"animations": {
"first_person": "animation.colt_m1911.first_person",
"third_person": "animation.colt_m1911.third_person"
},
"scripts": {
"animate": [
{
"first_person": "context.is_first_person == 1.0"
},
{
"third_person": "context.is_first_person == 0.0"
}
]
},
"render_controllers": [
"controller.render.item_default"
]
}
}
}```
both the first and third is in the attachable file
so this is the only thing in the player.json file
try sending your player entity code
.
zombie_holding effects first person and third person animations, try adding !variable.is_first_person so it doesn't play in first person
where would i add that
"zombie_holding": "query.is_item_name_any('slot.weapon.mainhand', 0, 'Sxx:colt_m1911', 'Sxx:olympia', 'Sxx:remington_700' 'player'), && !variable.is_first_person"
like that?
yes but don't put a comma before &&
after that try checking it ingame
it won't fix the animation just yet, you still need to make the weapon look right in the first person anim
yeah it all works now
i already had a basic first person holding
but i wanted the arms up in third person so
thank you though!!!
happy to help!