mojira.dev
MC-206922

Items dropped by entities that are killed by lightning instantly disappear

Turtle example:
As per Issue MC-125562, Turtles are supposed to and do indeed drop bowls when struck by lightning. The lightning however also destroys the bowl which was just dropped by the turtle, making it seem like no item ever drops.

We confirmed that the bowl gets dropped by testing for dropped bowls with command blocks (they exist for 1-2 ticks) and also by killing a turtle with lightning on top of a hopper . The hopper in this case sucks the bowl in before it is destroyed.

After testing some more mobs it seems like no item drop ever survives the lightning.

Fix

Fix by @unknown can be found in this comment.

Linked issues

Attachments

Comments 13

Still in 21w05b
This seriously ruins a game mechanic which you guys intended.

Can easily be fixed by preventing lightning from destroying items with an age smaller than 8

Affects 1.16.5 and 21w11a and also all XP orbs get destroyed immediately.

Affects 1.17 Pre-release 4
May relate to MC-178111 MC-72028

3 more comments

Can confirm in 1.17.1 Release Candidate 2.

Can confirm in 21w38a.

Can confirm in 1.21.8

Puad Dinger

(Unassigned)

Confirmed

Platform

Normal

Entities, Items

damage, item, lightning, lightning_bolt

1.16.4, 21w05b, 21w15a, 21w20a, 1.17, ..., 24w07a, 24w14a, 1.21, 1.21.1, 24w36a

Retrieved