item

Represents an item from the game.

IRON_SHOVEL;

Parameters

  • item: the item

Example

Give a diamond to the current player.

mobs.give(
    mobs.target(LOCAL_PLAYER),
    DIAMOND,
    1
);

See Also

||blocks:block||