-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
CraftBukkit version 4402-Spigot-33ece3e-665900b (MC: 1.21.4) (Implementing API version 1.21.4-R0.1-SNAPSHOT)
-
Yes
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.