0

I'm using this command:

/execute @a[m=2] ~ ~ ~/tp @e[name="LeftClick"}

"LeftClick" being the name of a Villager that has one heart so I can test for if you left click, but I'm having trouble teleporting the Villager to the player in gamemode 2. How do I get this to work?

1 Answer 1

4

You don't need the /execute at all:

/tp @e[name="LeftClick"] @a[m=2]
2
  • this is in what i was going for, but I forgot about the @a[m=2] part. this is the best answer, not mine. Aug 9, 2017 at 14:23
  • 1.13 syntax: /tp @e[name="LeftClick"] @a[gamemode=adventure,limit=1]
    – pppery
    Jul 31, 2019 at 20:46

You must log in to answer this question.

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