TextComponent - Item Name (Expression) — SkBee
Addon: SkBee · Category: Expression · Since: 2.4.0
Syntax
[the] component (item|(custom|display)) name of %itemstacks/itemtypes/slots%Description
Get/set the component name of an Item. `(custom|display) name` = Get/set the `custom_name` component of an item just like you would with Skript's name expression. `item name` = Get/set the `item_name` component of an item (Requires Minecraft 1.20.5+). Unlike setting the custom/display name of an item, this name cannot be changed through an anvil, and does not show in some labels, such as banner markers and item frames. See [**McWiki**](https://minecraft.wiki/w/Data_component_format#item_name) for more details.
Examples
set component custom name of player's tool to translate component of "item.minecraft.diamond_sword"
delete component custom name of player's tool
set component item name of player's tool to mini message from "Stickaxe"
delete component item name of player's tool