[SPIGOT-7976] Renaming a sign item adds block_entity_data component Created: 08/Dec/24  Updated: 25/Dec/24  Resolved: 23/Dec/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: blablubbabc Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: 1.21.4

Attachments: PNG File image-2024-12-08-19-51-11-348.png    
Version:  CraftBukkit version 4402-Spigot-33ece3e-665900b (MC: 1.21.4) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

Renaming a sign item, either in an anvil or by a plugin via ItemMeta, seems to also add a block_entity_data component to the item. For OP players this also ends up showing the big red "using this item could execute a command" warning.

[19:51:45] [Server thread/INFO]: blablubbabc has the following entity data: [{count: 1, Slot: 0b, components: {"minecraft:custom_name": '"Test"', "minecraft:block_entity_data": {back_text: {has_glowing_text: 0b, color: "black", messages: ['""', '""', '""', '""']}, is_waxed: 0b, id: "minecraft:sign", front_text: {has_glowing_text: 0b, color: "black", messages: ['""', '""', '""', '""']}}}, id: "minecraft:oak_sign"}, {count: 62, Slot: 9b, components: {"minecraft:custom_name": '"CHESTZ"'}, id: "minecraft:chest"}, {count: 1, Slot: 11b, id: "minecraft:acacia_sign"}] 

 

I tested and cannot reproduce this behavior in vanilla Minecraft.


Generated at Sun Mar 30 02:41:48 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.