Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First Make A Scoreboard Objective
- --------------------------------------------------------------------
- /scoreboard objectives add DETECT dummy
- --------------------------------------------------------------------
- Command For Villager Just Change Rotation Tag As You Want.
- /summon Villager ~ ~1 ~ {CustomName:"Merchant",CustomNameVisible:1,Profession:3,Career:0,Invulnerable:1,Rotation:[270f,0f],PersistenceRequired:1,CanPickUpLoot:1b,NoAI:1}
- -------------------------------------------------------------------------------------------------------------------------------
- Put This On Repeating Command Block
- /scoreboard players set @e[type=Item] DETECT 1 {OnGround:1b,Item:{id:"minecraft:gold_block"}}
- --------------------------------------------------------------------------------------------------------------------------------
- Put This On Other Repeating Command Block
- /execute @e[type=Villager,name=Merchant] ~ ~ ~ /execute @e[score_DETECT_min=1,score_DETECT=1,r=2] ~ ~ ~ /give @p diamond_sword
- Now Put This With Chain Command Block
- /execute @e[type=Villager,name=Merchant] ~ ~ ~ /kill @e[score_DETECT_min=1,score_DETECT=1,r=2]
- ---------------------------------------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment