Named Item/Inventory (Expression) — Skript

Addon: Skript · Category: Expression · Since: 2.0, 2.2-dev34 (inventories)

Syntax

%itemtype/inventorytype% (named|with name[s]) %textcomponent%

Description

Directly names an item/inventory, useful for defining a named item/inventory in a script. If you want to (re)name existing items/inventories you can either use this expression or use <code>set <a href='#PropExprName'>name of &lt;item/inventory&gt;</a> to &lt;text&gt;</code>.

Examples

give a diamond sword of sharpness 100 named "<gold>Excalibur" to the player
set tool of player to the player's tool named "<gold>Wand"
set the name of the player's tool to "<gold>Wand"
open hopper inventory named "Magic Hopper" to player

View source