I'm playing on iOS, and I need some help with commands. I'm trying to give mobs that I spawn custom names. I have tried the following:

/summon villager ~ ~ ~ {CustomName:"Dr.Tray"}

The error message I got was "Invalid Command Syntax"

If you know the correct way to do this, Please do not hesitate to tell me!


1 Answer 1


The only data tags that work in Pocket Edition are CanPlaceOn and CanDestroy for items. To rename a mob, you have to use an item tag.

  • Thank you! Now I ask how do I use canplaceon and candestory? Sep 15, 2017 at 18:03
  • Look at the wiki. The comments aren't the place to answer a completely different question. Sep 15, 2017 at 21:55

Not the answer you're looking for? Browse other questions tagged .