thvardhan

shops command for video

Apr 13th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. First Make A Scoreboard Objective
  2. --------------------------------------------------------------------
  3. /scoreboard objectives add DETECT dummy
  4. --------------------------------------------------------------------
  5.  
  6. Command For Villager Just Change Rotation Tag As You Want.
  7.  
  8. /summon Villager ~ ~1 ~ {CustomName:"Merchant",CustomNameVisible:1,Profession:3,Career:0,Invulnerable:1,Rotation:[270f,0f],PersistenceRequired:1,CanPickUpLoot:1b,NoAI:1}
  9.  
  10. -------------------------------------------------------------------------------------------------------------------------------
  11.  
  12. Put This On Repeating Command Block
  13.  
  14. /scoreboard players set @e[type=Item] DETECT 1 {OnGround:1b,Item:{id:"minecraft:gold_block"}}
  15.  
  16. --------------------------------------------------------------------------------------------------------------------------------
  17.  
  18. Put This On Other Repeating Command Block
  19.  
  20. /execute @e[type=Villager,name=Merchant] ~ ~ ~ /execute @e[score_DETECT_min=1,score_DETECT=1,r=2] ~ ~ ~ /give @p diamond_sword
  21.  
  22. Now Put This With Chain Command Block
  23.  
  24. /execute @e[type=Villager,name=Merchant] ~ ~ ~ /kill @e[score_DETECT_min=1,score_DETECT=1,r=2]
  25.  
  26. ---------------------------------------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment