mojira.dev
MC-154094

Lectern running /clear turns items into ghost items

The bug

When running /clear in a lectern, the affected items turn into ghost items (client-only).

How to reproduce

/give @p lectern{BlockStateTag:{has_book:"true"},BlockEntityTag:{Book:{id:written_book,Count:1b,tag:{author:a,title:a,pages:['{"text":"Click here","clickEvent":{"action":"run_command","value":"/clear @s"}}']}}}}

Place this lectern, access it, then click the text.

Linked issues

Comments 7

Can confirm for 19w38b.

 

Confirmed in 1.16.1 and 20w27a.

Can confirm in 21w03a.

Can confirm in 21w06a.

Can confirm in 21w07a.

Can confirm in 21w08b.

Andres Acosta

boq

Confirmed

Low

Commands

mojang_internal_1

Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 2, 19w38b, 1.15.1, 1.16.1, ..., 21w03a, 1.16.5, 21w06a, 21w07a, 21w08b

21w10a

Retrieved