mojira.dev
MC-137486

Arrows shot from Crossbows don't get appropriate NBT

Arrows shot from a Crossbow don't get the "ShotFromCrossbow" NBT tag set to 1. Shooting them from a Crossbow with Piercing also doesn't set the "PierceLevel" NBT tag to the appropriate level. NBT that would also be added if the arrow was shot from a bow seems to work as expected (confirmed for tipped arrows).

Linked issues

Comments 4

Please do not mark unreleased versions as affected.
You don't have access to them yet.

Cannot reproduce. The tags return as expected while in the air. The tags are set to 0 once they hit the ground; however, I don't think that would be a bug.

I can reproduce this on 1.14.4 This bug prevents me from making a difference between arrow shots and crossbow shots in the same world.

The purpose of NBT is not to allow "datapack creators" to check where an entity came from, it's for serialization, and this tag serves its purpose exactly as designed. Besides, you should be tagging on creation anyways, since nbt= is very expensive compared to tag=

Koen Slotboom

(Unassigned)

Unconfirmed

Minecraft 18w43a

Retrieved