Item procedure blocks

Procedure blocks in the item category.

54
Returns
Inputs
Pick from list
Convert fluid block to bucket item
Convert fluid [block] to bucket itemItem · Item
Convert source to
Convert [source] toItem · Item
Is a tagged in item tags as b
Is [a] tagged in item tags as [b]Item · True / false
Make a copy of source
Make a copy of [source]Item · Item
Add enchantment enhancement ▾ with level level to item
Add enchantment [enhancement] with level [level] to [item]Item · Action (no value)
Can item harvest block
Can [item] harvest [block]Item · True / false
Can item be smelted
Can [item] be smeltedItem · True / false
Is item of rarity rarity ▾
Is [item] of rarity [rarity]Item · True / false
Cooldown item for ticks ticks for entity
Cooldown [item] for [ticks] ticks for [entity]Item · Action (no value)
Deal amount damage to item
Deal [amount] damage to [item]Item · Action (no value)
item enchanted with levels XP levels, include treasure enchantments: treasure
[item] enchanted with [levels] XP levels, include treasure enchantments: [treasure]Item · Item
Get fuel power of item
Get fuel power of [item]Item · Number
Get remaining cooldown percentage of item for entity
Get remaining cooldown percentage of [item] for [entity]Item · Number
Get damage of item
Get damage of [item]Item · Number
Get level of enchantment enhancement ▾ of item
Get level of enchantment [enhancement] of [item]Item · Number
Get food value of item
Get food value of [item]Item · Number
Get max possible damage of item
Get max possible damage of [item]Item · Number
Get type ▾ of potion ▾ as item
Get [type] of [potion] as itemItem · Item
Get saturation value of item
Get saturation value of [item]Item · Number
Is item on cooldown for entity
Is [item] on cooldown for [entity]Item · True / false
Is item enchantable
Is [item] enchantableItem · True / false
Is item enchanted
Is [item] enchantedItem · True / false
Is item food
Is [item] foodItem · True / false
Is item of item type item_type ▾
Is [item] of item type [item type]Item · True / false
Get display name of item
Get display name of [item]Item · Text
Copy data components of a (if it has any) onto b only custom components ignoredefaults ▾
Copy data components of [a] (if it has any) onto [b] only custom components [ignoredefaults]Item · Action (no value)
Get custom data itemstack tag tagName of item
Get custom data itemstack tag [tagName] of [item]Item · Item
Set custom data itemstack tag tagName of item to tagValue
Set custom data itemstack tag [tagName] of [item] to [tagValue]Item · Action (no value)
Get custom data logic tag tagName of item
Get custom data logic tag [tagName] of [item]Item · True / false
Set custom data logic tag tagName of item to tagValue
Set custom data logic tag [tagName] of [item] to [tagValue]Item · Action (no value)
Get custom data number tag tagName of item
Get custom data number tag [tagName] of [item]Item · Number
Set custom data number tag tagName of item to tagValue
Set custom data number tag [tagName] of [item] to [tagValue]Item · Action (no value)
Get custom data text tag tagName of item
Get custom data text tag [tagName] of [item]Item · Text
Set custom data text tag tagName of item to tagValue
Set custom data text tag [tagName] of [item] to [tagValue]Item · Action (no value)
Random item from tag tag or AIR if no item is found
Random item from tag [tag] or AIR if no item is foundItem · Item
Get registry name of item
Get registry name of [item]Item · Text
Set damage of item to amount
Set damage of [item] to [amount]Item · Action (no value)
Set display name of item to displayname
Set display name of [item] to [displayname]Item · Action (no value)
Show item totem-like animation
Show [item] totem-like animationItem · Action (no value)
Get smelting result of item
Get smelting result of [item]Item · Item
Get a copy of item from slot slotid of item if it has inventory
Get a copy of item from slot [slotid] of [item] if it has inventoryItem · Item
Set amountslotitem in slot slotid of item if it has inventory
Set [amount] [slotitem] in slot [slotid] of [item] if it has inventoryItem · Action (no value)
Get number of items in item
Get number of items in [item]Item · Number
Get max stack size of item
Get max stack size of [item]Item · Number
Grow item for amount
Grow [item] for [amount]Item · Action (no value)
Has item enchantment enhancement ▾
Has [item] enchantment [enhancement]Item · True / false
Is item damageable
Is [item] damageableItem · True / false
Is item damaged
Is [item] damagedItem · True / false
Is item stackable
Is [item] stackableItem · True / false
Remove specific enchantment enhancement ▾ from item
Remove specific enchantment [enhancement] from [item]Item · Action (no value)
Set number of items in item to amount
Set number of items in [item] to [amount]Item · Action (no value)
Shrink item for amount
Shrink [item] for [amount]Item · Action (no value)
For each item from loot table location as _placeholderfield ▾ do foreach
For each item from loot table [location] as [ placeholder] do [foreach]Item · Action (no value)
Convert registry name registryname to item or AIR if conversion fails
Convert registry name [registryname] to item or AIR if conversion failsItem · Item