Editing
MinecraftCommands
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== give === {{/infobox |give |op |1.3.1|12w16a }} Gives an item to a player. ;Syntax : <code>give <''player''> <''item''> [''amount''] [''data''] [''dataTag'']</code> ;Arguments : ''player'' :: Specifies the target to give item(s) to. Must be a player name or [[#Target selectors|target selector]]. : ''item'' :: Specifies the item to give. Must be a valid [[Data values#Item IDs|item id]] (for example, <code>minecraft:iron_shovel</code>), or [[Data values#Block IDs|block id]] for which items exist. Numerical ids are unsupported. : ''amount'' (optional) :: Specifies the number of items to give. Must be between 1 and 64 (inclusive), but can be 64 even when that's more than one stack. If not specified, defaults to <code>1</code>. : ''data'' (optional) :: Specifies the [[Player.dat format#Item structure|item data]] of the given item(s). Must be an integer between -2,147,483,648 and 2,147,483,647 (inclusive, without the commas), but values which are invalid for the specified item id revert to 0. If not specified, defaults to 0. : ''dataTag'' (optional) :: Specifies the data tag of the given item(s). Must be a compound [[NBT tag]] (for example, <code>{display:{Name:Fred}}</code>). ;Result : Fails if the arguments are not specified correctly, or if ''player'' fails to resolve to one or more online players. : On success, summons the specified item(s) at the location(s) of the target(s). If ''player'' resolves to multiple targets, each receives the specified number of items. The [[Chunk format#Items|item entity]]'s Owner tag is set to the target and its PickupDelay tag set to 0{{verify}} so that it immediately enters the target's inventory if there is room. ;Examples : To summon 30 blocks of spruce wood planks at John's location with Lore that says "Wooden planks": :: <code>give John minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}}</code> :To give Block of Diamond that can be placed on dirt and can break quartz block that can be done in adventure mode. :: <code>give John minecraft:diamond_block 1 0 {CanPlaceOn:["minecraft:dirt"],CanDestroy:["minecraft:quartz_block"]}</code> ;See also :{{cmd|summon}} β summon any entity at any location <!-- please retain double newline above for section differentiation -->
Summary:
Please note that all contributions to Hegemon Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Hegemon Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information