Player
paper/player_give_item
Player Give Item
Gives an item to a player's inventory. Accepts an ItemStack or a material name.
Note: If the player's inventory is full, items are dropped at their location.
Inputs
| Name | Type | Optional | Description |
|---|---|---|---|
exec |
exec | Incoming execution. | |
player |
player | The player. | |
item |
any | ✓ | ItemStack from a Create Item node. |
material |
string | ✓ | Material name (used when no item is connected). |
amount |
number | ✓ | Stack size (used when no item is connected). |
Outputs
| Name | Type | Description |
|---|---|---|
exec |
exec | Continues after giving. |
Properties
| Key | Type | Default | Description |
|---|---|---|---|
material |
string | "DIAMOND" |
Material |
amount |
number | 1 |
Amount |