The Bug
When running /attribute @s minecraft:generic.attack_speed base set 0
, the player's disappears. Basically, setting the player's attack speed to 0 causes their hand to disappear. This is probably because of something with the attack animation.
Steps to Reproduce
Enter first person and hold nothing in your hand.
Set your "minecraft:generic.attack_speed" attribute to "0" and as you run this command, watch your hand closely.
/attribute @s minecraft:generic.attack_speed base set 0
Take note as to whether or not setting players' attack speeds to 0 causes their hands to disappear in first person.
Observed Behavior
Setting players' attack speeds to 0 causes their hands to disappear in first person.
Expected Behavior
Setting players' attack speeds to 0 would not cause their hands to disappear in first person.
Attachments
Comments 14
That's because of the animation it uses. If you pay attention, your hand/whatever item you swing will rise back to it's typical resting position as the attack cools down. If you set it to 0, it'll never cool down, causing the hand/item to never rise back.
Can confirm this behavior in 21w42a. Here are some extra details regarding this problem.
The Bug:
Setting players' attack speeds to 0 causes their hands to disappear in first person.
Steps to Reproduce:
Enter first person and hold nothing in your hand.
Set your "minecraft:generic.attack_speed" attribute to "0" and as you run this command, watch your hand closely.
/attribute @s minecraft:generic.attack_speed base set 0
Take note as to whether or not setting players' attack speeds to 0 causes their hands to disappear in first person.
Observed Behavior:
Setting players' attack speeds to 0 causes their hands to disappear in first person.
Expected Behavior:
Setting players' attack speeds to 0 would not cause their hands to disappear in first person.
Relates to MC-267797
Can confirm in 20w51a, however, it is just barely visible whilst punching.