I can't figure out how to make a villager give a named item that can only break certain blocks? [duplicate]
Solution 1:
From memory, you would add ,tag:{whatever}
after the Count:1
near the end of your command. The "whatever" would be the tags you want.
/summon Villager ~ ~ ~ {Profession:0,CustomName:"Carpenter",CustomNameVisible:0,Career:4,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,Silent:1,Invulnerable:1,Attributes:[{Name:"generic.knockbackResistance",Base:"1f"},{Name:"generic.movementSpeed",Base:"0f"}],Offers:{Recipes:[{buy:{id:"stick",Count:8},buyB:{id:"wooden_pressure_plate",Count:1},maxUses:9999999,sell:{id:"structure_block",Count:1,tag:{whatever}},rewardExp:false}]}}