have you ever wanted to make an item be held out in front of the player in third person? or maybe you want an item to be carried down by the player's side like a briefcase, maybe you just want that wild flailing when running to stop messing with your item's placements
well look no further than "hand_swing" definitions, located within the minecraft:items part of resourcepacks (or within models themselves, but the "hand_animation_on_swap" is located within items so that's what i'm going off of), it would have 3-4 parts, which i will explain below
"hand_swing": {
"run_swing": true/false,
"attack_swing": true/false,
"hand_swing_range": 0..180 (with the default value being around 90?),
"hand_start_angle": 0..360 (with 0 being directly down)
}
"hand_swing" is merely the container
"run/attack_swing" are pretty self explanatory, dictating whether or not the hand holding the item swings when running or attacking (these could be one value that controls both but more options is never a bad thing)
"hand_swing_range" would be from 0 to 180 (no swinging arms in circles) and would dictate how high the swing goes in either direction when running (attack swings would be the same)
"hand_start_angle" would simply be where the arm is held at rest, holding an item is usually at about 22.5, while holding a trident would be at 180
Optionally this could be expanded to customize how much you swing when attacking too, but that might be asking for too much
Please sign in to leave a comment.
0 Comments