mojira.dev
MC-141346

Trident entities can have the "ShotFromCrossbow" and "PiercingLevel" tags, but they don't affect them

See summary. This bug probably occurs due to the trident's entity being derived from the arrow entity.

How to reproduce:

  1. Summon 3 creepers in a row that have NoAI set

  2. Put down a repeating command block, set it to "Always Active", and put in the following command:

    data merge entity @e[type=trident,limit=1] {PierceLevel:3}
  3. Throw the trident at the creepers, then replace trident with arrow

  4. Shoot the arrow at the creepers, they all get hurt

  5. Then replace the command in the command block with the following command:

    data merge entity @e[type=trident,limit=1] {ShotFromCrossbow:1}
  6. Throw the trident

Linked issues

Comments 2

Can confirm in 21w05b.

Can confirm in 1.17.1.

Yellow01

(Unassigned)

Confirmed

(Unassigned)

ShotByCrossbow, crossbow, entity, piercing, trident

Minecraft 18w50a, 20w10a, 1.17.1

Retrieved