give

Give blocks or items from the game to other players.

mobs.give(mobs.target(NEAREST_PLAYER), TNT, 1);

Parameters

  • target: a target selector that determines which players will receive the block or item
  • block: the block or item you want to give
  • amount: how many to give, like: 1

Example

Give 10 TNT blocks to all players.

mobs.give(mobs.target(ALL_PLAYERS), TNT, 10);