1

Commandblock Villagers

Alexandersson97 •12/13/17 8:54 am
•
134
•
12/13/2017 9:00 am
Hello,

Im trying to fix a shop with villagers to trade in a normally maxed out tool, example, pickaxe with: Ef5, Ub3, Mending and Fortune 3. To a better one with ef6 for a couple diamonds and continue this way up the efficiency scale as an improved endgame experience on my server.

The issue seems to be when Im trying to trade the villager with my enchanted tool. I have manged to trade for example:

Pickaxe + 20 diamonds for A ENCHANTED TOOL. But not the other way around, is this because when I use the items in the anvil I give them a new ID? I'm very new to commands, just started with it a few days ago.

/summon Villager ~ ~1 ~ {Invulnerable:1,PersistenceRequired:1,Offers:{Recipes:[{buy:{id:diamond,Count:64}, buyB:{id:diamond,Count:64},sell:{id:diamond_pickaxe,Count:1,tag:{ench:{id:32,lvl:6}]}},maxUses:9999999}]}}

^ Example above, a trade that works: 64 diamonds + 64 diamonds = giving an enchanted pickaxe

/summon Villager ~ ~1 ~ {Invulnerable:1,PersistenceRequired:1,Offers:{Recipes:[{buy:{id:diamond,Count:64}, buyB:{id:diamond_pickaxe,Count:1,tag:{ench:{id:32,lvl:5},{id:34,lvl:3},{id:35,lvl:3},{id:70,lvl:1}]}},maxUses:9999999,sell:{id:diamond_pickaxe,Count:1,tag:{ench:[{id:32,lvl:6},{id:34,lvl:5},{id:35,lvl:3},{id:70,lvl:1}]}},maxUses:9999999}]}}


^Example above, a trade that spawns a villager that shows the enchanted tool that is required + 64 diamonds in the villager "menu" but once I put the items in there I cant make the trade?

I appreciate any help, thanks in advance.

//Alexandersson
Posted by
Alexandersson97
Level 1 : New Miner
0

  Have something to say?

Join • Sign in

Welcome