- 45,319 views, 0 today
- 40
- 23
- 39
126
There are so many new possibilities in the new update. One of them is creating your very own villager shop which buys and sells custom items!
Key: Red Codemeans that the command will not do anything if used. Blue Code means that the code is customize-able (ie a item ID). Orange Codeis the explanation for the code and should not be included if you wish to copy paste.
Step 1: Summon the Villager
/summon Villager ~~~
The ~~~ means that the villager will spawn from where the command is executed. For one space above where the command is executed, use ~~1~.
Step 2: Data Tags
Data tags are new to 1.7.1 and make this tutorial possible.
/summon Villager ~~~ {Offers:{Recipes:[{maxUses:1
Offers and Recipes just tell minecraft that we are going to make a shop, while maxUses tells us how many times thisparticularshop can be used.
Step 3: Buying and Selling Items
/summon Villager ~~~{Offers:{Recipes:[{maxUses:1,buy:{id:266,Count:16},sell:{id:276,Count:1}}]}}
This time we added buy:{and sell:{, which explain what the villager is offering. id:266means that the villager is buying gold ingots(id 266), and Count:16means that he is buying 16 at a time. The same goes for the sell; he is selling 1 diamond sword.
Step 4: Customizing the Items
/summon Villager ~ ~1 ~ {Offers:{Recipes:[{maxUses:1,buy:{id:266,Count:16},sell:{id:276,Count:1,tag:{ench:[{id:16,lvl:4}],display:{Name:Cyen's Scythe}}}}]}}
Here I added many things. First of all, I made the sword which the villager is selling enchanted. I typed ench:[{id, the enchantment id I wanted, and then ,lvl:4}], the level of enchantment I wanted.
Also, I gave the item a name, via {Name:, the name I wanted, and then }.
Final Result:

Want to learn more about data tags? Here's a list of all of them:http://minecraft.gamepedia.com/Chunk_format
Thanks for getting this blog on the popular reel!

Want me to explain another type of data tag? (ie an invincible pig riding a skeleton or spawning in arrows with command blocks) Tell me in the comments section!
If you found this blog helpful, diamond!
If not, diamond anyways!
Thanks!
Key: Red Codemeans that the command will not do anything if used. Blue Code means that the code is customize-able (ie a item ID). Orange Codeis the explanation for the code and should not be included if you wish to copy paste.
Step 1: Summon the Villager
/summon Villager ~~~
The ~~~ means that the villager will spawn from where the command is executed. For one space above where the command is executed, use ~~1~.
Step 2: Data Tags
Data tags are new to 1.7.1 and make this tutorial possible.
/summon Villager ~~~ {Offers:{Recipes:[{maxUses:1
Offers and Recipes just tell minecraft that we are going to make a shop, while maxUses tells us how many times thisparticularshop can be used.
Step 3: Buying and Selling Items
/summon Villager ~~~{Offers:{Recipes:[{maxUses:1,buy:{id:266,Count:16},sell:{id:276,Count:1}}]}}
This time we added buy:{and sell:{, which explain what the villager is offering. id:266means that the villager is buying gold ingots(id 266), and Count:16means that he is buying 16 at a time. The same goes for the sell; he is selling 1 diamond sword.
Step 4: Customizing the Items
/summon Villager ~ ~1 ~ {Offers:{Recipes:[{maxUses:1,buy:{id:266,Count:16},sell:{id:276,Count:1,tag:{ench:[{id:16,lvl:4}],display:{Name:Cyen's Scythe}}}}]}}
Here I added many things. First of all, I made the sword which the villager is selling enchanted. I typed ench:[{id, the enchantment id I wanted, and then ,lvl:4}], the level of enchantment I wanted.
Also, I gave the item a name, via {Name:, the name I wanted, and then }.
Final Result:

Want to learn more about data tags? Here's a list of all of them:http://minecraft.gamepedia.com/Chunk_format
Thanks for getting this blog on the popular reel!

Want me to explain another type of data tag? (ie an invincible pig riding a skeleton or spawning in arrows with command blocks) Tell me in the comments section!
If you found this blog helpful, diamond!
If not, diamond anyways!
Thanks!
Tags |
1 Update Logs
Update #1 : by Cyentw 10/28/2013 12:12:23 amOct 28th, 2013
Some formatting/spelling fixes.
Thanks for putting this blog on the reel!
Thanks for putting this blog on the reel!
2554681
6
Create an account or sign in to comment.
"/give @p minecraft:lever 1 0 {CanPlaceOn:["minecraft:iron_block"],display:{Name:"Screwdriver"}}"
To the buy item?!
Is there any1 that can help me? It shows up "Unbalanced squared brackets" (Don't judge the enchants xD)
/summon Villager ~ ~2 ~{Offers:{Recipes:[{maxUses:/size]9999,buy:{id:263,Count:5,sell:{id:270,Count:1,tag:{ench:[32,lvl:1[size=14pt]}],display:{Name:Bitcoinminer 1.1}}}}]}}
~ ~1 ~