1
Custom Villagers, Selling Custom Items with Command Blocks
This code makes a villager that sells a zombie head for 50 rotten flesh.. but i also want to add 50 emeralds to the price.. Im new to command blocks.. looking for some help! Thanks!
/summon Villager ~ ~2 ~ {Offers:{Recipes:[{buy:{id:367,Count:50},sell:{id:397,Damage:2,Count:1}}]}}
/summon Villager ~ ~2 ~ {Offers:{Recipes:[{buy:{id:367,Count:50},sell:{id:397,Damage:2,Count:1}}]}}
Create an account or sign in to comment.
4
1
You can add the 'buyB' tag to add a second item to the trade:
Also, I made a couple other changes to what you had. I changed all the id's to item names (since they are the only thing supported in newer versions) and added the letters after the Count and Damage values (because commands are weird, and for some reason sometimes you need to do that).
/summon Villager ~ ~2 ~ {Offers:{Recipes:[{buy:{id:"minecraft:rotten_flesh",Count:50b},buyB:{id:"minecraft:emerald",Count:50b},sell:{id:"minecraft:skull",Damage:2s,Count:1b}}]}}
Also, I made a couple other changes to what you had. I changed all the id's to item names (since they are the only thing supported in newer versions) and added the letters after the Count and Damage values (because commands are weird, and for some reason sometimes you need to do that).
1
Anyone? please?
1
Dont want to depend on a plugin, want to use the already in game stuff, before i use plugins.. but thanks
1
Dont know how to do that with command blocks, but there is a plugin that lets you make custom villager trades.