set pdc %key:STRING% of %i:ITEMSTACK% to %val:STRING% — Statements

set pdc %key:STRING% of %i:ITEMSTACK% to %val:STRING%
Item1.0.0

Description

Sets a string value in an item stack's PersistentDataContainer.

Examples

set pdc "custom_id" of item to "magic_wand"

All Possible Usages (1)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

set pdc <key> of <i> to <val>

Related (Item)