Item Given Variables
Item Given variables are filled by the Minecraft Item Given event.
| Variable | Value |
|---|---|
$minecraftItemGiverName | Optional Giver Name configured in Give Item. |
$minecraftItemGivenId | Actual item ID that Minecraft gave. |
$minecraftItemGivenDisplayName | The Display Name of the item. |
$minecraftItemGivenRequestedId | Item ID or tag configured in Give Item. |
$minecraftItemGivenAmount | The amount that was given. |
$minecraftItemGivenData | Final item data used after $minecraftItemName was resolved. |
The receiving player is always the player linked by Player Code. Use $minecraftPlayerName or $minecraftPlayerDisplayName for that player.
Example
$minecraftItemGiverName gave $minecraftItemGivenAmount x $minecraftItemGivenDisplayName to $minecraftPlayerDisplayName.
When Give Item uses a tag such as #minecraft:logs, $minecraftItemGivenRequestedId contains the tag and $minecraftItemGivenId contains the selected item, such as minecraft:oak_log.