mojira.dev
MC-180616

Setting player's attack speed to 0 causes their hand to disappear

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

Can confirm in 20w51a, however, it is just barely visible whilst punching.

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 in 21w03a.

Can confirm in 21w06a.

Can confirm in 1.16.5 and 21w08b.

4 more comments

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.

Can confirm in 1.18.1.

Can confirm in 1.18.2.

Can confirm in 1.19.2.

Tim Keddie

(Unassigned)

Confirmed

Platform

Low

Commands

20w17a, 1.16.1, 20w27a, 1.16.3, 20w51a, ..., 1.19.2, 1.19.3, 1.19.4, 23w17a, 1.20.1

Retrieved