Redsword

Custom Villager

Nov 19th, 2016
576
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Code Source :
  2.  
  3. INIT:scoreboard objectives add CV dummy
  4. scoreboard players set @e[type=Item] CV 1 {Item:{id:"minecraft:diamond"}}
  5. execute @e[type=Item,score=1] ~ ~ ~ entitydata @e[type=Villager,r=2] {CustomName:"Nom",CustomNameVisible:1,Profession:1,Offers:{Recipes:[{rewardExp:0b,maxUses:2147483647,uses:0,buy:{id:diamond_block,Count:8},sell:{id:dragon_egg,Count:1}}]}}
  6. execute @e[type=Villager,name=Nom] ~ ~ ~ kill @e[type=Item,r=2]
Advertisement
Add Comment
Please, Sign In to add comment