0

I have worked with this a while but I have one problem and that is that I have trades coming up when I right click, but I don't want to have trades.

/scoreboard players tag @e[type=Villager,name=Green] add VillTalkedTo {Offers:{}}
/scoreboard players tag @e[type=Villager,name=Blue] add VillTalkedTo {Offers:{}}
/execute @e[tag=VillTalkedTo,name=Green] ~ ~ ~ /scoreboard players add @p[score_TalkVill_min=1] TalkVillGreen 1
/execute @e[tag=VillTalkedTo,name=Blue] ~ ~ ~ /scoreboard players add @p[score_TalkVill_min=1] TalkVillBlue 1
/execute @e[tag=VillTalkedTo,name=Green] ~ ~ ~ /summon Villager ~ ~ ~ {Tags:[NewVill],CustomName:"Green"}
/execute @e[tag=VillTalkedTo,name=Blue] ~ ~ ~ /summon Villager ~ ~ ~ {Tags:[NewVill],CustomName:"Blue"}
/execute @e[tag=VillTalkedTo] ~ ~ ~ /teleport @e[tag=NewVill,c=1] ~ ~ ~ ~ ~
/tp @e[tag=VillTalkedTo] ~ -500 ~
/kill @e[tag=VillTalkedTo]
/scoreboard players tag @e[tag=VillTalkedTo] remove VillTalkedTo
/scoreboard players set @a[score_TalkVill_min=1] TalkVill 0
-1

You can run this command to summon a villager with no trades:

/summon Villager ~1 ~ ~ {Profession:0,CustomName:"[VillagerNameHere]",CustomNameVisible:1,Career:1,CareerLevel:42,CanPickUpLoot:0,PersistenceRequired:1,Invulnerable:1,Offers:{Recipes:[]}}
1
  • It would be helpful to have an explanation and not just a command to run. – Skylinerw Sep 12 '16 at 17:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.