mojira.dev
MC-59626

Arrows lose their Punch enchantment property when unloaded

Arrows that were shot by a bow that is enchanted with a punch enchantment do not remember their punch property when being unloaded (for example by logging out).

How to reproduce:

1. Get yourself a Punch II Bow and some arrows

/give @s minecraft:bow{Enchantments:[{id:"minecraft:punch",lvl:2s}]}
/give @s minecraft:arrow 64

2. Place two dirt blocks beside each other in the air so that there are four blocks space between the floor and the blocks.

3. Go into survival mode if you aren't already
4. Shoot an arrow with the Punch II into the underside of each block.
5. Stand below the first block and mine it so that the arrow falls and hits you.
6. You will be thrown away quite a bit.
7. Log out.
8. Log back in and wait a few seconds because the player is invulnerable for a few seconds after login.
9. Stand below the second block and mine it so that the arrow falls and hits you.
10. When the arrow hits you, you will be knocked back only a little (as much as a normal Arrow does).

This behavior is expected since there is no NBT-Tag implemented in which the punch property is saved in.

Linked issues

Comments 9

— Get yourself a Power II Bow
A punch II bow, but the enchantment ID is right. (49=punch)

Thanks, I fixed it

Confirmed for 14w29b

To see it a little bit better you can also set it to level 20 🙂

/give @p minecraft:bow 1 0 {ench:[{id:49s,lvl:20s}]}

Confirmed for

  • 16w36a

I tried to reproduce this for 1.13.1 but seems like in the log in you have invulnerability time so the arrow won't hit you.

Confirmed in 1.15.2 and 20w22a.

Confirmed in 1.16.3.

TomatoClownfish

Can confirm in 1.19.3.

Quijx

slicedlime

Confirmed

Platform

Low

Entities, Save Data

arrow, enchantment, punch, unload

Minecraft 14w26c, Minecraft 1.7.10, Minecraft 14w28a, Minecraft 14w29b, Minecraft 14w32d, ..., 1.16.3, 1.16.4, 20w51a, 1.19.3, 1.20.2

24w18a

Retrieved