<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fgive</id>
	<title>Minecraft:Commands/give - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Minecraft%3ACommands%2Fgive"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/give&amp;action=history"/>
	<updated>2026-04-09T10:35:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/give&amp;diff=49695&amp;oldid=prev</id>
		<title>imported&gt;Nixinova: /* Java Edition */</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Minecraft:Commands/give&amp;diff=49695&amp;oldid=prev"/>
		<updated>2026-03-29T22:07:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Java Edition&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Redirect|Give|the option in the teacher menu|Teacher Menu#Give}}&lt;br /&gt;
{{Infobox command&lt;br /&gt;
| name = give&lt;br /&gt;
| oplevel =&lt;br /&gt;
* 2 {{only|java|short=1}}&lt;br /&gt;
* 1 {{only|bedrock|short=1}}&lt;br /&gt;
| others = [[Minecraft:Cheat]] only{{only|bedrock|short=1}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Gives a specified amount of a certain [[Minecraft:item]] to one or more [[Minecraft:player]]s.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Gives the specified item(s) to the target(s). If &amp;lt;code&amp;gt;&amp;lt;targets&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;player: target&amp;lt;/code&amp;gt; resolves to multiple targets, each receives the specified number of items.&lt;br /&gt;
&lt;br /&gt;
If there is enough room in the player&amp;#039;s inventory, or the player is in creative mode, gives the specified item(s). {{IN|java}}, this also summons a &amp;quot;fake&amp;quot; [[Minecraft:Item (entity)|item entity]], with its {{cd|PickupDelay}} tag set to {{cd|32767}} and its {{cd|Age}} tag set to {{cd|5999}}, which would make it impossible to be picked up, and have it despawn within one tick.&lt;br /&gt;
&lt;br /&gt;
If there is not enough room in the player&amp;#039;s inventory, and the player is not in creative mode, gives the specified item(s) until the inventory is full, and summons the rest items as a [[Minecraft:Item (entity)|item entity]] dropped by the player. {{IN|java}}, the item&amp;#039;s {{cd|Owner}} tag is set to the target and its {{cd|PickupDelay}} tag is set to {{cd|0}} so that it can be picked up only by that player at any time. {{IN|bedrock}}, the item entity is dropped by the player as normal, having a 10-tick pickup delay and being able to be picked up by any entity. {{IN|bedrock}}, when dropping the item entity, the item using progress of the player is discarded. {{IN|bedrock}}, the &amp;quot;Use doors and switches&amp;quot; option (in the &amp;quot;Player Permission&amp;quot; screen) disables the player to drop any item entity, even caused by the {{cd|/give}} command.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:&amp;lt;code&amp;gt;give &amp;lt;targets&amp;gt; &amp;lt;item&amp;gt; [&amp;lt;count&amp;gt;]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
:&amp;lt;code&amp;gt;give &amp;lt;player: target&amp;gt; &amp;lt;itemName: Item&amp;gt; [amount: int] [data: int] [components: json]&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
{{argument|targets|entity|player: target|CommandSelector&amp;lt;Player&amp;gt;}}&lt;br /&gt;
: Specifies the target(s) to give item(s) to.&lt;br /&gt;
: {{arg desc|je=entity|amount=multiple|type=players|be=player}}&lt;br /&gt;
&lt;br /&gt;
{{argument|item|item_stack|itemName: Item|enum}}&lt;br /&gt;
: Specifies the item to give.&lt;br /&gt;
: {{arg desc|je=item_stack|be=CommandItem}}&lt;br /&gt;
&lt;br /&gt;
{{argument|count|integer|amount: int|int}}&lt;br /&gt;
:Specifies the number of items to give. If not specified, defaults to &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;.&lt;br /&gt;
: {{arg desc|je=integer|be=int|min=1}} {{IN|bedrock}}, it should be between 1 and 32767 (inclusive).&lt;br /&gt;
&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|data: int|int}} &lt;br /&gt;
: Specifies the item [[Minecraft:data value]] of the given item(s). Values that are invalid for the specified item id revert to 0. If not specified, defaults to 0.&lt;br /&gt;
: {{arg desc|be=int}} It should be between 0 and 32767 (inclusive).&amp;lt;!-- do not put 16-bit integer as it redundant --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{el|be|short=1}}: {{argument|be=1|components: json|Json::Value}} &lt;br /&gt;
: Specifies the [[Minecraft:item components]] of the given item(s). Like data tags but supports only &amp;lt;code&amp;gt;minecraft:can_place_on&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minecraft:can_destroy&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;minecraft:item_lock&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;minecraft:keep_on_death&amp;lt;/code&amp;gt; functions (see [[#Examples]]).&lt;br /&gt;
: {{arg desc|be=Json::Value}}&lt;br /&gt;
&lt;br /&gt;
== Result ==&lt;br /&gt;
{{Result table}}&lt;br /&gt;
{{Result table|The command is incomplete, or any argument is not specified correctly.|unparseable|unparseable}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;player: target&amp;lt;/code&amp;gt; is a target selector that is not of [[Minecraft:Target_selectors#Player_type_and_single_type|player type]].|N/A|fail}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;amount: int&amp;lt;/code&amp;gt; is not between 1 and 32767.|succeed}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;data: int&amp;lt;/code&amp;gt; is not between 0 and 32767.}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;components: json&amp;lt;/code&amp;gt; is not an [[Minecraft:item components]].|N/A}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;&amp;lt;targets&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;player: target&amp;lt;/code&amp;gt; fails to resolve to one or more online players.|fail}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;&amp;lt;item&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;itemName: item&amp;lt;/code&amp;gt; is an ungivable item.}}&lt;br /&gt;
{{Result table|&amp;lt;code&amp;gt;&amp;lt;count&amp;gt;&amp;lt;/code&amp;gt; is larger than 100 stack worth items.{{note|This should fail, but it currently succeeds due to {{bug|MC-302537}}.}}|succeed|N/A}}&lt;br /&gt;
{{Result table|succeed}}&lt;br /&gt;
{{Result table}}&lt;br /&gt;
&lt;br /&gt;
{{Notelist}}&lt;br /&gt;
&lt;br /&gt;
== Output ==&lt;br /&gt;
{{Output table}}&lt;br /&gt;
{{Output table|edition=je|On fail|0|0}}&lt;br /&gt;
{{Output table|On success|1|1|the number of targeted players}}&lt;br /&gt;
{{Output table|edition=be|On fail|0}}&lt;br /&gt;
{{Output table|On success|the number of players who are given item(s)}}&lt;br /&gt;
{{Output table}}&lt;br /&gt;
&lt;br /&gt;
== Examples == &lt;br /&gt;
* To give the nearest player a pig [[Minecraft:spawn egg]]:&lt;br /&gt;
** &amp;lt;code&amp;gt;/give @p pig_spawn_egg&amp;lt;/code&amp;gt;&lt;br /&gt;
* To give the nearest player a [[Minecraft:diamond sword]] with Lore that says &amp;quot;Example&amp;quot;:&lt;br /&gt;
** &amp;lt;code&amp;gt;/give @p diamond_sword[lore=[&amp;quot;Example&amp;quot;]] 1&amp;lt;/code&amp;gt;{{only|java}}&lt;br /&gt;
* To give all players a potion that has the [[Minecraft:Night Vision]] effect:&lt;br /&gt;
** &amp;lt;code&amp;gt;/give @a potion[potion_contents={potion:&amp;quot;minecraft:night_vision&amp;quot;}] 1&amp;lt;/code&amp;gt;{{only|java}}&lt;br /&gt;
** &amp;lt;code&amp;gt;/give @a potion 1 5&amp;lt;/code&amp;gt;{{only|bedrock}} &lt;br /&gt;
* To give a random player a [[Minecraft:Sharpness]] X diamond sword:&lt;br /&gt;
** &amp;lt;code&amp;gt;/give @r diamond_sword[enchantments={&amp;quot;minecraft:sharpness&amp;quot;:10}] 1&amp;lt;/code&amp;gt;{{only|java}}&lt;br /&gt;
* To give the player executing the command a [[Minecraft:block of diamond]] that can be placed on [[Minecraft:dirt]] and can break [[Minecraft:blocks of quartz]], even in Adventure mode.&lt;br /&gt;
** &amp;lt;code&amp;gt;/give @s diamond_block[can_place_on={blocks:&amp;quot;dirt&amp;quot;},can_break={blocks:&amp;quot;quartz_block&amp;quot;}] 1&amp;lt;/code&amp;gt;{{only|java}}&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/give @s diamond_block 1 0 {&amp;quot;minecraft:can_place_on&amp;quot;:{&amp;quot;blocks&amp;quot;:[&amp;quot;dirt&amp;quot;]},&amp;quot;minecraft:can_destroy&amp;quot;:{&amp;quot;blocks&amp;quot;:[&amp;quot;quartz_block&amp;quot;]}} &amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;{{only|bedrock}}&lt;br /&gt;
* To give all players a level 2 Wither Potion with [[Minecraft:Knockback]] X:&lt;br /&gt;
** &amp;lt;code&amp;gt;/give @a potion[enchantments={&amp;quot;minecraft:knockback&amp;quot;:10},potion_contents={custom_effects:[{id:&amp;quot;minecraft:wither&amp;quot;,amplifier:1,duration:3600}]}] 1&amp;lt;/code&amp;gt;{{only|java}}&lt;br /&gt;
* To give the nearest player a diamond sword that is not dropped upon death:&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/give @p diamond_sword 1 0 {&amp;quot;keep_on_death&amp;quot;:{}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;{{only|bedrock}}&lt;br /&gt;
* To give all players a stick that cannot be dropped or crafted with:&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/give @a stick 1 0 {&amp;quot;item_lock&amp;quot;:{&amp;quot;mode&amp;quot;:&amp;quot;lock_in_inventory&amp;quot;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;{{only|bedrock}}&lt;br /&gt;
* To give a random player a [[Minecraft:wooden shovel]] that cannot be moved from its slot, dropped, or crafted with:&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/give @r wooden_shovel 1 0 {&amp;quot;item_lock&amp;quot;:{&amp;quot;mode&amp;quot;:&amp;quot;lock_in_slot&amp;quot;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;{{only|bedrock}}&lt;br /&gt;
* To give the nearest player a grass block that works like a [[Minecraft:pickaxe]]:&lt;br /&gt;
** &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;/give @p grass_block[max_stack_size=1,max_damage=100,damage=0,tool={default_mining_speed:2,damage_per_block:1,rules:[{blocks:&amp;quot;#mineable/pickaxe&amp;quot;,speed:8,correct_for_drops:true}]}] 1&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;{{only|java}}&lt;br /&gt;
* To give a random player an [[Minecraft:item frame]] that is invisible:&lt;br /&gt;
** &amp;lt;code&amp;gt;/give @r minecraft:item_frame[minecraft:entity_data={id:item_frame,Invisible:1b}] 1&amp;lt;/code&amp;gt;{{only|java}}&lt;br /&gt;
*To give the nearest player a spawn egg that looks like a wolf spawn egg but spawns a cat:&lt;br /&gt;
**&amp;lt;code&amp;gt;/give @p minecraft:wolf_spawn_egg[entity_data={id:&amp;quot;minecraft:cat&amp;quot;}]&amp;lt;/code&amp;gt; {{only|java}}&lt;br /&gt;
*To give the nearest player 36 stacks of 64 totems each:&lt;br /&gt;
**&amp;lt;code&amp;gt;/give @s minecraft:totem_of_undying[max_stack_size=64] 2304&amp;lt;/code&amp;gt; {{only|java}}&lt;br /&gt;
&lt;br /&gt;
== History ==&lt;br /&gt;
=== &amp;#039;&amp;#039;Java Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable&lt;br /&gt;
|{{HistoryLine|java alpha}}&lt;br /&gt;
|{{HistoryLine||v1.0.15|dev=server 0.1.0|Added {{cmd|give|link=none}}. &lt;br /&gt;
|The {{cmd|give|link=none}} [[Minecraft:commands|command]] always gives exactly one of the specified [[Minecraft:item]] (by numeric ID) to the specified [[Minecraft:player]].}}&lt;br /&gt;
|{{HistoryLine||v1.0.16_01|Added count argument to {{cmd|give|link=none}}.{{check version|not on page}}}}&lt;br /&gt;
|{{HistoryLine|java}}&lt;br /&gt;
|{{HistoryLine||1.0.0|dev=Beta 1.9 Prerelease 4|Added {{cd|damage}} value argument to {{cmd|give|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.3.1|dev=12w16a|{{cmd|give|link=none}} is now usable in singleplayer.}}&lt;br /&gt;
|{{HistoryLine||1.4.2|dev=12w38a|{{cmd|give|link=none}} now gives items directly to the player instead of dropping them from the player.}}&lt;br /&gt;
|{{HistoryLine||1.5|dev=13w04a|{{cmd|give|link=none}} now accepts [[Minecraft:Java Edition pre-flattening data values|data value]] as the fourth argument.}}&lt;br /&gt;
|{{HistoryLine||1.7.2|dev=13w36a|Added {{cd|dataTag}} argument to {{cmd|give|link=none}}.}}&lt;br /&gt;
|{{HistoryLine||1.8|dev=14w32a|{{cmd|give|link=none}} can no longer make &amp;#039;illegal&amp;#039; stacks (such as 24 [[Minecraft:ender pearl]]s or 5 [[Minecraft:iron sword]]s).}}&lt;br /&gt;
|{{HistoryLine||1.12|dev=17w16b|{{cmd|give|link=none}} now uses the {{cd|@s}} selector, for giving specifically yourself an item.}}&lt;br /&gt;
|{{HistoryLine||1.17|dev=21w10a|{{cmd|give|link=none}} can now only give up to 100 stacks worth of items at a time.}}&lt;br /&gt;
|{{HistoryLine||1.20.5|dev=24w09a|Replaced item NBT tag with [[Minecraft:data component]]s, therefore changing the syntax.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== &amp;#039;&amp;#039;Bedrock Edition&amp;#039;&amp;#039; ===&lt;br /&gt;
{{HistoryTable|{{HistoryLine|pocket alpha}}&lt;br /&gt;
|{{HistoryLine||v0.16.0|dev=build 1|Added {{cmd|give|link=none}}.&lt;br /&gt;
|The functionality is almost equivalent to the [[Minecraft:Java Edition 1.10|Java 1.10]] usage, except there is no support for [[Minecraft:data tag]]s and the [[Minecraft:player]] target is optional in {{cmd|give|link=none}}.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{cmd|summon}} – summon any entity at any location&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* {{Cite|url=https://learn.microsoft.com/en-us/minecraft/creator/commands/commands/give?view=minecraft-bedrock-stable|title=&amp;lt;code&amp;gt;/give&amp;lt;/code&amp;gt; Command|website=Microsoft Learn|date=October 11, 2023}}&lt;br /&gt;
&lt;br /&gt;
== Navigation ==&lt;br /&gt;
{{Navbox commands}}&lt;br /&gt;
&lt;br /&gt;
[[Minecraft:de:Befehl/give]]&lt;br /&gt;
[[Minecraft:es:Comandos/give]]&lt;br /&gt;
[[Minecraft:fr:commandes/give]]&lt;br /&gt;
[[Minecraft:ja:コマンド/give]]&lt;br /&gt;
[[Minecraft:pt:Comandos/give]]&lt;br /&gt;
[[Minecraft:ru:Команды консоли/give]]&lt;br /&gt;
[[Minecraft:uk:Команди консолі/give]]&lt;br /&gt;
[[Minecraft:zh:命令/give]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Nixinova</name></author>
	</entry>
</feed>