Minecraft Blogs / Tutorial

Give Command Tutorial

  • 4,795 views, 1 today
  • 2
  • 3
  • 2
porgMan123's Avatar porgMan123
Level 7 : Apprentice Miner
0
Hey guys, in this tutorial I explain to you the /give command. 

This command is useful if you want to give something to someone. 

This is the command: 
/give <player> <item> [amount] [data] [dataTag] 


You have to fill in the 'player' and 'item', but the 'amount', the 'data' and the 'dataTag' are optional. 
  • Player     -   the player you give the item 

  • Item        -   the item you give 

  • Amount  -   how many items you give 

  • Data       -   for example, if you give a wool block, and the data is 0 (default), it is white wool. But if you change the data to 5, the color of the wool is lime. If you press F3 + H, you can see the data of an item. But, if you give a sword, the data tells Minecraft how much durability is taken from that sword.  

  • dataTag  -   With the dataTag you can add things such as enchantments, a name and lore to the item. 


Examples: 

/give @p iron_sword 1 0 {ench:[]} 
This adds enchantments to the sword. 

/give @p iron_sword 1 0 {ench:[{},{},{}]} 
Now there are three enchantments. 

/give @p iron_sword 1 0 {ench:[{id:16,lvl:10},{id:19,lvl:2},{id:20,lvl:2}]} 
This gives a sword with sharpness 10, knockback 2 and fire aspect 2. 

/give @p iron_sword 1 0 {display:{}} 
Now you can add a name and lore. 

/give @p iron_sword 1 0 {display:{Name:"BestSwordEver",Lore:[Use to kill enemies!]}} 
This gives a sword named 'BestSwordEver' and below the name it says 'Use to kill enemies!' 

/give @p iron_sword 1 0 {Unbreakable:1} 
This gives an unbreakable sword. 

/give @p diamond_sword 1 0 {display:{Name:"BestSwordEver",Lore:[Use to kill enemies!]},ench:[{id:16,lvl:1000},{id:19,lvl:2},{id:20,lvl:2}],Unbreakable:1} 
This gives an unbreakable diamond sword named 'BestSwordEver', below its name you see 'Use to kill enemies!' and it is enchanted with sharpness 1000, knockback 2 and fire aspect 2.
Tags

Create an account or sign in to comment.

UNDERTALE_CREW
09/28/2015 8:04 pm
Level 18 : Journeyman Network
UNDERTALE_CREW's Avatar
Yes, this is exactly what I need!
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome