“i_have_hands” is a really cool mod, but I just can’t get it to work with “x player api”. Apparently, “x player api” doesn’t have a hand position that would hold the chest. And I don’t know what to do — maybe someone can suggest a solution. In symbiosis, “i_have_hands” and “x player api” are simply amazing. These two developments, unique to the world of Luanti, make the game incredibly lively, more so than ever before.
How should the carrying pose be triggered?
• Automatically when wielding specific items (e.g. default:chest, or items in group:heavy_carry)?
• When picking up and carrying a placed node in-world (like the carrychest mod)?
• Via an explicit API call / chatcommand / social emote?
You can copy the base model (glb/b3d) and add new NLA track to it for carrying chest:
-- Register custom model variantx_player_api.register_model("my_mod:character.b3d",{base_model="character.b3d",mesh="my_character.b3d",mesh_glb="my_character.glb",animation_speed=30,textures={"character.png"},is_multitrack=true,-- glTF multi-track action layer (Priority 1)animations_glb={carry_chest={track="carry_chest",priority=1,-- Action layer: blends on top of Priority 0 locomotionspeed=1.0,loop=true,is_action=true,blend=0.15,-- Smooth crossfade transition},},-- Fallback for legacy B3D clients (Luanti < 5.17)animations={carry_chest={x=800,y=820,loop=true,is_action=true},}})-- Intercept and redirect player models to our enhanced meshx_player_api.register_model_redirect("character.b3d","my_mod:character.b3d")
Second option is using bone overrides: Programmatically positioning and rotating Arm_Right and Arm_Left bones in real time using x_player_api.
set_bone_override, requiring zero changes to 3D asset files and working dynamically with any wielded item.
“i_have_hands” is a really cool mod, but I just can’t get it to work with “x player api”. Apparently, “x player api” doesn’t have a hand position that would hold the chest. And I don’t know what to do — maybe someone can suggest a solution. In symbiosis, “i_have_hands” and “x player api” are simply amazing. These two developments, unique to the world of Luanti, make the game incredibly lively, more so than ever before.
How should the carrying pose be triggered? • Automatically when wielding specific items (e.g. default:chest, or items in group:heavy_carry)? • When picking up and carrying a placed node in-world (like the carrychest mod)? • Via an explicit API call / chatcommand / social emote?
I have added support for i_have_hands in x_player_bridge now, you can see how it can be implemented