Aller au contenu principal
MC COMMANDS logoMC COMMANDS
CONSTRUCTEUR DE COMMANDES

Minecraft /give Generator.

Gives an item to a player. Ajustez les paramètres ci-dessous pour générer instantanément la bonne syntaxe.

64
SORTIE EN DIRECT

Syntaxe Minecraft Générée

Copiez et collez cette commande dans votre console de jeu Minecraft (touche T) ou dans un bloc de commande.

/give @s diamond 64

Que fait cette commande ?

Donne 1x **item** à vous-même (`@s`).
Documentation & Guide

About the /give Generator

The /give generator builds commands to deliver items, building blocks, tools, and weapons directly into player inventories with configurable stack counts, Java 1.20.5+ item components, or Bedrock adventure mode permissions.

How to Use This Generator

  1. Select your Target Selector (e.g., @s for yourself, @p for closest player, or @a for everyone).
  2. Search or choose an Item ID from the autocomplete catalogue (e.g. minecraft:diamond_sword).
  3. Adjust the Quantity slider between 1 and 64 items.
  4. Optionally input custom components or tags (such as [enchantments={...}] on Java).
  5. Toggle between Java and Bedrock Edition tabs to get the exact syntax for your version.
  6. Click Copy Command and paste directly into Minecraft chat (T) or a command block.

Parameters & Options Explained

Target Selector

Specifies which player or entity receives the item. @s targets the executor, @p targets the nearest player, @a targets all players on the server.

Item ID

The official namespaced identifier for the item (e.g., minecraft:netherite_pickaxe in Java, netherite_pickaxe in Bedrock).

Quantity

The number of items to grant in a single command, from 1 up to a full stack of 64.

Custom Components / Tags

Java 1.20.5+ square-bracket components [key=val] for custom enchantments, names, and attributes, or Bedrock JSON permissions (can_place_on / can_destroy).

Practical In-Game Example

Tested & Validated
/give @p minecraft:diamond_sword[enchantments={levels:{"minecraft:sharpness":5,"minecraft:unbreaking":3}}] 1

Gives the nearest player a Sharpness V, Unbreaking III diamond sword using Java 1.20.5+ modern square-bracket component syntax.

Java vs Bedrock Compatibility

Java Edition:Java Edition 1.20.5 and newer uses square bracket item components [enchantments={...}]. Legacy curly brace NBT syntax {Enchantments:[...]} was deprecated in 1.20.5.
Bedrock Edition:Bedrock Edition does not support custom enchantments or potion data directly in /give. Only numeric data values and adventure block permissions (can_place_on / can_destroy) are accepted.

Important Limitations & Rules

  • Player chat has a 256-character limit; deeply nested item components must be placed inside command blocks or function files (.mcfunction).
  • Items cannot be given to offline players.
  • In Bedrock Edition, custom enchantments cannot be applied through /give; use /enchant or an anvil instead.
Advertisement